Changing shared VG lock type

Charles Koprowski <[email protected]>
Newsgroups gmane.linux.lvm.general
Message-ID <CADBR731Q-Jfcj6iFo9Ai8r+PGtqeG473b-RjMj3Oq0ut8hrM-g@mail.gmail.com>
Hello,

I'm trying to change the lock type of a shared VG from «dlm» to «sanlock».

>From the manpage I understand that I should first change it to «none» and
then change it to «sanlock».

So I changed the lock type to «none» without problem.

I then started lvmlockd + sanlock and tried to change the lock type to
«sanlock» but it failed :

# vgchange --lock-type sanlock data
  Global lock failed: check that global lockspace is started

What could I have missed ?

Here is the log buffer from lvmlockd :

1635939300 lvmlockd started
1635939316 new cl 1 pi 2 fd 8
1635939316 recv vgchange[2576] cl 1 lock gl "" mode ex flags 0
1635939316 read_cluster_name: open error -1, check dlm_controld
1635939316 lockspace "" not found for sanlock gl, searching...
1635939316 work search for gl
1635939316 worker found no gl_is_enabled
1635939316 lockspace "" not found after search
1635939316 read_cluster_name: open error -1, check dlm_controld
1635939316 send vgchange[2576] cl 1 lock gl rv -210 ENOLS
NO_LOCKSPACES,NO_GL_LS
1635939316 close vgchange[2576] cl 1 fd 8
1635939320 new cl 2 pi 2 fd 8
1635939320 recv client[2577] cl 2 dump_log . "" mode iv flags 0

Thank you.

Regards,

-- 
Charles

_______________________________________________
linux-lvm mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.