Changes between Version 7 and Version 8 of disk_alignment


Ignore:
Timestamp:
Apr 14, 2016, 9:24:54 AM (3 years ago)
Author:
https://id.mayfirst.org/dkg
Comment:

mdadm can now set the proper data offset.

Legend:

Unmodified
Added
Removed
Modified
  • disk_alignment

    v7 v8  
    88
    99 * physical disk partitions -- should start at a multiple of 8192s (where s means "512Byte sector"). See [wiki:install_debian debian install page] for more details.
    10  * RAID -- mdadm should use 0.90 or 1.0 [https://raid.wiki.kernel.org/index.php/RAID_superblock_formats superblocks], which are written at the end of the device.  If metadata version 1.1 or 1.2 are used, then the `data_offset` field needs to be a multiple of 8192. [http://www.issociate.de/board/goto/2027709/Alignment_of_RAID_on_specific_boundary.html there does not seem to be a way to force a custom data_offset with metadata 1.1 or 1.2] (i filed [DebianBug:614841] as a wishlist).  in squeeze, 1.2 is the default, so use `--metadata 1.0` during `mdadm --create` :(
     10 * RAID -- `mdadm --create` should use `--data-offset=4096` (figures are in KiB, not in sectors)
    1111 * dm_crypt/LUKS -- `cryptsetup LuksFormat` should use `--align-payload=8192`
    1212 * LVM