[projects/rc-scripts] vgchange -a n can hang on shutdown waiting for udevd synchronization. Don't do such synchronization

arekm arekm at pld-linux.org
Wed Sep 22 09:34:25 CEST 2021


commit 6371a9cfbcc65b0e32a1e34f46610ea0dccb9d3f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Sep 22 09:34:14 2021 +0200

    vgchange -a n can hang on shutdown waiting for udevd synchronization. Don't do such synchronization since  udevd is already killed at this moment anyway. (https://listman.redhat.com/archives/linux-lvm/2021-September/msg00011.html)

 rc.d/rc.shutdown | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rc.d/rc.shutdown b/rc.d/rc.shutdown
index b4f6e7eb..c6ecd5a8 100755
--- a/rc.d/rc.shutdown
+++ b/rc.d/rc.shutdown
@@ -117,7 +117,7 @@ if ! is_yes "$VSERVER"; then
 	if [ -x /sbin/vgchange ]; then
 		lvmversion=$(LC_ALL=C /sbin/vgchange --version 2>/dev/null | awk '/LVM version:/{if ($3 >= 2) print "2"}')
 		if [ "$lvmversion" = "2" ]; then
-			lvmsysinit="--sysinit"
+			lvmsysinit="--sysinit --noudevsync"
 		else
 			lvmsysinit=""
 		fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/6371a9cfbcc65b0e32a1e34f46610ea0dccb9d3f



More information about the pld-cvs-commit mailing list