Operating System - HP-UX
1820592 Members
1922 Online
109626 Solutions
New Discussion юеВ

How to unmount a NFS FileSystem

 
Carles Viaplana
Valued Contributor

How to unmount a NFS FileSystem

Hello.

When we try to unmount a NFS FileSystem we get this error:
# umount /usr/sap/trans
nfs umount: nfs_unmount: /usr/sap/trans: is busy
umount: return error 1.
# bdf /usr/sap/trans
Filesystem kbytes used avail %used Mounted on
spe:/export/usr/sap/trans
8192000 5549000 2477872 69% /usr/sap/trans
#
Any idea? Thanks.
5 REPLIES 5
Arunvijai_4
Honored Contributor

Re: How to unmount a NFS FileSystem

Try running, # fuser -u /usr/sap/trans and check for any usage. then, you can kill all the processes which uses /usr/sap/trans by # fuser -ku /usr/sap/trans.

Now, you can umount the FS.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Pete Randall
Outstanding Contributor

Re: How to unmount a NFS FileSystem

You need to find out what is making the file system "busy". Try running fuser or lsof against it. Find out who is using the file system and get them out of it - then you can unmount it.

lsof is available here:
http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.11/

The 11.0 version is here:
http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.00/64/9000_778/


Pete


Pete
Carles Viaplana
Valued Contributor

Re: How to unmount a NFS FileSystem

Thanks for your answers!

I executed fuser and nobody is working on, so I should be able to unmount filesytem.

It this error could be due some users from remote system (spe) are connected there?

I assume unmount only affects my system.

Regards,

Carles
Raj D.
Honored Contributor

Re: How to unmount a NFS FileSystem

Hi Carles ,

Try to check with fuser if any open files is there..

# fuser -cu /usr/sap/trans

If open .. kill using ,
# fuser -ku /usr/sap/trans


Try unmount:
# umount /usr/sap/trans

* make sure you are not sitting on the directory.


hth,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Bill Hassell
Honored Contributor

Re: How to unmount a NFS FileSystem

Unfortunately, fuser seldom identifies many processes that have NFS mounts open. The only tool which can truly identify the processes that have the NFS mount open is lsof. This is available from HP http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,5972,00.html but only for 11.11

For older versions of HP-UX, get a copy from the Liverpool archive: http://hpux.connect.org.uk/ or from the author: http://people.freebsd.org/~abe/


Bill Hassell, sysadmin