Bug 1543429
| Summary: | locking error upon mirror creation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Roman Bednář <rbednar> | ||||
| Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> | ||||
| lvm2 sub component: | Clustered Mirror / cmirrord | QA Contact: | cluster-qe <cluster-qe> | ||||
| Status: | CLOSED NOTABUG | Docs Contact: | |||||
| Severity: | unspecified | ||||||
| Priority: | unspecified | CC: | agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, zkabelac | ||||
| Version: | 7.5 | ||||||
| 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: | 2018-02-08 13:53:03 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
Roman Bednář
2018-02-08 13:05:16 UTC
This is what dm table contained after lvcreate failure. Unfortunately I can not get the tables from all nodes since I'm not able to reproduce this after reboot. # dmsetup table rhel_virt--369-swap: 0 1679360 linear 252:2 2048 rhel_virt--369-root: 0 12992512 linear 252:2 1681408 snapper_thinp-dual_mirror_1_mlog: 0 8192 linear 8:145 16384 Created attachment 1393185 [details]
lvcreate_vvvv
I just recalled saving the log from previous attempts so here it is.
From log trace it looks like failure was cause by: device-mapper: create ioctl on snapper_thinp-dual_mirror_1_mlog So here lvm2 could not create a DM device with this name - likely becuase it already exists in your system. The possibly explanation is the device has been 'forgotten' leaked from some other previous test. So the failure is rather in the situation where this device was not removed during some 'vgremove -f' command for whatever reason. So far I'm not seeing the bug on lvcreate side. It works as designed - lvcreate simply stops when it find 'name collision' and it's upto admin to resolve this case. Simplest way to trigger is the 'dmsetup' some DM device with name in form of 'vgname-lvname' and then run 'lvcreate' with matching name. |