Operating System - HP-UX
1827081 Members
1541 Online
109713 Solutions
New Discussion

Re: NFS file system won't umount

 
Sean OB_1
Honored Contributor

NFS file system won't umount

Hello,

I have a sun box that has an NFS mounted directory to another sun box.

However when I try to umount it I get the following:

root@blackboard0:/etc/init.d # umount /www/blackboard/60T/blackboard/content
nfs umount: /www/blackboard/60T/blackboard/content: not mounted


But it shows as being mounted:


root@blackboard0:/etc/init.d # df -k
Filesystem kbytes used avail capacity Mounted on

dataware.matc.edu:/blackboard/content
17132281 4596193 12364766 28% /www/blackboard/60T/blackboard/content



If I issue a mount it mounts it again and shows up twice:

dataware.matc.edu:/blackboard/content
70226906 18235605 51289032 27% /www/blackboard/60T/blackboard/content
dataware.matc.edu:/blackboard/content
70226906 18235605 51289032 27% /www/blackboard/60T/blackboard/content



Any thoughts on what I can do to remove the one that isn't really mounted, but thinks it is?

6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: NFS file system won't umount

It's been a couple of year since I played with Solaris, so I can't recall exactly, anyway --- Does Solaris have something like HP-UX's /etc/mnttab file? It is basically a list of all that is currently mounted.

In HP-UX you can rebuild that file by:

# mv /etc/mnttab /etc/mnttab.old
# mountall

Would something similar work on Solaris?
Thom Cornwell
Frequent Advisor

Re: NFS file system won't umount

Look at the rmtab. All the SUN systems here display the same nasty habit. That is to say, the rmtab never gets cleaned up. As far as unmounting goes did you try the -f (force option)
--
Thom
Sean OB_1
Honored Contributor

Re: NFS file system won't umount

The file system that shows as mounted is not listed in the rmtab, although another file system which is not mounted does show.

I did try to force the unmount but it just says it's not mounted.

It does show up in the mnttab and moving it and doing a mountall does not recreate it.

Thom Cornwell
Frequent Advisor

Re: NFS file system won't umount

Make sure the original system that was allowing the file system for mounting is still exporting it. /etc/init.d/nfs.server stop/start. Then retry unmounting with the -f option
Paul Cross_1
Respected Contributor

Re: NFS file system won't umount

It sounds to me like the share got mounted twice...

As of Solaris 8, umount with force usually does the trick...
#umount -f

I have found that /etc/rmtab is nearly useless.

PS: don't you wish sun's forums were even half as good as ITRC????
Sean OB_1
Honored Contributor

Re: NFS file system won't umount

Well still no joy.

I've unshared it from the serving machine, and tried to unmount it even with the force. It still shows up in the df list, even though it isn't mounted.

For now I'm going to let it go as it doesn't seem to be causing any problems.

Paul, I gave up on the Solaris forums long ago. The few times I posted any questions I never got a single response!