Currently I have all of my media on a 3TB WD Red drive that is formatted to HFS+. I bought another 3TB WD Red the other day and the burn-in test is almost complete. I'm planning on using the new drive in freenas as a single disk zfs pool to start with. I will then copy the data over the network to freenas and then add my other 3TB drive as a mirror.
The part I am confused on is creating the partitions manually since the GUI doesn't support creating a mirror from an existing single drive mirror. I see some posts saying to use 'gpart -a 4096......' and other posts not using the -a part.
I had planend on doing this: (new_drive is the 'old' hfs+ 3TB drive)
Is this the correct way to do it? I want to make sure everything is set up correctly in terms of 4k alignment and such.
The part I am confused on is creating the partitions manually since the GUI doesn't support creating a mirror from an existing single drive mirror. I see some posts saying to use 'gpart -a 4096......' and other posts not using the -a part.
I had planend on doing this: (new_drive is the 'old' hfs+ 3TB drive)
Code:
gpart create -s gpt /dev/new_drive gpart add -a 4096 -b 128 -s 2G -t freebsd-swap /dev/new_drive gpart add -a 4096 -t freebsd-zfs /dev/new_drive zpool attach storage gptid/existing_disk gptid/new_drive
Is this the correct way to do it? I want to make sure everything is set up correctly in terms of 4k alignment and such.