Using the 4K sector format to do more advanced Freenas setup
I am no freenas expert, I have been using since 0.69 and recently (3 mos) went to 8.0.x. However, after looking around and not seeing these particular pieces put together, I thought I would share what I did: I had found examples for striped mirrored setup instructions from
http://forums.freenas.org/showthread.php?1815-How-can-I-make-zfs-raid-10-in-FreeNAS-8& and further reading found
http://www.zfsbuild.com/2010/06/03/howto-create-striped-mirror-vdev-pool/#more-220.
These, in combination with this information
http://swegen.blogspot.com/2011/09/zfs-with-4k-sectors-on-debian.html and here is what I was able to do: Take 2 x 2 TB Hitachi 7K2000 and 2 x 3 TB 5K3000 Hitachi drives (10 terabyte total) and make 2 mirrored stripes in one zpool:
[root@freenas] ~# zpool list
no pools available
[root@freenas] ~# geom nop create -v -S 4096 ada1
Done.
[root@freenas] ~# geom nop create -v -S 4096 ada2
Done.
[root@freenas] ~# geom nop create -v -S 4096 ada3
Done.
[root@freenas] ~# geom nop create -v -S 4096 ada4
Done.
[root@freenas] ~# zpool create pentagon mirror ada1.nop ada3.nop
cannot mount '/pentagon': failed to create mountpoint
[root@freenas] ~# zpool add pentagon mirror ada2.nop ada4.nop
[root@freenas] ~# zpool export pentagon
[root@freenas] ~# geom nop destroy -v ada1.nop ada2.nop ada3.nop ada4.nop
Done.
[root@freenas] ~# zdb pentagon | grep ashift
ashift=12
ashift=12
[root@freenas] ~# zpool status -v
pool: pentagon
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
pentagon ONLINE 0 0 0
mirror ONLINE 0 0 0
ada1 ONLINE 0 0 0
ada3 ONLINE 0 0 0
mirror ONLINE 0 0 0
ada2 ONLINE 0 0 0
ada4 ONLINE 0 0 0
errors: No known data errors
The pool is 4.5 gigabytes, and all drives are 4k sector formatted in freenas. You cannot do mirrored stripes in the GUI, but it imported in the "autoimport" in GUI without any issues (make sure you export it at the command line... ie zpool export yourpoolname