Operating System - HP-UX
1832609 Members
2397 Online
110043 Solutions
New Discussion

Re: Can't unmount nfs mounted filesystem

 
Kenny Henderson
New Member

Can't unmount nfs mounted filesystem

I'm unable to unmount a static nfs mounted filesystem on an HP-UX 10.20. system. I receive the following message:

umount: cannot unmount /risc/tools/pkgs : Block device required

Does anyone know of a workaround to this other than a reboot. Any assistance would be greatly appreciated.

Kenny H.
10 REPLIES 10
Sanjay_6
Honored Contributor

Re: Can't unmount nfs mounted filesystem

Hi Kenny,

If the NFS filesystem is mounted at /mount_point,

use
umount /mount_point

Hope this helps.

Regds
John Bolene
Honored Contributor

Re: Can't unmount nfs mounted filesystem

You don't umount the directory, you umount the device

example
umount /dev/vg01/lvol1

If there are any nfs users, you may have to kill the nfsd's also.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
harry d brown jr
Honored Contributor

Re: Can't unmount nfs mounted filesystem

what does a bdf or mount show for the mount?

live free or die
harry
Live Free or Die
Sanjay_6
Honored Contributor

Re: Can't unmount nfs mounted filesystem

Hi Kenny,

There is a possibility that the there is no filesystem mounted at the directory you are trying to unmount. Do a "bdf" or "mount" to check the correct mount point.

John, you can use the "umount /mount_point" to unmount a filesystem.

Hope this helps.

Regds
John Bolene
Honored Contributor

Re: Can't unmount nfs mounted filesystem

Dang, I've been doing it the hard way all these years?
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Kenny Henderson
New Member

Re: Can't unmount nfs mounted filesystem

Thanks for the replies, following are my reponses to the rplies I received:

* I have been using the unmount command as:

umount /risc/tools/pkgs

* I cannot unmount the device because this is an nfs mounted filesystem

* the output of bdf is as follows:

nfsserver:/risc/atools/apkgs/pkgs.HP-UXOS
3938272 2111294 1433151 60% /risc/tools/pkgs


Kenny Henderson
New Member

Re: Can't unmount nfs mounted filesystem

Following is an example of my fstab:

nfsserver:/risc/atools/abin/bin.HP-UXOS /risc/tools/bin nfs rw,hard,intr 0 0

nfsserver:/risc/atools/alib/lib.HP-UXOS /risc/tools/lib nfs rw,hard,intr 0 0
nfsserver:/risc/atools/apkgs/pkgs.HP-UXOS /risc/tools/pkgs nfs rw,hard,intr 0 0
Adam Morris
Occasional Advisor

Re: Can't unmount nfs mounted filesystem

Have you tried
umount -F nfs -h -a
or
umount -F nfs

Adam
Roger Baptiste
Honored Contributor

Re: Can't unmount nfs mounted filesystem

hi,

try

umount -F nfs -v /risc/tools/pkgs

-> makes sure the type is got correctly and is in verbose mode.

If that also doesnt work,
#cd /risc/tools/pkgs
#ll (to see whether you can still access it).
#cd /
#fuser -cu /risk/tools/pkgs
-> is any user/process using it?

**

-raj
Take it easy.
Krishna Prasad
Trusted Contributor

Re: Can't unmount nfs mounted filesystem

umount /risc/tools/bin should work under normal times.

If a user is in the directory do
a fuser -uc to see if any process or using it.
Then kill the process and try to umount again.

Positive Results requires Positive Thinking