On Thu, 31 Jul 2014 11:00:35 -0700 Ben Greear <greearb@xxxxxxxxxxxxxxx> wrote: > So, this has been asked all over the interweb for years and years, but > the best answer I can find is to reboot the system or create a fake NFS > server somewhere with the same IP as the gone-away NFS server. > > The problem is: > > I have some mounts to an NFS server that no longer exists (crashed/powered down). > > I have some processes stuck trying to write to files open on these mounts. > > I want to kill the process and unmount. > > umount -l will make the mount go a way, sort of. But process is still hung. > umount -f complains: > umount2: Device or resource busy > umount.nfs: /mnt/foo: device is busy > > kill -9 does not work on process. Kill -1 should work (since about 2.6.25 or so). If it doesn't please report the kernel version and cat /proc/$PID/stack for some processes that cannot be killed. NeilBrown > > > Aside from bringing a fake NFS server back up on the same IP, is there any > other way to get these mounts unmounted and the processes killed without > rebooting? > > Thanks, > Ben >
Attachment:
signature.asc
Description: PGP signature