[Pkg-sysvinit-devel] system hangs during shutdown...
Bruce Sass
bmsass at shaw.ca
Thu Jul 21 00:34:55 UTC 2011
...while unmounting an NFS import.
Hi,
[Please Cc me with any replies.]
--- copied from console ---
Asking all remaining processes to terminate... done.
Currently running processes (pstree):
init-+-4*[kded4---{kded4}]
|-rc---startpar---sendsigs---pstree
|-rpc.statd
|-rpcbind
'-rsyslogd---3*[{rsyslogd}]
Killing all remaining processes... Saving random seed... done.
failed.
Stopping enhanced syslogd: rsyslogd
Unmounting remote and non-toplevel virtual filesystems...[285770.720036] nfs:
server satone not responding, still trying
[After about 20 minutes had passed I hit the power button. :( ]
---
Satone is a dual-boot laptop that just happened to have changed from DGL
serving up a user's $HOME via NFS (the only fs it exports) to Windows Vista.
I'm mentioning this fact because I don't know if it matters that the exporting
server disappeared <period>, or that it was replaced by a non-unix-like system
that doesn't run an NFS server.
The "Unmounting remote and non-toplevel virtual filesystems" message comes
from /etc/init.d/umountnfs.sh which belongs to the initscripts package,
umountnfs.sh calls on umount (from the mount package), and I'm assuming the
"[285770.720036] nfs: server satone not responding, still trying" message is
coming from the kernel.
So, who should get this bug? ...'cause someone needs to timeout (sooner?)
instead of hanging (or appearing to hang?) the system!
Then there is the question of why is the system even trying to umount the
import from satone when it (satone) was properly shutdown and as-such the
system should know that the imported FS is no longer around--the "fstab-decode
umount $FLAGS $DIRS" line in umountnfs.sh appears the culprit here, a proc-
mounts-decode or mtab-decode seems more appropriate than blindly(?) trying to
umount whatever is in fstab, assuming either of those is possible and I'm not
mistaken in assuming that unexporting a FS causes the importing host to remove
it from /proc/mounts.
- Bruce
More information about the Pkg-sysvinit-devel
mailing list