[ILUG] Dead Mountpoints
wesley at blackstar.co.uk
Sun Mar 25 15:24:49 IST 2001
On Sun, Mar 25, 2001 at 02:08:10PM +0100, Martin Donlon wrote:
> I'm sure this has happened to people before, its very common with samba
> mounted filesystems I find, when the net connection dies or the machine
> is switched off (very common practice int he Windows world I hear).
> Anyway, whatever the cause, the network link for the mount point
> vanishes and yet the mountpoint still exists. Any attempt to perform any
> operations within the mount cause sends the process into an
> uninterruptible sleep. If you are lucky you should be able to kill the
> mount process (smbmount or nfs or whatever). But mount still thinks its
> mounted, and any attempt to perform an operations on the directory just
> results in an IO error. As far as I can tell, the only way to remedy
> this situation is a rather kludgy reboot. Surely there is another way
> around this?
Traditionally, nfs mounts are mounted `hard' which means that writes will
not stop trying to issue themselves until the machine is rebooted (or
some similarly cataclysmic (for nfs) event takes place...). A quick,
nasty and usually short-sighted approach involves `soft' mounting, which
means that writes will quickly give up and fail. Another alternative
is to mount with `intr'. The man pages for the `mount' command should
detail your choices.
Other alternatives include using coda to export filesystems, which includes
provision for disconnected operation. Never used it myself, mind...
More information about the ILUG