Red Hat Bugzilla – 1476408 – non background clustered pvmoves fail: "lvmpolld: W: #011LVPOLL: STDERR: ' Error locking on node 1: Device or resource busy'"
Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Are all the involved LVs in pvmove locally exclusively active in VG.
If the LVs are activate on multiple node - it should simply fail.
So now the interesting part is - is there any data loss ATM or the operation fails for 1st. metadata update during pvmove.
Basically if LVs are active on multiple nodes - nothing should change when pvmove fails.
(In reply to Zdenek Kabelac from comment #3)
> Are all the involved LVs in pvmove locally exclusively active in VG.
The LVs are active on all nodes by default upon creation in clustered vg, linear LV has been used in this case.
> If the LVs are activate on multiple node - it should simply fail.
>
> So now the interesting part is - is there any data loss ATM or the operation
> fails for 1st. metadata update during pvmove.
No data loss has been observed. See the results below.
> Basically if LVs are active on multiple nodes - nothing should change when
> pvmove fails.
It seems that there are in fact no changes. If this feature is no longer or never was supported user should be notified and command should fail immediately.
===============================
NODE1:
# lvs -a vg --noheadings
lv vg -wi-ao---- 1.00g
# ./bin/checkit -w /mnt/mountpoint -f /tmp/data -n 500
checkit starting with:
CREATE
Num files: 500
Random Seed: 5628
Verify XIOR Stream: /tmp/data
Working dir: /mnt/mountpoint
# pvmove -v /dev/sda1 /dev/sdb1
Wiping internal VG cache
Wiping cache of LVM-capable devices
Archiving volume group "vg" metadata (seqno 4).
Creating logical volume pvmove0
Moving 256 extents of logical volume vg/lv.
Increasing mirror region size from 0 to 512 B
Error locking on node 1: Device or resource busy
Failed to activate vg/lv
# ./bin/checkit -w /mnt/mountpoint -f /tmp/data -v
checkit starting with:
VERIFY
Verify XIOR Stream: /tmp/data
Working dir: /mnt/mountpoint
# echo $?
0
### lv is active on second node immediately after creation
NODE2:
# lvs -a vg --noheadings
lv vg -wi-a----- 1.00g
Moving this (Comment 2) to separate BZ #1535012 since it's a different bug, this one should be kept for tracking what's described in initial description.
Red Hat Enterprise Linux 7 shipped it's final minor release on September 29th, 2020. 7.9 was the last minor releases scheduled for RHEL 7.
From intial triage it does not appear the remaining Bugzillas meet the inclusion criteria for Maintenance Phase 2 and will now be closed.
From the RHEL life cycle page:
https://access.redhat.com/support/policy/updates/errata#Maintenance_Support_2_Phase
"During Maintenance Support 2 Phase for Red Hat Enterprise Linux version 7,Red Hat defined Critical and Important impact Security Advisories (RHSAs) and selected (at Red Hat discretion) Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available."
If this BZ was closed in error and meets the above criteria please re-open it flag for 7.9.z, provide suitable business and technical justifications, and follow the process for Accelerated Fixes:
https://source.redhat.com/groups/public/pnt-cxno/pnt_customer_experience_and_operations_wiki/support_delivery_accelerated_fix_release_handbook
Feature Requests can re-opened and moved to RHEL 8 if the desired functionality is not already present in the product.
Please reach out to the applicable Product Experience Engineer[0] if you have any questions or concerns.
[0] https://bugzilla.redhat.com/page.cgi?id=agile_component_mapping.html&product=Red+Hat+Enterprise+Linux+7
Description of problem: # Normal non clustered pvmove [root@host-075 ~]# pvmove /dev/sda2 /dev/sda2: Moved: 0.50% /dev/sda2: Moved: 100.00% [root@host-075 ~]# echo $? 0 Jul 28 16:21:16 host-075 lvmpolld: W: #011LVPOLL: PID 11267: STDERR: ' WARNING: This metadata update is NOT backed up.' # Clustered pvmove [root@host-117 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices linear pv_shuffle_A -wi-ao---- 2.00g /dev/sde1(0) stripe pv_shuffle_A -wi-ao---- 2.00g /dev/sde1(512),/dev/sdh1(0),/dev/sdc2(0) linear pv_shuffle_B -wi-ao---- 2.00g /dev/sdf2(0) stripe pv_shuffle_B -wi-ao---- 2.00g /dev/sdf2(512),/dev/sdf1(0),/dev/sda2(0) [root@host-117 ~]# pvmove -v /dev/sde1 /dev/sdh2 Wiping internal VG cache Wiping cache of LVM-capable devices Archiving volume group "pv_shuffle_A" metadata (seqno 8). Creating logical volume pvmove0 Moving 512 extents of logical volume pv_shuffle_A/linear Moving 171 extents of logical volume pv_shuffle_A/stripe Increasing mirror region size from 0 to 1.00 KiB Setting up pvmove in on-disk volume group metadata. Creating volume group backup "/etc/lvm/backup/pv_shuffle_A" (seqno 9). Checking progress before waiting every 15 seconds. /dev/sde1: Moved: 2.78% /dev/sde1: Moved: 50.81% /dev/sde1: Moved: 74.96% /dev/sde1: Moved: 100.00% LVM command executed by lvmpolld failed. For more information see lvmpolld messages in syslog or lvmpolld log file. [root@host-117 ~]# lvs -a -o +devices LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert Devices linear pv_shuffle_A -wi-ao---- 2.00g /dev/sdh2(0) stripe pv_shuffle_A -wi-ao---- 2.00g /dev/sdh2(512),/dev/sdh1(0),/dev/sdc2(0) linear pv_shuffle_B -wi-ao---- 2.00g /dev/sdf2(0) stripe pv_shuffle_B -wi-ao---- 2.00g /dev/sdf2(512),/dev/sdf1(0),/dev/sda2(0) [root@host-117 ~]# pvmove /dev/sdh2 /dev/sde1 Increasing mirror region size from 0 to 1.00 KiB /dev/sdh2: Moved: 2.93% /dev/sdh2: Moved: 54.03% /dev/sdh2: Moved: 74.96% /dev/sdh2: Moved: 100.00% LVM command executed by lvmpolld failed. For more information see lvmpolld messages in syslog or lvmpolld log file. [root@host-117 ~]# echo $? 5 Jul 28 16:31:03 host-117 crmd[29452]: notice: High CPU load detected: 4.510000 Jul 28 16:31:18 host-117 lvmpolld: W: #011LVPOLL: PID 7456: STDERR: ' WARNING: This metadata update is NOT backed up.' Jul 28 16:31:33 host-117 crmd[29452]: notice: High CPU load detected: 4.730000 Jul 28 16:31:34 host-117 lvmpolld: W: #011LVPOLL: PID 7456: STDERR: ' Error locking on node 1: Device or resource busy' Jul 28 16:31:34 host-117 multipathd: dm-6: mapname not found for 253:6 Jul 28 16:31:34 host-117 multipathd: uevent trigger error Jul 28 16:31:34 host-117 multipathd: dm-6: remove map (uevent) Jul 28 16:31:35 host-117 lvmpolld[7453]: LVMPOLLD: lvm2 cmd (PID 7456) failed (retcode: 5) Jul 28 16:31:35 host-117 multipathd: dm-6: remove map (uevent) Jul 28 16:32:03 host-117 crmd[29452]: notice: High CPU load detected: 4.510000 Jul 28 16:32:33 host-117 crmd[29452]: notice: High CPU load detected: 4.380000 Jul 28 16:33:03 host-117 crmd[29452]: notice: High CPU load detected: 4.470000 Jul 28 16:33:33 host-117 crmd[29452]: notice: High CPU load detected: 4.340000 Jul 28 16:34:03 host-117 crmd[29452]: notice: High CPU load detected: 4.410000 Jul 28 16:34:28 host-117 systemd: Started LVM2 poll daemon. Jul 28 16:34:28 host-117 systemd: Starting LVM2 poll daemon... Jul 28 16:34:33 host-117 crmd[29452]: notice: High CPU load detected: 4.820000 Jul 28 16:34:59 host-117 lvmpolld: W: #011LVPOLL: PID 7961: STDERR: ' WARNING: This metadata update is NOT backed up.' Jul 28 16:35:03 host-117 crmd[29452]: notice: High CPU load detected: 4.730000 Jul 28 16:35:15 host-117 lvmpolld: W: #011LVPOLL: PID 7961: STDERR: ' Error locking on node 1: Device or resource busy' Jul 28 16:35:16 host-117 multipathd: dm-6: mapname not found for 253:6 Jul 28 16:35:16 host-117 multipathd: uevent trigger error Jul 28 16:35:16 host-117 multipathd: dm-6: remove map (uevent) Jul 28 16:35:16 host-117 lvmpolld[7950]: LVMPOLLD: lvm2 cmd (PID 7961) failed (retcode: 5) Jul 28 16:35:16 host-117 multipathd: dm-6: remove map (uevent) Jul 28 16:35:33 host-117 crmd[29452]: notice: High CPU load detected: 4.580000 How reproducible: Everytime 3.10.0-689.el7.x86_64 lvm2-2.02.171-8.el7 BUILT: Wed Jun 28 13:28:58 CDT 2017 lvm2-libs-2.02.171-8.el7 BUILT: Wed Jun 28 13:28:58 CDT 2017 lvm2-cluster-2.02.171-8.el7 BUILT: Wed Jun 28 13:28:58 CDT 2017 device-mapper-1.02.140-8.el7 BUILT: Wed Jun 28 13:28:58 CDT 2017 device-mapper-libs-1.02.140-8.el7 BUILT: Wed Jun 28 13:28:58 CDT 2017 device-mapper-event-1.02.140-8.el7 BUILT: Wed Jun 28 13:28:58 CDT 2017 device-mapper-event-libs-1.02.140-8.el7 BUILT: Wed Jun 28 13:28:58 CDT 2017 device-mapper-persistent-data-0.7.0-0.1.rc6.el7 BUILT: Mon Mar 27 10:15:46 CDT 2017 cmirror-2.02.171-8.el7 BUILT: Wed Jun 28 13:28:58 CDT 2017