Bug 796200
Summary: | Provide race-free wiping of newly created LVs | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Peter Rajnoha <prajnoha> |
Component: | lvm2 | Assignee: | Peter Rajnoha <prajnoha> |
Status: | CLOSED DUPLICATE | QA Contact: | Cluster QE <mspqa-list> |
Severity: | high | Docs Contact: | |
Priority: | low | ||
Version: | 6.4 | CC: | agk, dwysocha, heinzm, jbrassow, prajnoha, prockai, thornber, zkabelac |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-10-08 13:16:36 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
Peter Rajnoha
2012-02-22 13:21:30 UTC
For thin provisioning we do not know mapping, so there is not an easy way to wipe start of thin volume device without having thin pool and thin volume active. We need to discussion several options here. lvm should be using wipefs through blkid library call to clear signatures. (zeroing is something else though) This request was not resolved in time for the current release. Red Hat invites you to ask your support representative to propose this request, if still desired, for consideration in the next release of Red Hat Enterprise Linux. This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development. This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4. Moving for consideration to 6.5 (the problematic scenario was mainly with anaconda, see also bug #783841 comment 28 - anaconda does the proper cleanup before installation now, so they do not hit this problem anymore... however, we should still consider a solution on lvm side as well). One possible way would be to provide a udev flag that will cause all scanning to be skipped on newly created LVs. Let's say it's "DM_UDEV_SKIP_SCAN" flag. So the sequence would look like: 1) lvcreate (change event with "SKIP_SCAN" flag set) 2) wipe newly created LV 3a) rely on watch rule to fire the CHANGE event after the close of the device opened for wiping in step 2 - this will reload the udev db with info scanned 3b) generate CHANGE event by writing "change" to /sys/block/.../uevent (that will cause the udev db reload). 4) clear the "SKIP_SCAN" flag in udev db if found from previous udev db state Step 3 would depend on whether the WATCH udev rule is used for DM devices (it's not in RHEL6!) It's also questionable whether 3a) or 3b) is necessary at all since the LV has just been wiped before that so there shouldn't be anything left... The patches are upstream now: https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=ce7489ed228da22c2a355d0b403a1e5dc6d8c0e0 https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=2f5ddfbadea5dae6b2fc236d4f243bd88d955aa8 This should be included in 6.5 as a solution to bug #1003441. I'm closing this one as a dup (the other bug has more discussion about this feature anyway). *** This bug has been marked as a duplicate of bug 1003441 *** |