Single disk to mirror

Status
Not open for further replies.

kjp4756

Contributor
Joined
Feb 11, 2014
Messages
102
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)

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.
 

kjp4756

Contributor
Joined
Feb 11, 2014
Messages
102
Finished moving data over. It looks like when you set up a new drive through the GUI -a 4096 is not used. The start position of the freebsd-swap partition on the disk that I created through the GUI was 128 so therefore the alignment is not 4096.
 
Status
Not open for further replies.
Top