[Pkg-xen-devel] Bug#630984: xen-utils-common: shutdown hangs with xenwatch and reboot being blocked
Andreas Pflug
pgadmin at pse-consulting.de
Sun Jun 19 13:50:32 UTC 2011
Package: xen-utils-common
Version: 4.0.0-1
Severity: normal
Tags: squeeze
The host runs (at the time of testing) a single linux-x86 domu (128MB,
1VCPU).
When issuing a reboot, everything looks as expected:
- domu is saved
- xend is stopped
- drbd stopped
- lvms unmounted
- md0..4 stopped
and the message "rebooting now" appears, but nothing happens until
"INFO: task xenwatch is blocked for 120 seconds" and
"INFO: task reboot is blocked for 120 seconds" appear. A hard reset is
necessary to resume.
Poking around I found that waiting for things to settle after the domu
has been saved helps. For this, I modified /etc/init.d/xendomains,
sleeping for 2 seconds a the end of the stop() function. One second of
sleep sometimes wasn't enough.
*** xendomains-org Sun Jun 19 15:26:49 2011
--- xendomains Sun Jun 19 15:27:13 2011
***************
*** 342,347 ****
--- 342,350 ----
kill $WDOG_PID >/dev/null 2>&1
fi
+ # prevent race condition
+ sleep 2
+
# Unconditionally delete lock file
rm -f $LOCKFILE
}
-- System Information:
Debian Release: 6.0.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages xen-utils-common depends on:
ii gawk 1:3.1.7.dfsg-5 GNU awk, a pattern scanning
and pr
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2
init scrip
ii udev 164-3 /dev/ and hotplug
management daemo
ii xenstore-utils 4.0.1-2 Xenstore utilities for Xen
xen-utils-common recommends no packages.
xen-utils-common suggests no packages.
-- Configuration Files:
/etc/init.d/xendomains changed [not included]
More information about the Pkg-xen-devel
mailing list