Hi,
I have been reading post after post for the last 2 days. I think a lot of that information might be out of date (posts from 2009, 2011 etc). I'm running FreeBSD 10.1 and want to setup a new data-only pool using four WD Red Pro 3TB drives in RAIDZ2.
For my previous RAIDZ1 I used raw devices in the pool - no partition table, but that was done on FreeBSD 9.x and now has the 512K warning for 4K drives. I want to migrate that data over to the new pool.
I've created the new RAIDZ2 pool with ashift=12 and verified that the pool is ashift 12. All the other links (some a couple years old - so info might be out of date) and posts I've read talk about partition tables where partitions must be aligned on 4K boundaries for best performance. But does that apply to raw devices in a pool too? So far the performance is already MUCH better than my old pool (60MB/s vs 125MB/s for copying large data files), but not sure if that is due to WD Green drives vs WD Red Pro drives.
So what is the recommendation (and why)? Can I just use raw devices (I like this idea) or must I still create a 4k aligned partition and gnop trick, with FreeBSD 10.1?
Edited:
It seems the 4th reply in this message thread [https://forums.freebsd.org/threads/wd-red-4k-alignment.48507/] answers my question (if that info is correct). If you use raw devices (no partitions on Advanced Format drives), the ZFS pool will automatically be 4k sector aligned because it will start at sector 0.
I have been reading post after post for the last 2 days. I think a lot of that information might be out of date (posts from 2009, 2011 etc). I'm running FreeBSD 10.1 and want to setup a new data-only pool using four WD Red Pro 3TB drives in RAIDZ2.
For my previous RAIDZ1 I used raw devices in the pool - no partition table, but that was done on FreeBSD 9.x and now has the 512K warning for 4K drives. I want to migrate that data over to the new pool.
I've created the new RAIDZ2 pool with ashift=12 and verified that the pool is ashift 12. All the other links (some a couple years old - so info might be out of date) and posts I've read talk about partition tables where partitions must be aligned on 4K boundaries for best performance. But does that apply to raw devices in a pool too? So far the performance is already MUCH better than my old pool (60MB/s vs 125MB/s for copying large data files), but not sure if that is due to WD Green drives vs WD Red Pro drives.
So what is the recommendation (and why)? Can I just use raw devices (I like this idea) or must I still create a 4k aligned partition and gnop trick, with FreeBSD 10.1?
Edited:
It seems the 4th reply in this message thread [https://forums.freebsd.org/threads/wd-red-4k-alignment.48507/] answers my question (if that info is correct). If you use raw devices (no partitions on Advanced Format drives), the ZFS pool will automatically be 4k sector aligned because it will start at sector 0.