1824488 Members
3412 Online
109672 Solutions
New Discussion юеВ

clear cifsmount

 
SOLVED
Go to solution
John Guster
Trusted Contributor

clear cifsmount

A window server called test has a share dev1 mounted on hpux through cifsmount. Share dev1 removed on window before unmount it from hp unix. Now bdf on hp gave error. cifsdb -d test, cifslogout test, removed /etc/mnttab, then mount -a, still bdf gave error: NFS timeout, connection time out. How to clear this cifsmount? Any thoughts? Thank you.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: clear cifsmount

Shalom,

removing /etc/mnttab is not effective, because that is really a record keeping file. The mount entry continues to return.

What is necessary is to clear the mount. umount, perhaps fuser -cuk on the file system to clear out the old file handles.

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
John Guster
Trusted Contributor

Re: clear cifsmount

tried. Still not working.
John Guster
Trusted Contributor

Re: clear cifsmount

some more information on this: The mount point is /dev1 on hp. mkdir /dev1 gave "File exist". but ll /|grep dev1 gave not found.
Eric Raeburn
Trusted Contributor

Re: clear cifsmount

John,

Is the cifsclient still up? It appears that is is, since you can still issue cifs* commands.

The first thing I'd try is to recreate the share on the Windows system and try to access it. If that succeeds, unmount it with cifsumount and then remove it again on the windows side.

If that does not work, I believe you will not be able to gracefully unmount; you will have to forceably kill the cifsclient daemon, then do:

cifsclient force_umount

You may then need to wait for the mount to be removed from the kernel mount table (removing /etc/mnttab again might be useful at this point). If mount (without "-a") or bdf still show the mount after a reasonable time period, you may have no choice but to reboot to remove the stale mount.

All of this is dependent on the versions of HP-UX and the CIFS Client.

-Eric
nightwich
Valued Contributor
Solution

Re: clear cifsmount

Hi John,

You can try the following:

I think the best way to solve this issue is to create the moun_point in windows server.

Then do the umount.

If not possible thr the following:

#cifsumount -f

Stop cifs client on then
#cifsclient force_umount

In last case try the following shutdown the windows machine or stop only the network services then:

#/sbin/init.d/cifsclient stop
#cifsclient force_umount "mount_point"

I think this will solve your problems,

Best regards.


John Guster
Trusted Contributor

Re: clear cifsmount

I should assign Eric 10 points. Thanks Eric and everyone. It works.