linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] add_lockspace done -19
@ 2017-10-12 18:30 Moshe Lazarov
  2017-10-13 14:41 ` David Teigland
  0 siblings, 1 reply; 6+ messages in thread
From: Moshe Lazarov @ 2017-10-12 18:30 UTC (permalink / raw)
  To: linux-lvm@redhat.com; +Cc: Moshe Lazarov


[-- Attachment #1.1: Type: text/plain, Size: 1325 bytes --]

Hi,

I am using the following script to create shared VGs using SANLOCK. However,
I keep getting an error when trying to add the lock space.

 

#!/bin/bash

 

killall sanlock

/etc/init.d/sanlock stop

killall lvmetad

lvmetad

sleep 2

vgremove -ff --config global/use_lvmlockd=0 vglock

 

echo 'y' | pvremove -ff --config global/use_lvmlockd=0 /dev/sdb1

echo 'y' | pvremove -ff --config global/use_lvmlockd=0 /dev/sdc1

echo 'y' | pvremove -ff --config global/use_lvmlockd=0 /dev/sdb2

 

#http://man7.org/linux/man-pages/man8/lvmlockd.8.html

#The first vgcreate command needs to be given the path to a device that has
not yet been initialized with pvcreate. /dev/sdb2 is used for the lock and
should not be

#initialized with pvcreate.

 

#Lock VG & LV

vgcreate --verbose --config global/use_lvmlockd=0 vglock /dev/sdb2

lvcreate --config global/use_lvmlockd=0 -n locklv -L 10MB vglock

 

sanlock direct init -s lsgl:1:/dev/vglock/locklv:0

 

lvmlockd

sleep 2

systemctl start sanlock

lvmlockd -g sanlock --host-id 1

sleep 2

systemctl status sanlock

 

sanlock client add_lockspace -s lsgl:1:/dev/vglock/locklv:0

 

pvcreate -ff --config global/use_lvmlockd=0 /dev/sdc1

vgcreate --verbose --shared vg1 /dev/sdc1 --lock-type sanlock

lvcreate -n slowlv -L 150G vg1 /dev/sdc1

 

Please advise.

 

Thanks.


[-- Attachment #1.2: Type: text/html, Size: 7992 bytes --]

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5524 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-10-17 16:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-12 18:30 [linux-lvm] add_lockspace done -19 Moshe Lazarov
2017-10-13 14:41 ` David Teigland
2017-10-16 18:40   ` Moshe Lazarov
2017-10-16 18:54     ` David Teigland
2017-10-16 22:07       ` Moshe Lazarov
2017-10-17 16:54         ` David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).