Re: How to unmount the NFS. Please help. (3593 Views)
Reply
Super Advisor
apple
Posts: 560
Registered: ‎10-18-2007
Message 1 of 23 (3,593 Views)
Accepted Solution

How to unmount the NFS. Please help.

Dear HPUX Gurus,
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.
Honored Contributor
Yogeeraj_1
Posts: 4,613
Registered: ‎11-25-2001
Message 2 of 23 (3,593 Views)

Re: How to unmount the NFS. Please help.

hi,

can you try to change the IP address of server B in the /etc/hosts?

revert

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Esteemed Contributor
Shrikant Lavhate
Posts: 501
Registered: ‎10-31-2007
Message 3 of 23 (3,593 Views)

Re: How to unmount the NFS. Please help.

hi,

To unmount NFS imported you can use:

umount -h xyz.com -a

This will unmount all mount imported from the host.
Will it remain a personal, if I broadcast it here!
Super Advisor
apple
Posts: 560
Registered: ‎10-18-2007
Message 4 of 23 (3,593 Views)

Re: How to unmount the NFS. Please help.

Dear Gurus,
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

the command
# 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
Esteemed Contributor
Shrikant Lavhate
Posts: 501
Registered: ‎10-31-2007
Message 5 of 23 (3,593 Views)

Re: How to unmount the NFS. Please help.

hi,

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.
Will it remain a personal, if I broadcast it here!
Esteemed Contributor
F Verschuren
Posts: 519
Registered: ‎02-24-2002
Message 6 of 23 (3,593 Views)

Re: How to unmount the NFS. Please help.

If the Ip adress is no longer availeble it is waiting on I/O im my experiens you can only umount it if the i/o wait is gone, this can be done bu rebooting server A
ore temp ad the ip back to server b and umount it.
Honored Contributor
Robert-Jan Goossens
Posts: 7,384
Registered: ‎04-04-2000
Message 7 of 23 (3,593 Views)

Re: How to unmount the NFS. Please help.

Hi,

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.

Regards,
Robert-Jan
Honored Contributor
Yogeeraj_1
Posts: 4,613
Registered: ‎11-25-2001
Message 8 of 23 (3,593 Views)

Re: How to unmount the NFS. Please help.

hi again,

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.

revert
kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Honored Contributor
V. Nyga
Posts: 4,874
Registered: ‎09-20-2002
Message 9 of 23 (3,593 Views)

Re: How to unmount the NFS. Please help.

Hi,

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.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Super Advisor
apple
Posts: 560
Registered: ‎10-18-2007
Message 10 of 23 (3,593 Views)

Re: How to unmount the NFS. Please help.

Dear HP UX Gurus,
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. :)
Acclaimed Contributor
Dennis Handly
Posts: 25,290
Registered: ‎03-06-2006
Message 11 of 23 (3,596 Views)

Re: How to unmount the NFS. Please help.

>I commented the respective entry in the /etc/fstab and /etc/mnttab

No need to edit mnttab since that is generated by the kernel.
Super Advisor
apple
Posts: 560
Registered: ‎10-18-2007
Message 12 of 23 (3,596 Views)

Re: How to unmount the NFS. Please help.

Denny,
If I didn't edit the /etc/mnntab, when i issue bdf, it still say NFS server B not responding still trying... errmmm hope to hear from u
Acclaimed Contributor
Dennis Handly
Posts: 25,290
Registered: ‎03-06-2006
Message 13 of 23 (3,596 Views)

Re: How to unmount the NFS. Please help.

>If I didn't edit the /etc/mnntab, when i issue bdf, it still say NFS server B not responding still trying

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.
Super Advisor
apple
Posts: 560
Registered: ‎10-18-2007
Message 14 of 23 (3,596 Views)

Re: How to unmount the NFS. Please help.

Denny,
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
Acclaimed Contributor
Dennis Handly
Posts: 25,290
Registered: ‎03-06-2006
Message 15 of 23 (3,596 Views)

Re: How to unmount the NFS. Please help.

>i wanna have the permanent solution to it?

As mentioned by Robert-Jan, you need to be on a newer OS or you have to reboot. And you already edited fstab.
Super Advisor
apple
Posts: 560
Registered: ‎10-18-2007
Message 16 of 23 (3,596 Views)

Re: How to unmount the NFS. Please help.

It seem I have to reboot it.
shall i use like this:
# umount -h kedidi -a
kedidi is the host name

Acclaimed Contributor
Dennis Handly
Posts: 25,290
Registered: ‎03-06-2006
Message 17 of 23 (3,596 Views)

Re: How to unmount the NFS. Please help.

>It seems I have to reboot it.

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.

Honored Contributor
Aneesh Mohan
Posts: 804
Registered: ‎07-02-2007
Message 18 of 23 (3,596 Views)

Re: How to unmount the NFS. Please help.

Hi ,

Check this link ,it may help you to solve this issue.

http://docs.hp.com/en/3929/ForciblyUnmountingNFSFilesystems.pdf

Thanks,
Aneesh
Regular Advisor
Indrajit Bhagat
Posts: 319
Registered: ‎07-22-2006
Message 19 of 23 (3,596 Views)

Re: How to unmount the NFS. Please help.

check the
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.
Super Advisor
apple
Posts: 560
Registered: ‎10-18-2007
Message 20 of 23 (3,596 Views)

Re: How to unmount the NFS. Please help.

Mr Rajit,
When I tried to umount, it says:

# umount /backup
nfs umount: nfs_unmount: /backup: is busy

# fuser -cu /backup
/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
Valued Contributor
yulianto piyut
Posts: 279
Registered: ‎07-17-2006
Message 21 of 23 (3,593 Views)

Re: How to unmount the NFS. Please help.

hi almond,

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


-yut-
Regular Advisor
Indrajit Bhagat
Posts: 319
Registered: ‎07-22-2006
Message 22 of 23 (3,593 Views)

Re: How to unmount the NFS. Please help.

Hi Almond,

Try
#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.


#cd /

#umount /filesystem name

Honored Contributor
V. Nyga
Posts: 4,874
Registered: ‎09-20-2002
Message 23 of 23 (3,593 Views)

Re: How to unmount the NFS. Please help.

Hi again,

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.

Volkmar
*** Say 'Thanks' with Kudos ***
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.