Bug 1685703 - [RFE] better warning for attempting shared mirror creation in sanlock mode
Summary: [RFE] better warning for attempting shared mirror creation in sanlock mode
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: lvm2
Version: 8.0
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: David Teigland
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-05 20:45 UTC by Corey Marthaler
Modified: 2021-09-07 11:49 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-18 15:17:22 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.