Partition alignment on MegaRAID RAID 1 with 4k sector (advanced format) drives

advanced-formathardware-raidmegaraidpartitionraid

I want to setup RAID 1 (mirroring) on a LSI MegaRAID SAS 8708EM2 (1078 chipset) with 4k sector (advanced format) drives. To the best of my knowlegde the controller does not officially support 4k sector drives whereas the newer 9xxxx series controllers (2108 chipset) do. However, I can trick the OS into treating the RAID device as 4k sector drives (FreeBSD geom gnop).

The question is, will 4k sectors on the hardware RAID device (the device presented by the controller to the OS) be mapped one-to-one to 4k sectors on the physical disk?

According to the LSI manual
MegaRAID® SAS Software User Guide
sec. 4.15.3.3, MegaRAID stores RAID metadata at the end of each physical disk. So the first sector of the RAID device should indeed map to the first sector of the physical drives.

Are there any other factors that affect sector mapping to the disk?

Best Answer

If using ZFS, you can create your pools with ashift=12 if you're dealing with 4k-sector disks.