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

Bug#2459: Filesystems unmounted in wrong order

Package: sysvinit
Version: 2.58-2

Rob Leslie writes:
> >> Do you have any NFS partitions mounted under /var when you shutdown or
> >> reboot?
> >
> > Yes, /var/spool/mail.
> Please see my Bug#2304. The problem is that during shutdown, the network layer
> (e.g. PPP?) is destroyed before any attempt is made to unmount the NFS
> partition, which subsequently fails. This also leaves /var unable to be
> unmounted, which is why you see it being fscked on reboot.
> I have not yet seen any suggestions for how to resolve this problem. If you
> have any ideas, I would welcome a discussion.

The problem seems to be in /etc/init.d/reboot at these lines.

echo -n "Unmounting file systems... "
umount -a -tnonfs 2>/dev/null
umount -a -tnfs 2>/dev/null

I think these should be around the other way as it's causing my /var
partition to not umount cause /var/spool/mail is still mounted when
it tries to unmount /var.

Is there any reason why nfs mounted filesystems should be unmounted
after every other type of filesystem?


Dehydration - 34%, Recollection of previous evening - 2%, embarrassment
factor - 91%.  Advise repair schedule:- off line for 36 hours, re-boot
startup disk, and replace head - wow, what a night!
                -- Kryten in Red Dwarf `The Last Day'

Andrew Howell				               andrew@it.com.au
Perth, Western Australia		      howellaa@cs.curtin.edu.au

Reply to: