12-07-2007 04:54 AM
We have NFS file system currently mounted in server A. The problem is the server B that provides the nfs file system has changed the ip. When I go to server A, it says - NFS server B not responding still trying. how can I disable this NFS file system since we don't need it. Please help. Hope to hear from you.
Solved! Go to Solution.
12-07-2007 04:59 AM
can you try to change the IP address of server B in the /etc/hosts?
12-07-2007 05:04 AM
To unmount NFS imported you can use:
umount -h xyz.com -a
This will unmount all mount imported from the host.
12-07-2007 05:12 AM
before I unmount, i wanna double verify the NFS from that server B.
I tried to issue:
# showmount -a
showmount: puyuh: RPC: Program not registered
# umount -h xyz.com -a
if let say the server name is "kedidi"
shall i use like this:
# umount -h kedidi -a
I'm a newbie, I'm very afraid to change something very major like this. Hope to hear from you. Thanks a bundle
promise of a good points
12-07-2007 05:15 AM
hostname you are using into command should be same as mentioned into /etc/mnttab. You can verify this name by running bdf command where it can be seen as xyz.com:/filesys.
12-07-2007 05:21 AM
ore temp ad the ip back to server b and umount it.
12-07-2007 05:33 AM
If you are running 11.i v2 or v3 aka 11.23 and 11.31, you can use the umount -f to force the nfs unmount otherwise you will have to reboot.
12-07-2007 05:40 AM
did you try to modify the /etc/hosts or DNS entry so that the server resolves to the new address?
(may also have to modify your /etc/exports)
this can work.
12-07-2007 07:48 AM
the problem is to umount a not-responding file-system!
With the right os (as said above) you can use the force-option, else you have to reconnect to the nfs-server first or do a reboot.
If it's only the ip-address, then you have to change this address for server B in the /etc/hosts of server A.
Then the reconnect should work.
To unmount a directory check your /etc/fstab, there, for example, is:
'server:/bitmaps /bitmaps nfs'
Then your command is 'umount /bitmaps'.
Else, before reboot(!), you should change the /etc/fstab and comment out all directories with are mounted from server B.
12-08-2007 05:37 AM
Thanks a lot for your close guidance. I was able to NFS server B not responding.
I commented the respective entry in the /etc/fstab and /etc/mnntab from the NFS client. When I issue bdf in the NFS client, the NFS server B not responding was disappear. Thanks a lot. :)
12-09-2007 06:05 PM
mnttab(4) implies that syncer(1m) will update mnttab every 30 seconds. So if you edit it, it will be put back. It also says if removed, it will recreate it. You may try renaming it to see what it puts back. Note the WARNINGS in mnttab(4).
So if editing mnttab did work for bdf, it wouldn't work for long.
12-09-2007 06:12 PM
You are right, the problem persist. what should i do now? i wanna have the permanent solution to it? is it umount? would really appreciate you could guide me. Thank you
12-09-2007 11:33 PM
Yes, if the following umount doesn't work.
# umount -h kedidi -a
You don't mix -a with -h.
And I think you have tried it and it failed, so just edit /etc/fstab to remove them then reboot.
12-11-2007 04:23 AM
1. df -k
2. check whether there is any NFS file system mounted.
3. umount /mnt.
4. remove any entry made in /etc/fstab for NFS file system for that particular file sytsem.
12-11-2007 05:14 PM
When I tried to umount, it says:
# umount /backup
nfs umount: nfs_unmount: /backup: is busy
# fuser -cu /backup
# uname -a
HP-UX puyuh B.11.00 A 9000/898 687663371 two-user license
I can't reboot the server, since the application are running some processses. If i can't really do, i have to wait till they allow us to do restart
12-11-2007 10:46 PM
did you checked the source of nfs mounted? I think, you must check the source first. If at the source, the shared directory not mounted, you must mount it (restart nfs daemon) and than try to umount the directory at client.
to restart nfs daemon:
# /sbin/init.d/nfs.server stop
# /sbin/init.d/nfs.server start
12-12-2007 12:43 AM
#fuser -au /file system name
It will shown the user who are using that file system.
Kill the user who are accesing the the file system
# kill -9 processesid or userid.
#umount /filesystem name
12-12-2007 12:46 AM
why you don't try to give server A a 'server B' again? Change the ip address in /etc/hosts so server A can see server B again - or define any client you don't use at the moment and configure it like server B was before you changed it - OR undo the changes at server B.
When the mount is established again, you can unmount without problems. Then (after /etc/fstab is changed) you can change back.