I have a storage system that contains 8 x 1TB drives that use the 4k sector size "Advanced Format". I'm planning to run NexentaStor on this hardware and want to ensure that I'm taking the 4k sector size into account. Is there anything special I need to keep in mind when creating the root pool and subsequent data pools with ZFS?
ZFS NexentaStor – 4k Advanced Format Partition Alignment
advanced-formatnexentazfs
Related Topic
- How to make partition, raid5 and filesystem on 6x2TB WDC-drives in Linux
- Freebsd – zfs and future expandability
- Freebsd – Advice for inserting additional disks to a ZFS mirrored pool
- NexentaStor: how to partition SSD disk
- Does the max-80%-use target suggested for ZFS for performance reasons apply to SSD-backed pools
Best Answer
ZFS handles 4k sectors well as long as the drive advertises them correctly.
However, some drives have 4k sectors internally but present a logical 512 sector size to the operating system for backwards compatibility. If ZFS believes the drive, and writes in 512 byte chunks to 4k sectors, you'll suffer a heavy read-modify-write penalty.
Have a look at the Solarismen blog:
If your drive reports a sector size of 4k, you're fine. If your drive reports a sector size of 512, you may be able to work around it by using the modified zpool binary from the same site:
The modified binary hardcodes the sector size to 4k. Note that you only need to use it for the initial zpool creation. This may be a bit difficult for your root pool - you may need to slipstream the modified binary in to the NexentaStor ISO.