Re: Fedora 14: Shutdown problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Terry Barnaby <terry1 <at> beam.ltd.uk> writes:

> 
> Hi,
> 
> About 1 in 4 times Fedora 14 hangs during shutdown on at least 4 of my systems.
> Looking at the shutdown messages (ESC in the splash screen) and adding some 
> debug statements to /etc/rc.d/rc0.d/S01halt, it hangs after the messages:
> 
> 	"Unmounting file systems"
> 	"init: Re-executing /sbin/init"
> 
> with the message:
> 
> 	"mount: you must specify the file system type."
> 
> Adding some debug, this appears after the following command is executed:
> 	"fstab-decode mount -n -o ro,remount /dev/sda1 /"
> 
> The file system is ext4 on all of the systems and that command looks ok.
> 
> Any ideas ?
> 
> Terry

This is our offending script, with the section of interest to us.
/etc/rc.d/rc0.d/S01halt

...
# Tell init to re-exec itself.
kill -TERM 1

# ################################################################
# debugging snapshot statements
# ----------------------------------------------------------------
date >> /halt.debug
cat /etc/mtab >> /halt.debug
cat /proc/mounts >> /halt.debug
# ################################################################

# Remount read only anything that's left mounted.
# echo $"Remounting remaining filesystems readonly"
mount | awk '{ print $1,$3 }' | while read dev dir; do
    fstab-decode mount -n -o ro,remount $dev $dir
done

# If we left mdmon's running wait for the raidsets to become clean
...

Place these debugging snapshot statements in there to see what is in
/etc/mtab prior to 'mount' (which are equivalent).
The others two are helpers ('date' to document time, ""proc/mounts" is even
more useful as it is generally more accurate than /etc/mtab).

Let it be there as long as needed to catch the difference between good and
bad shutdowns (as you said the bad one happens sporadically, every 4th
shutdown or so).

Keep in mind that system update may replace this script.

Just in case, this display would be of interest:
$ cat /proc/filesystems

JB


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux