Skip to content

LVM2 topology support

Mike Snitzer lvm-devel 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest6 patches 1 replyIn review
  2. v66 patches 1 replySuperseded
  3. v56 patches 0 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v44 of 5 patches0 repliesSuperseded
v34 patches0 repliesSuperseded
v24 patches0 repliesSuperseded
v10 of 3 patches0 repliesSuperseded

Changes in v7 from the cover letter

Revised pvcreate manpage to document --datalignmentoffset more clearly. Added negative check that makes sure the PV's data area is not beyond the end of the device.

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Add --dataalignmentoffset to pvcreate to shift start of aligned data areaWHATS_NEW lib/format1/format1.c lib/format_pool/format_pool.c +10 more+97 -131 reply
2/6Add devices/data_alignment_offset_detection to lvm.conf.WHATS_NEW doc/example.conf lib/config/defaults.h +5 more+107 -30 replies
3/6Add devices/data_alignment_detection to lvm.conf.WHATS_NEW doc/example.conf lib/config/defaults.h +4 more+118 -90 replies
4/6Improve ability to lookup primary device associated with partitionlib/device/device.c+56 -50 replies
5/6Retrieve MD sysfs attributes for MD partitionslib/device/dev-md.c lib/device/device.c lib/device/device.h+21 -70 replies
6/6Add MD, partition and topology tests to the LVM2 test-suitetest/t-pvcreate-operation-md.sh test/t-pvcreate-usage.sh test/test-utils.sh+99 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH 0/6 v7] LVM2 topology support

LVM2 topology support to properly align the PV's pe_start using the associated 'alignment_offset' exposed in sysfs.

Provides manual configuration with pvcreate --dataalignmentoffset and auto config control via 'devices/data_alignment_offset_detection' in lvm.conf.

Documentation was added to the lvm.conf and pvcreate man pages.

v2 changes:
Also added another method for auto detection of --dataalignment using the topology information that is exposed in sysfs. Controlled via 'devices/data_alignment_detection' in lvm2.conf.

v3 changes:
Fixed 'devices/data_alignment_detection' patch (3/6) to retrieve the minimum_io_size and optimal_io_size for partitions from the parent device's 'queue/'. Both attributes are found in 'queue/'

v4 changes:
Simplified the _mda_setup() change in --dataalignmentoffset patch (1/6). Improved the documentation and comments in all patches.

v5 changes:
Improved LVM2's support for partitions (in the MD and topology code paths). Added MD, partitions, and topology tests to the testsuite.

v6 changes:
Added pe_align_offset to 'struct physical_volume'; Added set_pe_align_offset(). After pe_start is initialized pe_align_offset is added to it.

v7 changes:
Revised pvcreate manpage to document --datalignmentoffset more clearly. Added negative check that makes sure the PV's data area is not beyond the end of the device.