1834935 Members
2091 Online
110071 Solutions
New Discussion

umount /home

 
Jeffrey F. Goldsmith
Super Advisor

umount /home

I need some help with unmounting my /home so I can increase its size. I have tried several different ways to do a umount /home but keep getting the error : Device busy.

I tried to umount /home in single user mode and get the same error. When I look at /home it doesnt look busy.

fuser -c /home gives me
/home: 5570o

Does anyone know how to umount /home?

8 REPLIES 8
John Kittel
Trusted Contributor

Re: umount /home

I think that means pid 5570 is using it. And it is probably you, since you're in single user mode. Make sure your pwd is not set to /home/... , and ( I'd guess you're logged in as root) that root's login dir is not anywhere in /home. If root's default dir is somewhere in /home, I'd get that changed before trying to unmount it from single user ( or any other) mode.

If you have online jfs you can increase size without unmounting it. Do you know if you have online jfs?

- John
John Kittel
Trusted Contributor

Re: umount /home

I meant to also say, try ps -fxp 5570 to see the process that is using /home.

- John
James R. Ferguson
Acclaimed Contributor

Re: umount /home

Hi Jeffrey:

First, make sure *you* have not done a 'cd' (change directory) into '/home'.

There is one process, pid=5570, with an open file in /home.

You can kill pid 5570 or do:

# fsuser -ku /home

...or, using the mounted physical disk:

# fuser -ku /dev/dsk/cXtYdZ

Then, umount /home.

Regards!

...JRF...
John Kittel
Trusted Contributor

Re: umount /home

and... to see if you have online JFS, the command

# swlist -l product | grep -i jfs

if you have it, should produce output including a line something like this:

OnlineJFS B.11.11 Online features of the VxFS File System

If not, then you don't have it.

- John
Jeffrey F. Goldsmith
Super Advisor

Re: umount /home

Yes, I am logged in as root and I am in the root directory (/). I guess the only way I am going to be able to unmount /home is to move /home/root to a different place and then I will be able to unmount /home. That is unless there is a better way to unmount /home without online jfs.

I need to find out how much online jfs costs. It sounds like it would save me a lot of time in the long run.
Jeffrey F. Goldsmith
Super Advisor

Re: umount /home

John, here is the jfs info from my machine. It doesnt look like I have the full version. Is this Base version any use?

root: /home/root ==> swlist -l product |grep -i jfs
JFS B.11.23 The Base VxFS File System
root: /home/root ==>
Devesh Pant_1
Esteemed Contributor

Re: umount /home

I would say
please do a ps -ef| grep 5570 and see what is actually using the /home
If you find the process as someting that you can kill do it and after that you should be able to unmount it
jfs and other things you can look into later

thanks
DP
Sivakumar TS
Honored Contributor

Re: umount /home


Dear Jeffrey,

/home f/s is busy thats the reason you are unable to unmount it.

5570 is the PID of the process that uses it currently.

You can either kill the process or

use this command

fuser -ku /home

HtH,

Siva.
Nothing is Impossible !