Partition aligned on Megaraid RAID 1, with 4K sector (advanced format) drive

I want to set up RAID 1 (mirroring) on ​​an LSI MegaRAID SAS 8708EM2 (1078 chipset) with a 4k sector (advanced format) drive. As far as I know, the controller does not 4k sector drives are officially supported, while the newer 9xxxx series controllers (2108 chipset) support 4k sector drives. However, I can trick the operating system into treating RAID devices as 4k sector drives (FreeBSD geom gnop). < p>

The question is, will the 4k sector on the hardware RAID device (the device provided by the controller to the OS) be mapped to the 4k sector one-to-one 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. Therefore, the first sector of the RAID device The area should be mapped to the first sector of the physical drive.

Are there other factors that affect the sector mapping of the disk?

If you are using ZFS, if you are dealing with a 4k sector disk, you can create it with ashift=12 Pool.

I want to set up RAID 1 (mirroring) on ​​an LSI MegaRAID SAS 8708EM2 (1078 chipset) with a 4k sector (advanced format) drive. As far as I know, the controller 4k sector drives are not officially supported, and the newer 9xxxx series controllers (2108 chipset) support 4k sector drives. However, I can trick the operating system into treating RAID devices as 4k sector drives (FreeBSD geom gnop)

The question is, will the 4k sector on the hardware RAID device (the device provided by the controller to the OS) be mapped to the 4k sector one-to-one 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. Therefore, the first sector of the RAID device The area should be mapped to the first sector of the physical drive.

Are there other factors that affect the sector mapping of the disk?

If you are using ZFS, if you are dealing with 4k sector disks, you can use ashift=12 to create a pool.

Leave a Comment

Your email address will not be published.