- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unmounting NFS when it says it is busy
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 01:19 PM
тАО10-17-2002 01:19 PM
Unmounting NFS when it says it is busy
Here is the story.
I was syncing up files on servers both HP-UX 11.0
I made a directory and mounted on both
mkdir /dir_1
mount /dir_1 host_2:/dir_1
I did the export in SAM
I did the same on the other server.
All worked fine. I could move data back in forth between the 2 servers.
Here is the problem.
Now I removed one Server from the network.
Oops, I forgot to remove the NFS/export connection.
When I try to umonunt /dir_1 i get a message
# umount /dir_1
nfs umount: nfs_unmount: /dir_1: is busy
fuser /dir_1 never returns an any things.
How do I break this connection with out the other server?
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 01:33 PM
тАО10-17-2002 01:33 PM
Re: Unmounting NFS when it says it is busy
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-17-2002 01:36 PM
тАО10-17-2002 01:36 PM
Re: Unmounting NFS when it says it is busy
# mount -v
and you should still see the "stale" NFS mount. Don't use bdf as it would either hang or show "stale NFS mount" (you must know this already). Let say the entry looks like ..
..
server:/opt/apps on /opt/mymount type nfs ...
..
Now run fuser against it like this ..
# fuser server:/opt/apps
NOT this "fuser /opt/mymount".
That should return any active processes, kill 'em and you should be able to umount the stale NFS mount.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2002 04:32 AM
тАО10-18-2002 04:32 AM
Re: Unmounting NFS when it says it is busy
hostname:/dir_2 on /dir_1 type nfs defaults,NFSv3 on Mon Oct 14 11:46:52 2002
#
fuser hostane:/dir_2 returns nothing.
also tried fuser -fuk hostname:/dir_2
it returns
hostname:/dir_2: fuser: could not obtain file system ID for file hostname:/dir_2
Looks like I will have to remark out the fstab and reboot.
So for the next time when the other server is reinstalled. It is in rout out of state.
What should I have done.
Mount and unmount in the script so it is not always connected?
or is there another way of mounting a NFS that I may have overlooked?
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2002 04:39 AM
тАО10-18-2002 04:39 AM
Re: Unmounting NFS when it says it is busy
Marty,
get "lsof" and use it in palce of fuser.
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/
As to NFS mounts, you are right to comment out the nfs mount and reboot. It's the fastest way to correct the problem.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2002 05:02 AM
тАО10-18-2002 05:02 AM
Re: Unmounting NFS when it says it is busy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2002 06:09 AM
тАО10-18-2002 06:09 AM
Re: Unmounting NFS when it says it is busy
For example, if you still have ServiceGuard on a host:
cmmodnet -a -i
exportfs -i /dir2
Then on the host with the stuck mount, run umount /dir1
then undo what you did on host:
exportfs -u /dir2
cmmodnet -r
We have done this successfully in the past when we have forgotten about NFS mounts.
Keith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-18-2002 07:18 AM
тАО10-18-2002 07:18 AM
Re: Unmounting NFS when it says it is busy
Thanks for all your help. Your great!
Marty