Re: mounting /var/run as mfs
From: Igor Sobrado (sobrado_at_string1.ciencias.uniovi.es)
Date: 11/12/03
- Previous message: the.wizard: "Re: Which BSD?"
- In reply to: Igor Sobrado: "Re: mounting /var/run as mfs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 12 Nov 2003 09:15:33 +0100
Igor Sobrado <sobrado@string1.ciencias.uniovi.es> wrote:
> Brian A. Seklecki <lavalamp@spiritual-machines.org> wrote:
>>
>> Would you like to send-pr(1) on this or shall I? Contact me off-group if
>> you wish. The best way to approach a possible debug on this is to setup
>> the RC shutdown scripts to run "sh -x" so we can see what is going wrong
>> right there at the end of /etc/rc.shutdown
>
> I will trace the shutdown script today. That is a very nice idea.
> At least we will know where it locks.
I have spend some hours shutting down my laptop to isolate the bug.
It is not an easy task! I believe that /etc/rc.shutdown runs without
problems. I changed the first line on the script to "#!/bin/sh -x"
and added some echoes. It seems that the script does not hang.
Next step was removing all the system information files in /var/run.
After removing all entries in /var/run I am unable to umount that mfs.
It is looked by inetd(8) yet. Of course, killing the next process is
not possible when /var/run is locked:
mount_mfs -s 1m swap /var/run
Again, the computer does not shut down cleanly:
syncing disks... 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 giving up
...more filesystems damaged.
Next test: I added a "inetd=NO" entry to /etc/rc.conf, and rebooted
the machine. Without inetd(8) running I shut down the computer again.
Same problem here.
Last test: without inetd(8) running I removed all the system information
files in /var/run and rebooted the computer. This time, the computer
rebooted without problems:
syncing disks... done
In short, the operating system does not shut down cleanly if /var/run
is a mount point for a mfs locked by ANY process. The key here, is
that the operating system locks too /var/run if it is a directory
instead of a mounting point for a mfs. But in this case the operating
system is able to shut down without damaging any filesystem.
I hope that this information will be useful for fixing this bug.
Igor.
-- Igor Sobrado, UK34436 - sobrado@acm.org
- Previous message: the.wizard: "Re: Which BSD?"
- In reply to: Igor Sobrado: "Re: mounting /var/run as mfs"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|