Bug 112082
Summary: | lvm2 finds old raid/pvs in swap partition | ||
---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | Alexandre Oliva <aoliva> |
Component: | lvm2 | Assignee: | Alasdair Kergon <agk> |
Status: | CLOSED DUPLICATE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.0 | CC: | heinzm, k.georgiou, sct |
Target Milestone: | --- | Keywords: | FutureFeature |
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-03-15 15:32:11 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 143501 |
Description
Alexandre Oliva
2003-12-14 10:15:31 UTC
First point: pvremove was added to LVM2 as the approved way to remove a PV - this wipes LVM signature from it. We don't want to include complex partition-handling code in LVM2, nor do we want to include checks for all the different signatures that could be on the device. If there's an external library available to link against which tells us the partition type of a given device we could optionally use that. (does libparted offer that?) Oughtn't the code that interprets the partition table for real record the partition type for later use? (/proc/partitions or some replacement?) It would be sort-of ok for it to scan arbitrary partitions if it didn't crash because of inconsistent data it found. But ideally it shouldn't go scanning partitions that are explicitly marked as of some other type. Just consider the disaster if my random data raw block device happens to contain data that matches exactly whatever lvm vgscan looks for in order to decide it device looks like a physical volume? Or plug a USB key drive with such a partition into the back USB ports of a server and leave it there, just to confuse the sysadmins. Heck, even if it's actually marked as a physical volume, lvm shouldn't crash. It should ideally perform some consistency check of the data it gets before being driven crazy but junk that's in there, and keep on looking for other physical volumes instead of crashing. IMHO :-) I agree something needs doing about his - treating it as an enhancement request. Some improvements to md/partition table handling included in 2.00.29. Not sure whether or not they address this issue. |