Bug 120909
Summary: | its possible to run pvcreate on a mounted disk, destroying all its data | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Mike MacCana <mmaccana> |
Component: | lvm | Assignee: | Alasdair Kergon <agk> |
Status: | CLOSED DUPLICATE | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 3.0 | Keywords: | FutureFeature |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Enhancement | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-08-31 13:35:32 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: |
Description
Mike MacCana
2004-04-15 05:14:07 UTC
pvcreate already detects some situations like this and provides warnings, e.g. if LVM is already using the device. It also requires the partition type be set to the LVM type of '8e' indicating that the device is meant to be controlled by LVM. Was the partition type also set incorrectly (for the same reason)? Or was the '=f' argument to pvcreate used to suppress the warnings? LVM itself is in maintenance-only mode now, so changes like this won't happen I'm afraid. Its replacement is LVM2 and I'll add this item to its list of requested enhancements. Additional checks like you suggest are certainly possible. There's already a low-priority item on the list to take a backup of any parts of the device that pvcreate changes. |