Bug 1215427
Summary: | Creating Block Domain using a "dirty" LUN that contains a partition table fails upon PV creation , "pvcreate failed with rc=5" | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Ori Gofen <ogofen> | ||||
Component: | vdsm | Assignee: | Fred Rolland <frolland> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Aharon Canan <acanan> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.5 | CC: | acanan, adahms, amureini, bazulay, bugs, ecohen, eshames, gveitmic, lsurette, mgoldboi, ogofen, rbalakri, tnisan, yeylon, ylavi | ||||
Target Milestone: | --- | Keywords: | Regression | ||||
Target Release: | 3.5.5 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | storage | ||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1218657 (view as bug list) | Environment: | |||||
Last Closed: | 2015-08-26 14:44:01 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1185865, 1218657 | ||||||
Attachments: |
|
Description
Ori Gofen
2015-04-26 13:43:25 UTC
Version-Release number of selected component (if applicable): 3.6.0 master How reproducible: 100% Steps to Reproduce: 1.create Block domain using "dirty lunes" Actual results: operation fails Expected results: operation should be successful Additional info: I could not reproduce. Ori, can you provide exact steps needed ? Yes The steps are, creating a block domain from dirty luns. I shall provide you with my environment for reproduction pvcreate will fail if a partition exists on the LUN, even with force flag. If you run pvcreate with vvv for verbose ,and a partition is found , the following warning will be logged : 'Skipping: Partition table signature found' pvcreate -ffvvv /dev/mapper/3600a09803753795a64244531644f7846 ........ /dev/mapper/3600a09803753795a64244531644f7846: Skipping: Partition table signature found [none:(nil)] ........ Device /dev/mapper/3600a09803753795a64244531644f7846 not found (or ignored by filtering). In order to be able to be able to create the PV, the partition table needs to be deleted. It can be done by zeroing the first blocks: dd if=/dev/zero of=/dev/mapper/3600a09803753795a64244531644f7846 bs=1M count=1 I don't think that this operation should be done by the application, as it can be destructive to user data. I suggest to document this situation with explanation on how to fix manually. Allon, Yaniv, your thoughts? (In reply to Fred Rolland from comment #4) > I don't think that this operation should be done by the application, as it > can be destructive to user data. > > I suggest to document this situation with explanation on how to fix manually. Agreed. If LVM isn't solving this problem, neither should we. Andrew - what the process for adding a limitation note to the product? Hi Allon, Thank you for the needinfo request. Based on the explanation, this looks like it is not a known issue that will be fixed soon, and more a note that users must be aware of when they use LVM. Now, the best thing to do would be to add a note to the chapter on storage to tell users that if they are using LVM, they would need to perform the step in comment #4. What do you think? Kind regards, Andrew (In reply to Andrew Dahms from comment #7) > Hi Allon, > > Thank you for the needinfo request. > > Based on the explanation, this looks like it is not a known issue that will > be fixed soon, and more a note that users must be aware of when they use LVM. I agree with this assessment - This is an LVM limitation that will probably never be fixed. > Now, the best thing to do would be to add a note to the chapter on storage > to tell users that if they are using LVM, they would need to perform the > step in comment #4. (In the case the lun has an old partition table on it, which should be an edge case of an edge case). > What do you think? Agreed. Do we need a RHEV-docs bug to track this, or can we use this oVirt bug? Hi Allon, Thank you for the needinfo request, and my apologies for the delay in getting back to you. I have created BZ#1343043 to cover this issue. Kind regards, Andrew *** Bug 1524308 has been marked as a duplicate of this bug. *** |