From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <97933902117289.tru64-unix-managers.marc@archive.invalid> From: "Matt.Wilkie" Date: Fri, 12 Jan 2001 22:36:31 +0000 To: tru64-unix-managers Subject: SUM: how to force umount of remote NFS share X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=97933902117289 Wow, is this list ever fast. Thank you very much everybody. I asked how to forcibly unmount a no longer avialble NFS share. It turned out the real problem was not that the remote NFS server was not running, but that there was a local process still active at the mountpoint. There were two main routes suggested: 1) use 'lsof' (list of open files) to determine which process has an open file descriptor in the mount location. lsof is a 3rd party program, downloadable from http://tru64unix.compaq.com/demos/ossc-v5.0/rpmhtml/lsof-4.43.html 2) 'fuser -c ' will tell you the process ID's of any processes using that mount point. Then kill them and umount -f should work. fuser is a native Tru64 app. One respondant was liked lsof better because fuser's output is "not very readable". I tried the lsof route first and that worked (the offending process was Samba. The mount point was a couple of levels inside a Samba exported directory). And as a last ditch effort, one could always take this advice: "Given you've already trashed your system state by killing off important processes, why not just reboot?" Which I also did anyway to test my init scripts. Good thing to because not everything autoloaded like I hoped it would. :) Thanks again to BrianH, Alan, Dr. Thomas Blinn, John J. Francini, Oisin McGuinness, and Sean O'Connell. -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ > How do you forcibly unmount a (no longer available) NFS share? > > I was testing out a time limited demo Windows NT NFS server > and neglected to unmount the NT share from our T64 box before > the demo self destructed. > > -The NFS server on the NT machine is no longer running and > cannot be made to run > > -'umount /var/www/htdocs/maps/rhino' does nothing for a > lengthy period, periodically reporting: > "NFS3 server rhinoceros.gov.yk.ca not responding still > trying" > > -'umount -f /var/www/htdocs/maps/rhino' tells me : > "/var/www/htdocs/maps/rhino: Device busy" > > -'mount' output: > root_domain#root on / type advfs (rw) > /proc on /proc type procfs (rw) > usr_domain#usr on /usr type advfs (rw) > usr_domain#var on /var type advfs (rw) > data_domain#local on /usr/local type advfs (rw) > data_domain#gisdata on /data type advfs (rw) > rhinoceros.gov.yk.ca:/d/maps on /var/www/htdocs/maps/rhino \ > type nfs (v3, rw, udp, hard, intr) > > I killed the following processes: > nfsd > nfs* # nfs process which I don't remember the name of > rpc.lockd > rpc.statd > > Does the "device busy" message indicate there is a local > process using that dir? How can I determine what that process > is? > > -name -a' > OSF1 tarantula.gov.yk.ca V5.0 910 alpha > > thanks in advance, > > -matt