From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 20 Nov 2017 10:10:07 -0600 From: David Teigland Message-ID: <20171120161007.GA29888@redhat.com> References: MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [linux-lvm] lvmlockd: how to convert lock_type from sanlock to dlm? Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="utf-8" To: Eric Ren Cc: LVM general discussion and development On Mon, Nov 20, 2017 at 06:35:20PM +0800, Eric Ren wrote: > 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. > # vgchange --lock-type none --force vg1������ // the cmd comes from `man lvmlockd` > Command does not accept option: --force. First you'll need this recent fix: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f611b68f3c02b9af2521d7ea61061af3709fe87c --force was broken at some point, and the option is now --lockopt force. To change between lock types, you are supposed to be able to change to a local VG, then from local to the other lock type. The man page sections: changing a lockd VG to a local VG changing a local VG to a lockd VG But it looks like a fix is needed in those instructions. I believe "vgchange --lock-type none " needs to include --lockopt force. If you could verify this for me, I'll update the man page. Thanks Dave