From: David Teigland <teigland@redhat.com>
To: Charles Koprowski <charles@koprow.ski>
Cc: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Changing shared VG lock type
Date: Thu, 4 Nov 2021 10:25:21 -0500 [thread overview]
Message-ID: <20211104152521.GA16100@redhat.com> (raw)
In-Reply-To: <CADBR731Q-Jfcj6iFo9Ai8r+PGtqeG473b-RjMj3Oq0ut8hrM-g@mail.gmail.com>
On Wed, Nov 03, 2021 at 12:40:24PM +0100, Charles Koprowski wrote:
> 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 ?
Hi, you haven't missing anything, but stumbled across a real issue that we
should improve. This VG needs to have the global lock enabled within it,
but vgchange --locktype doesn't contain the necessary logic to enable a
new global lock (only vgcreate includes that.) You can read more about
the special cases surrounding the global lock in the lvmlockd(8) section
"managing the global lock in sanlock VGs".
To work around this, you can force the vgchange by skipping the global
lock, and then start the lockspace:
$ vgchange --locktype sanlock --lockopt skipgl svg
WARNING: skipping global lock in lvmlockd.
Logical volume "lvmlock" created.
Volume group "svg" successfully changed
$ vgchange --lockstart svg
Depending on what other VGs are seen, it's possible you may also need to
run "lvmlockctl --gl-enable svg" at this point to enable the global lock
in that vg.
Dave
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
next prev parent reply other threads:[~2021-11-04 15:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-03 11:40 [linux-lvm] Changing shared VG lock type Charles Koprowski
2021-11-04 15:25 ` David Teigland [this message]
2021-11-05 11:37 ` Charles Koprowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211104152521.GA16100@redhat.com \
--to=teigland@redhat.com \
--cc=charles@koprow.ski \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.