Hi all, I currently have freenas 9.2.1.5 with 2x2tb on mirror and a 1x1tb stripe as shown below
pool: gohvault
state: ONLINE
scan: scrub repaired 0 in 1h9m with 0 errors on Tue Dec 30 07:10:42 2014
config:
NAME STATE READ WRITE CKSUM
gohvault ONLINE 0 0 0
gptid/a07ea483-8db1-11e4-ad30-fcaa14743963 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
gptid/a13312a4-8db1-11e4-ad30-fcaa14743963 ONLINE 0 0 0
gptid/a20ba1e9-8db1-11e4-ad30-fcaa14743963 ONLINE 0 0 0
errors: No known data errors
I just installed a new 1tb drive and would like to convert the stripe to a mirror. I found the following commands from this site and was wondering if it would work
Or should I use this second method posted by Dusan
Let's assume ada0 is your existing disk, ada1 is the new one, tank is the pool name.
Appreciate any advise. Thanks very much
pool: gohvault
state: ONLINE
scan: scrub repaired 0 in 1h9m with 0 errors on Tue Dec 30 07:10:42 2014
config:
NAME STATE READ WRITE CKSUM
gohvault ONLINE 0 0 0
gptid/a07ea483-8db1-11e4-ad30-fcaa14743963 ONLINE 0 0 0
mirror-1 ONLINE 0 0 0
gptid/a13312a4-8db1-11e4-ad30-fcaa14743963 ONLINE 0 0 0
gptid/a20ba1e9-8db1-11e4-ad30-fcaa14743963 ONLINE 0 0 0
errors: No known data errors
I just installed a new 1tb drive and would like to convert the stripe to a mirror. I found the following commands from this site and was wondering if it would work
Code:
Run "zpool status" to get the name of your pool and the gptid device name of the current drive Run "gpart list | less" and find the rawuuid of the new drive. It will match a file in the /dev/gptid folder Run "zpool attach <pool name> gptid/<existing device gptid> gptid/<new device gptid>"
Or should I use this second method posted by Dusan
Let's assume ada0 is your existing disk, ada1 is the new one, tank is the pool name.
Code:
gpart create -s gpt /dev/ada1 gpart add -i 1 -b 128 -t freebsd-swap -s 2g /dev/ada1 gpart add -i 2 -t freebsd-zfs /dev/ada1 Run zpool status and note the gptid of the existing disk Run glabel status and find the gptid of the newly created partition. It is the gptid associated with ada1p2. zpool attach tank /dev/gptid/[gptid_of_the_existing_disk] /dev/gptid/[gptid_of_the_new_partition]
Appreciate any advise. Thanks very much
Last edited: