From: Zdenek Kabelac <zdenek.kabelac@gmail.com>
To: "LVM general discussion and development" <linux-lvm@redhat.com>,
"Arkadiusz Miśkiewicz" <arekm@maven.pl>
Subject: Re: [linux-lvm] vgchange -a n --sysinit hangs without udevd
Date: Thu, 23 Sep 2021 15:49:09 +0200 [thread overview]
Message-ID: <6be34e20-b344-d2ec-a62a-9090bf102635@gmail.com> (raw)
In-Reply-To: <fd7cf93d-4f51-28a9-d7a8-dd61fd59268b@maven.pl>
Dne 22. 09. 21 v 9:19 Arkadiusz Miśkiewicz napsal(a):
>
> Hello.
>
> Linux 5.10.67, glibc 2.34, lvm 2.03.13, udevd 246, simple init script
> run on shutdown which does
>
> vgchange -a n --sysinit
>
> no other processes are running (just init, my script and vgchange),
> vgstorage is vg on md raid 10 on 4 hdd disks.
>
> it hangs with
>
> + /sbin/vgchange -a n --sysinit --verbose --debug
> Failed to find sysfs mount point
> No proc filesystem found: skipping sysfs filter
> No proc filesystem found: skipping multipath filter
> File locking initialisation failed.
> Deactivating logical volume vgstorage/lvhome.
> Removing vgstorage-lvhome (253:0)
> Deactivated 1 logical volumes in volume group vgstorage.
>
> Note that running
> vgchange -a n --sysinit --verbose --debug
> on fully running system just works fine:
>
> # vgchange -a n --sysinit --verbose --debug
> Deactivating logical volume vgstorage/lvhome.
> Removing vgstorage-lvhome (253:0)
> Deactivated 1 logical volumes in volume group vgstorage.
> 0 logical volume(s) in volume group "vgstorage" now active
> #
>
>
> so I've restarted udevd just before vgchange call in my script and it
> works.
>
> Other test:
>
> fully running system
> # udevd --version
> 246
> # killall udevd
> # vgchange -a n --sysinit --verbose --debug
> Deactivating logical volume vgstorage/lvhome.
> Removing vgstorage-lvhome (253:0)
> Deactivated 1 logical volumes in volume group vgstorage.
> and hangs
>
>
> Why is udevd needed for vgchange there? It wasn't needed to deactivate
> vg before AFAIK.
>
>
> strace
Hi
It does look like the initial detection of running udev within lvm2 code is
doing something wrong.
It should recognize there is no udev running and behave like if --noudevsync
would be given.
I'll check what has changed.
Regards
Zdenek
_______________________________________________
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/
prev parent reply other threads:[~2021-09-23 13:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-22 7:19 [linux-lvm] vgchange -a n --sysinit hangs without udevd Arkadiusz Miśkiewicz
2021-09-22 7:40 ` Arkadiusz Miśkiewicz
2021-09-23 13:49 ` Zdenek Kabelac [this message]
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=6be34e20-b344-d2ec-a62a-9090bf102635@gmail.com \
--to=zdenek.kabelac@gmail.com \
--cc=arekm@maven.pl \
--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 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).