Bug 1868833
Summary: | RFE: have cluster lvm cmds mention the config file when lvmlockd isnt set properly | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Corey Marthaler <cmarthal> |
Component: | lvm2 | Assignee: | David Teigland <teigland> |
lvm2 sub component: | LVM lock daemon / lvmlockd | QA Contact: | cluster-qe <cluster-qe> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | agk, heinzm, jbrassow, mcsontos, prajnoha, teigland, zkabelac |
Version: | 8.3 | Keywords: | FutureFeature |
Target Milestone: | rc | ||
Target Release: | 8.0 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | lvm2-2.03.14-1.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-05-10 15:21:57 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: |
Description
Corey Marthaler
2020-08-13 23:12:31 UTC
I ran into this while testing on RHEL9 Beta. I had the cluster up with lvmlockd running in the locking resource group and vgcreate failed. [root@host-002 ~]# pcs status --full Cluster name: STSRHTS26331 Cluster Summary: * Stack: corosync * Current DC: host-002 (1) (version 2.1.0-11.el9-7c3f660707) - partition with quorum * Last updated: Fri Sep 24 15:09:16 2021 * Last change: Fri Sep 24 13:17:57 2021 by root via cibadmin on host-002 * 5 nodes configured * 15 resource instances configured Node List: * Online: [ host-002 (1) host-003 (2) host-004 (3) host-005 (4) host-006 (5) ] Full List of Resources: * fence-host-002 (stonith:fence_xvm): Started host-002 * fence-host-003 (stonith:fence_xvm): Started host-003 * fence-host-004 (stonith:fence_xvm): Started host-004 * fence-host-005 (stonith:fence_xvm): Started host-005 * fence-host-006 (stonith:fence_xvm): Started host-006 * Clone Set: locking-clone [locking]: * Resource Group: locking:0: * dlm (ocf:pacemaker:controld): Started host-004 * lvmlockd (ocf:heartbeat:lvmlockd): Started host-004 * Resource Group: locking:1: * dlm (ocf:pacemaker:controld): Started host-005 * lvmlockd (ocf:heartbeat:lvmlockd): Started host-005 * Resource Group: locking:2: * dlm (ocf:pacemaker:controld): Started host-006 * lvmlockd (ocf:heartbeat:lvmlockd): Started host-006 * Resource Group: locking:3: * dlm (ocf:pacemaker:controld): Started host-002 * lvmlockd (ocf:heartbeat:lvmlockd): Started host-002 * Resource Group: locking:4: * dlm (ocf:pacemaker:controld): Started host-003 * lvmlockd (ocf:heartbeat:lvmlockd): Started host-003 Migration Summary: Tickets: PCSD Status: host-002: Online host-003: Online host-004: Online host-005: Online host-006: Online Daemon Status: corosync: active/enabled pacemaker: active/enabled pcsd: active/enabled [root@host-002 ~]# vgcreate --config devices/scan_lvs=1 --shared STSRHTS26331 /dev/sda1 Using a shared lock type requires lvmlockd. Run `vgcreate --help' for more information. https://sourceware.org/git/?p=lvm2.git;a=commit;h=e62a71f3dd97795ea64b2f3948dd8629c2dac8b8 log_error("Using a shared lock type requires lvmlockd (lvm.conf use_lvmlockd.)"); Marking Verified:Tested in the latest rpms kernel-4.18.0-348.4.el8 BUILT: Mon Oct 25 14:44:48 CDT 2021 lvm2-2.03.14-1.el8 BUILT: Wed Oct 20 10:18:17 CDT 2021 lvm2-libs-2.03.14-1.el8 BUILT: Wed Oct 20 10:18:17 CDT 2021 lvm2-dbusd-2.03.14-1.el8 BUILT: Wed Oct 20 10:18:48 CDT 2021 [root@hayes-03 ~]# systemctl status lvmlockd ◠lvmlockd.service - LVM lock daemon Loaded: loaded (/usr/lib/systemd/system/lvmlockd.service; disabled; vendor preset: disabled) Active: active (running) since Wed 2021-11-03 11:00:44 CDT; 1min 57s ago Docs: man:lvmlockd(8) Main PID: 98930 (lvmlockd) Tasks: 3 (limit: 1647315) Memory: 2.8M CGroup: /system.slice/lvmlockd.service └─98930 /usr/sbin/lvmlockd --foreground Nov 03 11:00:44 hayes-03.lab.msp.redhat.com systemd[1]: Starting LVM lock daemon... Nov 03 11:00:44 hayes-03.lab.msp.redhat.com lvmlockd[98930]: [D] creating /run/lvm/lvmlockd.socket Nov 03 11:00:44 hayes-03.lab.msp.redhat.com lvmlockd[98930]: 1635955244 lvmlockd started Nov 03 11:00:44 hayes-03.lab.msp.redhat.com systemd[1]: Started LVM lock daemon. [root@hayes-03 ~]# grep use_lvmlockd /etc/lvm/lvm.conf # Configuration option global/use_lvmlockd. use_lvmlockd = 0 [root@hayes-03 ~]# vgcreate --shared global /dev/sdd1 Using a shared lock type requires lvmlockd (lvm.conf use_lvmlockd.) Run `vgcreate --help' for more information. Marking Verified in the latest rpms. kernel-4.18.0-348.4.el8.kpq0 BUILT: Wed Oct 27 15:00:32 CDT 2021 lvm2-2.03.14-1.el8 BUILT: Wed Oct 20 10:18:17 CDT 2021 lvm2-libs-2.03.14-1.el8 BUILT: Wed Oct 20 10:18:17 CDT 2021 lvm2-lockd-2.03.14-1.el8 BUILT: Wed Oct 20 10:18:17 CDT 2021 [root@hayes-02 ~]# grep use_lvmlockd /etc/lvm/lvm.conf # Configuration option global/use_lvmlockd. # use_lvmlockd = 0 [root@hayes-02 ~]# vgcreate --shared global /dev/sdd1 Using a shared lock type requires lvmlockd (lvm.conf use_lvmlockd.) Run `vgcreate --help' for more information. 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 (lvm2 bug fix and enhancement update), 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/RHBA-2022:2038 |