Changes between Version 6 and Version 7 of disk_alignment


Ignore:
Timestamp:
Apr 14, 2015, 11:44:06 PM (10 years ago)
Author:
Daniel Kahn Gillmor
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • disk_alignment

    v6 v7  
    2020 * RAID: `mdadm --examine $COMPONENTDEVICE | grep Version`
    2121  * if the version is 1.1 or 1.2, then look at the data offset: `mdadm --examine $COMPONENTDEVICE | grep 'Data Offset:`
    22  * dm_crypt/LUKS: `cryptsetup luksDump $BASEDEVICE | grep '^Payload offset:'`
     22 * dm_crypt/LUKS: `cryptsetup luksDump $BASEDEVICE | grep '^Payload offset:'` (this reports [http://sources.debian.net/src/cryptsetup/2:1.6.6-5/lib/libcryptsetup.h/?hl=981#L973 in sectors apparently], which means that we want to make sure it's a multiple of 8192 as well.
    2323 * LVM
    24   * Physical volumes: (look at "1st PE"): `pvs --units s -o +pe_start`
    25   * Volume groups: (look at "Ext"): `vgs --units s -o +vg_extent_size`
     24  * Physical volumes: (look at "1st PE"): `pvs --units s -o +pe_start`  (this should be a multiple of 8192S)
     25  * Volume groups: (look at "Ext"): `vgs --units s -o +vg_extent_size` (this should be a multiple of 8192S as well)
    2626
    2727See also [source:puppet/modules/mayfirst/files/misc-utils/mf-check-block-alignment mf-check-block-alignment]