Operating System - Linux
1827892 Members
1773 Online
109969 Solutions
New Discussion

NFS client unmounts. But NFS server still shows mounted

 
kenny chia
Regular Advisor

NFS client unmounts. But NFS server still shows mounted

Hi
On a Red Hat ES3 client (hostname genesis) I mounted a directory on another server (hostname hnsnas_hpsim ip 192.168.23.108) using the following command

genesis $ mount -t nfs 192.168.23.108:/users1/oraclerman /rmanshare

Later on I unmount the directory using the following command

genesis $ umount /rmanshare

Using the df command /rmanshare is not shown not to be mounted.

But running showmount on the server still shows that genesis is still mounted

[12:11:49 root@hnsnas_hpsim ~]# showmount
Hosts on hnsnas_hpsim:
genesis

Is the client genesis still mounted on hnsnas_hpsim ?
All Your Bases Are Belong To Us!
6 REPLIES 6
Matti_Kurkela
Honored Contributor

Re: NFS client unmounts. But NFS server still shows mounted

The man page of the showmount command, section "BUGS", says (at least on my Ubuntu Linux desktop):

"The completeness and accuracy of the information that showmount displays varies according to the NFS serverâ s implementation."

So the showmount command might be inaccurate.
What's the OS version of the server host, and is it up to date with patches?

MK
MK
Steven E. Protter
Exalted Contributor

Re: NFS client unmounts. But NFS server still shows mounted

Shalom,

There may be an open file handle that may not be triggering the normal "device busy" notice at umount time.

Use fuser to find file handles.

See about the system patches as well.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
skt_skt
Honored Contributor

Re: NFS client unmounts. But NFS server still shows mounted

export from the server side.. and after that the client should not show in shomount

server#exportfs -v -u client:/mount/point
kenny chia
Regular Advisor

Re: NFS client unmounts. But NFS server still shows mounted

Hi Kumar
I tried the export command you suggested. Still the same results :(
All Your Bases Are Belong To Us!
savus
Advisor

Re: NFS client unmounts. But NFS server still shows mounted

Hello,

try on the client fuser -ku /mount_point

Regards,
Stefan
skt_skt
Honored Contributor

Re: NFS client unmounts. But NFS server still shows mounted

are u sure none of other clients using them. But that shoould be reported in server side with exportfs