Bug 1535012
| Summary: | pvmove fails with non-exclusive lvs in clvmd cluster | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Roman Bednář <rbednar> | ||||
| Component: | lvm2 | Assignee: | Zdenek Kabelac <zkabelac> | ||||
| lvm2 sub component: | Command-line tools | QA Contact: | cluster-qe <cluster-qe> | ||||
| Status: | CLOSED ERRATA | Docs Contact: | |||||
| Severity: | unspecified | ||||||
| Priority: | unspecified | CC: | agk, cmarthal, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, prockai, rhandlin, thornber, zkabelac | ||||
| Version: | 7.5 | Keywords: | Regression, TestBlocker | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | lvm2-2.02.177-4.el7 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-04-10 15:23:49 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-01-16 13:15:24 UTC
These issues are already fixed (assuming minor fixes are included in last build for activation during conversion) In basic logic - lvm2 cannot PVMOVE lvs active on multiple nodes - thus LVs that are part of pvmove must be always active exclusively. There are 2 issues: 1.) lvm2 does not support 'lock upgrade' - so whenever user has just 'local' activation - it has to be deactivated and activated locally exclusively. 2.) lvm2 does not support 'clustered' mirroring with pvmove (which would in fact required rather obscure cmirrord) Thus from lvm2 perspective existing behavior is way more correct to the previous state - so it's not a regression rather a bugfix. It's unclear whether scheduling support for those 2 issue is worth to work on ATM.
> 2.) lvm2 does not support 'clustered' mirroring with pvmove (which would in
> fact required rather obscure cmirrord)
pretty sure that cmirrord /was/ used in pvmove in a cluster. You sure about that?
moving back to ASSIGNED. I've tested this on 7.4 and found it working just fine. Two patches try to address the issue: https://www.redhat.com/archives/lvm-devel/2018-February/msg00001.html https://www.redhat.com/archives/lvm-devel/2018-February/msg00000.html (may need some slight changes if the sources for 7.5 already diverted) Verified.
3.10.0-847.el7.x86_64
lvm2-2.02.177-2.el7
lvm2-libs-2.02.177-2.el7
lvm2-cluster-2.02.177-2.el7
SCENARIO - [segmented_pvmove]
Create a couple small segmented lvs and then pvmove them
Running lv_seg on virt-364 to create the segmented volumes
virt-364: /usr/tests/sts-rhel7.5/lvm2/bin/lv_seg -v mirror_sanity -n segment
Deactivating segment0 mirror
Moving data from pv /dev/sdc1 (-n mirror_sanity/segment0) on virt-364
Executing: /usr/sbin/modprobe dm-log-userspace
Wiping internal VG cache
Wiping cache of LVM-capable devices
Increasing mirror region size from 0 to 512 B
Archiving volume group "mirror_sanity" metadata (seqno 27).
Creating logical volume pvmove0
Moving 27 extents of logical volume mirror_sanity/segment0.
Creating volume group backup "/etc/lvm/backup/mirror_sanity" (seqno 28).
Checking progress before waiting every 15 seconds.
/dev/sdc1: Moved: 25.93%
/dev/sdc1: Moved: 100.00%
Device does not exist.
Command failed
Unable to get copy percent, pvmove most likely finished.
Ignore 'Command failed' messages ;)
Polling finished successfully.
Device does not exist.
Command failed
Device does not exist.
Command failed
Device does not exist.
Command failed
Device does not exist.
Command failed
Device does not exist.
Command failed
Device does not exist.
Command failed
Quick verification that pvmove is finished on other nodes as well
Deactivating mirror segment0... and removing
Deactivating mirror segment1... and removing
Kabi, is this complete? a2d2fe3a8cf840fcfcd23fb0e706c3699b79b5fa 552e60b3a1e35329a47d6112c548ada124b5a4e3 I would do the build today or Monday, so QE can get their hands on it ASAP. Verified.
lvm2-2.02.177-4.el7.x86_64
kernel-3.10.0-854.el7.x86_64
SCENARIO - [segmented_pvmove]
Create a couple small segmented lvs and then pvmove them
Running lv_seg on virt-386 to create the segmented volumes
virt-386: /usr/tests/sts-rhel7.5/lvm2/bin/lv_seg -v mirror_sanity -n segment
Deactivating segment0 mirror
Moving data from pv /dev/sdb1 (-n mirror_sanity/segment0) on virt-386
Executing: /usr/sbin/modprobe dm-log-userspace
Wiping internal VG cache
Wiping cache of LVM-capable devices
Archiving volume group "mirror_sanity" metadata (seqno 27).
Creating logical volume pvmove0
Increasing mirror region size from 0 to 512 B
Moving 105 extents of logical volume mirror_sanity/segment0.
Creating volume group backup "/etc/lvm/backup/mirror_sanity" (seqno 28).
Checking progress before waiting every 15 seconds.
/dev/sdb1: Moved: 7.62%
/dev/sdb1: Moved: 77.14%
/dev/sdb1: Moved: 80.95%
/dev/sdb1: Moved: 84.76%
/dev/sdb1: Moved: 88.57%
/dev/sdb1: Moved: 92.38%
/dev/sdb1: Moved: 96.19%
/dev/sdb1: Moved: 100.00%
Polling finished successfully.
Device does not exist.
Command failed
Unable to get copy percent, pvmove most likely finished.
Ignore 'Command failed' messages ;)
Device does not exist.
Command failed
Device does not exist.
Command failed
Device does not exist.
Command failed
Device does not exist.
Command failed
Device does not exist.
Command failed
Device does not exist.
Command failed
Quick verification that pvmove is finished on other nodes as well
Deactivating mirror segment0... and removing
Deactivating mirror segment1... and removing
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2018:0853 |