Package: sanlock
Version: 3.3.0-2.2
Severity: important

Dear Maintainer,

After installing sanlock and configuring lvm2 to use it, I attempted
to create a volume group and receive the following error:

charlie@kvm01:~$ sudo vgcreate --shared vg1 /dev/sdb
  Enabling sanlock global lock
  Logical volume "lvmlock" created.
  VG vg1 init failed: invalid parameters for sanlock
  Failed to initialize lock args for lock type sanlock
  Volume group "vg1" successfully removed

The log shows the following:

Jan 12 14:29:30 kvm01 lvmlockd[48237]: 1515767370 S lvm_vg1 init_vg_san sanlock 
error -19 trying to get align size of /dev/mapper/vg1-lvmlock
Jan 12 14:29:30 kvm01 sanlock[48461]: 2018-01-12 14:29:30+0000 269036 [48464]: 
open error -13 /dev/mapper/vg1-lvmlock

After some investigation, I discovered that the sanlock user is not a
member of the disk group by default, causing the error above.

This can be resolved by the user by adding the sanlock user to the disk
group and restarting sanlock.

I believe that this step should be automated by default.

Thank you!


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-2-amd64 (SMP w/12 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sanlock depends on:
ii  adduser      3.116
ii  libaio1      0.3.110-5
ii  libblkid1    2.30.2-0.1
ii  libc6        2.25-5
ii  libsanlock1  3.3.0-2.2
ii  libuuid1     2.30.2-0.1

sanlock recommends no packages.

sanlock suggests no packages.

-- no debconf information

Reply via email to