Bug 1421941
Summary: | pvcreate command in clone operation fails when using LVM2 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Abdul Khumani <abdul.khumani> | ||||||
Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> | ||||||
lvm2 sub component: | LVM Metadata / lvmetad | QA Contact: | cluster-qe <cluster-qe> | ||||||
Status: | CLOSED WORKSFORME | Docs Contact: | |||||||
Severity: | unspecified | ||||||||
Priority: | unspecified | CC: | abdul.khumani, agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, teigland, zkabelac | ||||||
Version: | 7.3 | ||||||||
Target Milestone: | rc | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2017-08-25 13:06:29 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Abdul Khumani
2017-02-14 06:44:46 UTC
Please attach full '-vvvv' output. But also make sure you are working in system with properly configured device - i.e. no duplicate device (misconfigured multipath?) are present in your system. The easy way could be to setup lvm.conf global/filter option and accept on valid subset of devices. lvm has recently become much more careful in handling duplicate PVs, and you are seeing the effects of those improvements here. lvm provides a number of ways to resolve duplicate PVs, but pvcreate -ff has not (so far) been one of them. We can look into adding pvcreate -ff to the set of tools for handling duplicate PVs, but at the present time, the possible solutions you can investigate include: - using a filter with pvcreate to select the device you want (ie comment 2) - using vgimportclone. - using 'pvremove -ff' on the duplicate PV, then pvcreate. Created attachment 1255626 [details]
output of pvcreate -vvvv -ff command
Added the log file for pvcreate -vvvv -ff command.
Thanks, the behavior is as expected. Do any of the three methods in comment 3 work for you? Yes using "'pvremove -ff' on the duplicate PV, then doing pvcreate worked for me". Thanks for your help and support. |