On 01/30/2011 06:51 PM, JB wrote:
Terry Barnaby<terry1<at> beam.ltd.uk> writes:
> ...
Firstly, I have to re-correct myself - my original debugging statemets were
correct.
I checked it on my machine and /proc/mounts is still available, so we should
include it as it has more info than /etc/mtab. It could give us a clue about
any other mount-related things.
...
# ################################################################
# debugging snapshot statements
# ----------------------------------------------------------------
echo "date">> /halt.debug
date>> /halt.debug
echo "cat /etc/mtab">> /halt.debug
cat /etc/mtab>> /halt.debug
echo "cat /proc/mounts">> /halt.debug
cat /proc/mounts>> /halt.debug
# ################################################################
...
Secondly, I have few things to check with regard to all of this. Perhaps
something pops up.
JB
I am fairly sure the problem is the akonadi/pulseaudio/gconf-helper/dcopserver
processes that are still hanging around due to the fact that the NFS mounts they
are using have gone away.
As I said remounting the NFS /home allows them to exit and allows / to then be
remounted ro and the system shutdown.
I think there are three bugs here:
1. KDE is not waiting for all of its sessions processes to exit before
telling init to halt the system.
2. The rc0 scripts are not making sure all processes using the NFS files
systems have exited prior to unmounting them.
3. The rc0 final / remount ro commadn should make sure all processes have
been killed prior to issuing the remount command. (will the kernel allow
them to be killed when waiting on unmounted NFS ? Kernel bug ?)
Cheers
Terry