archive mirror
 help / color / mirror / Atom feed
From: Eric Ren <>
To: David Teigland <>
Cc: LVM general discussion and development <>
Subject: [linux-lvm] lvmlockd: how to convert lock_type from sanlock to dlm?
Date: Mon, 20 Nov 2017 18:35:20 +0800	[thread overview]
Message-ID: <> (raw)

Hello David,

On my testing cluster,  the lvmlockd was firstly used with sanlock and 
everything was OK.
After some play, I want to change the "sanlock" lock_type of a VG into 
"dlm" locktype.

With dlm_controld running, I tried as following, but still failed.

1.  Performed as the "Changing dlm cluster name" section of `man lvmlockd`:

     # dlm_tool ls             // no lockspace available
     # vgs
        Reading VG vg1 without a lock.
       VG  #PV #LV #SN Attr   VSize  VFree
       vg1   1   1   0 wz--ns 19.97g 18.72g
     # vgchange --lock-type none --force vg1       // the cmd comes from 
`man lvmlockd`
   Command does not accept option: --force.

2. Tried with 'global/locking_type=0':

# vgchange --config 'global/locking_type=0' --lock-type dlm vg1
   WARNING: Locking disabled. Be careful! This could corrupt your metadata.
   ERROR: configuration setting use_lvmlockd cannot be used with 
clustered locking_type 3.

The error message is strange because the locking_type=0 in the command 
line and locking_type=1
in lvm.conf.

Not sure if it's a real problem or am doing something wrong?


             reply	other threads:[~2017-11-20 10:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-20 10:35 Eric Ren [this message]
2017-11-20 16:10 ` [linux-lvm] lvmlockd: how to convert lock_type from sanlock to dlm? David Teigland
2017-11-21  4:11   ` Eric Ren

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* 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 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).