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.

Bug 1685703

Summary: [RFE] better warning for attempting shared mirror creation in sanlock mode
Product: Red Hat Enterprise Linux 8 Reporter: Corey Marthaler <cmarthal>
Component: lvm2Assignee: David Teigland <teigland>
lvm2 sub component: LVM lock daemon / lvmlockd QA Contact: cluster-qe <cluster-qe>
Status: CLOSED WONTFIX Docs Contact:
Severity: unspecified    
Priority: unspecified CC: agk, heinzm, jbrassow, pasik, prajnoha, teigland, zkabelac
Version: 8.0Keywords: FutureFeature
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
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: 2020-11-18 15:17:22 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 2019-03-05 20:45:39 UTC
Description of problem:
"Shared activation not compatible with LV type mirror" could be confusing since it's absolutely compatible when in dlm mode, just not when running w/ sanlock.


[root@host-084 ~]# systemctl status lvmlockd
â lvmlockd.service - LVM lock daemon
   Loaded: loaded (/usr/lib/systemd/system/lvmlockd.service; disabled; vendor preset: disabled)
   Active: active (running) since Mon 2019-03-04 18:23:01 CST; 19h ago
     Docs: man:lvmlockd(8)
 Main PID: 10922 (lvmlockd)
    Tasks: 7 (limit: 26213)
   Memory: 3.1M
   CGroup: /system.slice/lvmlockd.service
           ââ10922 /usr/sbin/lvmlockd --foreground

Mar 04 18:23:01 host-084.virt.lab.msp.redhat.com systemd[1]: Starting LVM lock daemon...
Mar 04 18:23:01 host-084.virt.lab.msp.redhat.com lvmlockd[10922]: [D] creating /run/lvm/lvmlockd.socket
Mar 04 18:23:01 host-084.virt.lab.msp.redhat.com lvmlockd[10922]: 1551745381 lvmlockd started
Mar 04 18:23:01 host-084.virt.lab.msp.redhat.com systemd[1]: Started LVM lock daemon.
Mar 04 18:31:02 host-084.virt.lab.msp.redhat.com lvmlockd[10922]: 1551745862 S lvm_activator1 R wwKjDG-Rmld-iDfX-L9jp-AO66-J3Ga-WXaGF5 free_lv_san write error -22
Mar 05 13:40:27 host-084.virt.lab.msp.redhat.com lvmlockd[10922]: 1551814827 S lvm_activator1 R tY9spu-SH1k-9JDw-xSq7-fWn9-AKvB-Ksxgn5 free_lv_san write error -22
Mar 05 13:41:20 host-084.virt.lab.msp.redhat.com lvmlockd[10922]: 1551814880 S lvm_activator1 R u9HAw5-Yx4T-9C9m-zI4Z-qr5V-WvGi-ud8Fwx free_lv_san write error -22
Mar 05 13:42:17 host-084.virt.lab.msp.redhat.com lvmlockd[10922]: 1551814937 S lvm_activator1 R ZAlTx0-rRtE-edf3-VwZv-Km7j-zHZN-DRAVF2 free_lv_san write error -22



[root@host-084 ~]# lvcreate --activate sy --type mirror -m 1 -n mirror2 -L 100M activator1
  Shared activation not compatible with LV type mirror of activator1/mirror2
  Failed to lock logical volume activator1/mirror2.
  Failed to activate new LV activator1/mirror2.
  _free_lv lvmlockd result -22


Version-Release number of selected component (if applicable):
kernel-4.18.0-67.el8    BUILT: Sat Feb  9 08:10:47 CST 2019
lvm2-2.03.02-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
lvm2-libs-2.03.02-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
lvm2-dbusd-2.03.02-6.el8    BUILT: Fri Feb 22 04:50:28 CST 2019
lvm2-lockd-2.03.02-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
boom-boot-0.9-7.el8    BUILT: Mon Jan 14 14:00:54 CST 2019
cmirror-2.03.02-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
device-mapper-1.02.155-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
device-mapper-libs-1.02.155-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
device-mapper-event-1.02.155-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
device-mapper-event-libs-1.02.155-6.el8    BUILT: Fri Feb 22 04:47:54 CST 2019
device-mapper-persistent-data-0.7.6-1.el8    BUILT: Sun Aug 12 04:21:55 CDT 2018
sanlock-3.6.0-5.el8    BUILT: Thu Dec  6 13:31:26 CST 2018
sanlock-lib-3.6.0-5.el8    BUILT: Thu Dec  6 13:31:26 CST 2018

Comment 3 David Teigland 2020-11-18 15:17:22 UTC
no more cmirror