From: David Teigland <teigland@redhat.com>
To: lvm-devel@redhat.com
Subject: Question: the failure handling for sanlock
Date: Wed, 24 Feb 2021 12:21:01 -0600 [thread overview]
Message-ID: <20210224182101.GD4136@redhat.com> (raw)
In-Reply-To: <20210224031630.GB25715@leoy-ThinkPad-X240s>
On Wed, Feb 24, 2021 at 11:16:30AM +0800, Leo Yan wrote:
> I verified the two patches you mentioned, and applied your suggestion
> to use the command:
>
> "$DMSETUP" info -c -S "uuid=~LVM && vgname=$VG_NAME && lv_layer=\"\"" \
> -o name --noheadings | xargs "$DMSETUP" wipe_table
>
> At the end, I can see the device is changed to use DM "error" backend
> driver:
>
> Broadcast message from systemd-journald at localhost.localdomain (Tue 2021-02-23 21:55:16 EST):
> lvmlockctl[2032]: Deactivated LVs in VG TESTVG1 successfully.
>
> Broadcast message from systemd-journald at localhost.localdomain (Tue 2021-02-23 21:55:16 EST):
> lvmlockctl[2032]: Runing lvmlockctl --drop TESTVG1.
>
> # dmsetup table
> TESTPV1: 0 163840 linear 8:146 0
> TESTVG1-TESTVG1LV1: 0 155648 error
>
> Please be aware, to avoid misleading, I tested this with another
> in-house locking scheme rather than sanlock, but the working flow for
> failure handling is exactly same.
>
> I have updated a bit for the two patches [1]; but want to check with you
> how to proceed to merge these patches? Would you directly merge patches
> at your side or you want me to resend these two patches so you could
> take a review before merging? For the later case, I am glad to send the
> patches to lvm-devel mailing list and follow up comments/suggestions as
> needed.
>
> Thanks,
> Leo
>
> [1] https://people.linaro.org/~leo.yan/lvm/
Thanks for verifying that, please send the patches to the list and I'll
take them from there. Another part I now remember we need to address is
making this configurable (blkdeactivate isn't an established command.)
I'll need to come up with a solution to that before pushing them out. The
possible solutions I'm seeing are somewhat ugly, and this is one of the
reasons we didn't finish the integration last time.
Dave
next prev parent reply other threads:[~2021-02-24 18:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-14 10:13 Question: the failure handling for sanlock Leo Yan
2021-02-15 16:31 ` David Teigland
2021-02-22 11:33 ` Leo Yan
2021-02-24 3:16 ` Leo Yan
2021-02-24 18:21 ` David Teigland [this message]
2021-02-25 11:11 ` Leo Yan
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=20210224182101.GD4136@redhat.com \
--to=teigland@redhat.com \
--cc=lvm-devel@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.