Skip to contentSkip to conversation

striped LVM1 volumes

DISCUSSION Alasdair G Kergon 1 participant 2 messages Mar 13, 2007 – Mar 14, 2007 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 2 lines · David Robinson

Below is a patch which corrects the problem. It removes the extra check which causes the failure.

I don't want to remove checks like that.
Two possibilities:
the check is being performed wrongly and needs fixing
- unlikely since it works with LVM2 metadata
the LVM1 format metadata isn't being set up correctly
- fix it in the format lvm1 code

Alasdair

#2 lore raw
Quoted 6 lines · Alasdair G Kergon

I don't want to remove checks like that.
Two possibilities:
the check is being performed wrongly and needs fixing
- unlikely since it works with LVM2 metadata
the LVM1 format metadata isn't being set up correctly
- fix it in the format lvm1 code

Well, as expected, it is pretty clear that the bug is in the lvm1 format code.

Easily reproduced - just create a format1 striped LV of more than 2 extents using lvm2 and find that lvm2 cannot read it back!

There's a factor of #stripes missing from the code that sets the segment size when building up the segments, and the algorithm used to detect the size of a segment is also bogus. (It seems to be trying to handle an extended lvm1 format we once had that supported lvm2-like striping extensions.)

Alasdair

Signature · 1 line
agk at redhat.com