1834395 Members
1851 Online
110066 Solutions
New Discussion

Re: umount question

 
SOLVED
Go to solution
Patrick Snyder
Occasional Advisor

umount question

I have three b1000 workstations using hpux 10.20. These workstations perform the same function and are all mounted to identical file systems. Last week one of the unit's harddrive failed. When i tried to login to one of the workstations that was mounted to the failed unit, it took a long time because it was trying to mount to the damaged unit. Here is my question....Does anyone have a script or know of a way in which to umount the workstations from the damaged unit? When i tried to umount from the workstation, i kept getting device busy. Any suggestions or any solutions on how to umount from a downed unit would be much appreciated.
Thanks....

Patrick
4 REPLIES 4
John Poff
Honored Contributor

Re: umount question

Hi Patrick,

I don't think there is much you can do. You can try to see what process might be holding open that mount and kill it, but it sounds like one of those cases where being a little broken is worse that being completely broken. The disk is sick but not completely dead, so the O/S hasn't given up on it and probably is getting a bunch of retrys.

JP
S.K. Chan
Honored Contributor
Solution

Re: umount question

First find out if any process/processes is active on the stale NFS filesystem. On the workstation run ..
# mount -v
which will list what's in the mount table. Say for an example of an NFS entry that was stale ..(server name = mars).
mars:/opt/apps on /opt/appsA type nfs....
And you want to try to umount this.
# fuser mars:/opt/apps
==> This list what processes are on the FS.
# fuser -k mars:/opt/apps
==> Try to kill those processes.
Now you should be able to umount it ..
# umount mars:/opt/apps
And ... don't forget to comment the bad entry in the /etc/fstab file.

John Dvorchak
Honored Contributor

Re: umount question

The "device busy" part of your question bothers me. You didn't cd to that mounted directory and try to execute a umount from there did you? That would give you a "device busy" message. Also to see what and who is using the mounted filesystem you can use fuser -u and then fuser -k to kill the proc's using that filesystem (man fuser). To umount a workststion from the server you can logon to the server, in this case the one with the broken disk, and use
exportfs -u directory_you_want_to_unexport.
(man exportfs).
If it has wheels or a skirt, you can't afford it.
Patrick Snyder
Occasional Advisor

Re: umount question

Thanks all. Chan's information is what i was looking for. Thanks for all your help.

Regards...
Patrick Snyder