]> sourceware.org Git - lvm2.git/commit
Fix "multisegment RAID1, allocator uses one disk for both legs"
authorheinzm <heinzm@redhat.com>
Wed, 10 May 2023 16:22:11 +0000 (18:22 +0200)
committerheinzm <heinzm@redhat.com>
Wed, 10 May 2023 16:35:21 +0000 (18:35 +0200)
commit05c2b10c5d0a99993430ffbcef684a099ba810ad
tree251a138e1e771c125e7e481046670fa9743fba31
parentbf794b66f412765e49c4d79a4bb95b454f2357fc
Fix "multisegment RAID1, allocator uses one disk for both legs"

In case of e.g. 3 PVs, creating or extending a RaidLV causes SubLV
collocation thus putting segments of diffent rimage (and potentially
larger rmeta) SubLVs onto the same PV.  For redundant RaidLVs this'll
compromise redundancy.  Fix by detecting such bogus allocation on
lvcreate/lvextend and reject the request.
lib/metadata/lv_manip.c
This page took 0.032758 seconds and 5 git commands to generate.