josecuervo
Dabbler
- Joined
- Jan 19, 2015
- Messages
- 42
Running FreeNAS-9.3-STABLE fully updated.
I have one 3TB drive and I want to add another to create a mirror. I plan to follow this post:
Any comments before I start?
Thanks,
Jose
I have one 3TB drive and I want to add another to create a mirror. I plan to follow this post:
OMG! What a nerve wrecking ride. IT WORKED! No complaints from FreeNas GUI. Thanks so much fellas!
Here's the steps along with my setup for future reference
Steps to convert a single stripe to mirror
- FreeNas version 9.2.1.5 booted from 16gb USB stick
- One volume consisting of 2x2tb mirror and a single stripe 1x1tb drive
- From GUI, detach the volume, shutdown and unplug the existing drives. Install a fresh 1x1tb drive.
- Startup again and you should only see one disk under View Disks. Run the command with Shell and clear any existing partitions on the new drive
Code:gpart destroy -F /dev/ada0
- Create the new partitions
Code:gpart create -s gpt /dev/ada0 gpart add -a 4k -i 1 -s 2g -t freebsd-swap /dev/ada0 gpart add -a 4k -i 2 -t freebsd-zfs /dev/ada0
- Check out the new gptid for the drive and copy down the gptid for ada0p2
Code:glabel status
- Shut down. Replug all the drives. Restart. Go to Storage and Auto-Import the volume
- Go to Volume Status and take note of the name for the stripe eg ada1p2
- Check out the gptid again and this time find the gptid for ada1p2
Code:glabel status
- Finally, run the command to set the stripe as a mirror where tank is the name of the volume. IMPORTANT: gptid for the existing disk comes first
Code:zpool attach tank /dev/gptid/[gptid_of_the_existing_disk] /dev/gptid/[gptid_of_the_new_partition]
- Go back to the GUI Volume Status and you'll see a new mirror. You can check the reslivering process with the following command
Code:zpool status
Any comments before I start?
Thanks,
Jose