Operating System - HP-UX
1827667 Members
3950 Online
109966 Solutions
New Discussion

unmounting vxfs file system

 
ramesh_6
Frequent Advisor

unmounting vxfs file system


Hi I am trying to unmount the file system. But it is saying device busy.

I did an fuser -ku to kill all the processes writing into the file system. I killed them all and still i am getting the device busy message. Is there any way to forecefully unmoun the file system

5 REPLIES 5
erics_1
Honored Contributor

Re: unmounting vxfs file system

Ramesh,

What filesystem is this?
Are you currently in that directory?
Sorry for asking but it has happened many times.

Regards,
Eric
Sanjay_6
Honored Contributor

Re: unmounting vxfs file system

Hi Ramesh,

Not until you kill the processes using that filesystem. Once you have run fuser -ck /mount_point, see if any more process is still using that filesystem,

fuser -cu /mount_point

If there is a process using that filesystem, check out that process and try to kill it manuallay or stop the process if you can and then try to unmount the filesystem.

You cannot force unmount a filesystem till the time it says device busy.

Hope this helps.

Regds
MANOJ SRIVASTAVA
Honored Contributor

Re: unmounting vxfs file system

Hi Ramesh

fuesr -ku /mntpoint should do the work , incase you are still getting the filesystem busy than ther can be 2 cases :

1. There is some process which cannot be trapped by fuser

2. the mountpoint is in the Path of some active profile .

I genreally try to run that twice or just do a fuser (mnt point ) , a more intrinsic way would be to do a lsof < mnt point > and then kill all the procees associated with it.

Manoj Srivastava
Mariusz Grabowski_2
Frequent Advisor

Re: unmounting vxfs file system

well, I think that only solution for your problem would be reboot of the machine... rarely it happens, that some process hangs (i.e. zombie) and is related to the fsystem you want to unmount...

btw - lsof is not a standard hpux utility - you need to install it (you can download it for example from http://hpux.cs.utah.edu/)

cheers,
Mariusz
Bill Hassell
Honored Contributor

Re: unmounting vxfs file system

fuser needs a bit of help. Always run it twice, once on the mountpoint and then on the source. For example:

bdf /extra
/dev/vg01/lvol1 14336000 12237201 1968819 86% /extra

fuser /extra
fuser /dev/vg01/lvol1

Don't use an automatic kill until you have identified the processes that have the filesystem open. If they are HP-UX system processes, killing them may cause bigger problems.

NOTE: you will not be able un-mount /usr or /var when running in multiuser mode. The simplest rule is to go to true-singleuser mode by rebooting, interrupting the boot process when it prompts you and using the hpux -is command.


Bill Hassell, sysadmin