1833777 Members
1985 Online
110063 Solutions
New Discussion

cant unmount filesystem

 
Nobody's Hero
Valued Contributor

cant unmount filesystem

I am expanding a filesystem. I extended the VG.then I ran lvextend for the lvol. Now I am trying to run extendfs -F vxfs /dev/vg05/rlvol1
and I keep getting a message that /app is mounted. I kiled all user processes from 'fuser -cu /app'. I also ran fuser -ku /app. it still wont unmount. I am in the middle of this and I need to get it unmounted for production. I really need some help here.
UNIX IS GOOD
12 REPLIES 12
Michael Schulte zur Sur
Honored Contributor

Re: cant unmount filesystem

Hi,

I assume, fuser yields no result. Look for user with home directories in /app or processes running there. Reboot the machine if necessary. Have you exported /app in some way?

greetings,

Michael
Nobody's Hero
Valued Contributor

Re: cant unmount filesystem

No I have not exported it at all. Not sure what has it and I am doing it remotely because of the snow storm. If i reduce the run level I'll drop networking.
UNIX IS GOOD
Nobody's Hero
Valued Contributor

Re: cant unmount filesystem

looks like I better put it in 4X4 and head into work. I guess Ill place a call to HP just to double check. Thanks for the quick response.
UNIX IS GOOD
Sridhar Bhaskarla
Honored Contributor

Re: cant unmount filesystem

Hi Robert,

If 'fuser /dev/vg05/lvvol1' does not give any pids, then you try 'lsof'. 'lsof' is much superior than fuser.

Do 'lsof /app' and see what are the processes that have open files on it.

There have been many posts here that can lead you to where you can download it.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Michael Schulte zur Sur
Honored Contributor

Re: cant unmount filesystem

Hi,

you may not want to reduce run level, as you said, but ir should be possible to reboot the machine, if in the past it had no problems coming up again.

Michael
doug hosking
Esteemed Contributor

Re: cant unmount filesystem

The obvious causes of this are:
1) a process has a (possibly deleted) file in /app open
2) a process has a current working dir in /app

and (perhaps most likely)
3) you have a file system mounted under /app. (/app/app2 is a file system)

in which case you need to unmount /app/app2 before you can unmount /app.
Srinivas Thokala_1
Frequent Advisor

Re: cant unmount filesystem

If On_Line_JFS is installed on your system you can expand the file syste without unmounting.

After using lvextend for increaing the fs size, use the command
#fsadm -F VXFS -b size-in-MB /mount-point-
name

Ex: fsadm -F VXFS -b 1000MB /oracle
to increase /oracle to 1000MB size.

You no need to unmount the fs here.

Srini
Srinivas Thokala
Rory R Hammond
Trusted Contributor

Re: cant unmount filesystem

Fuser on the file system name will not work.
You have to use /dev/vg05/lvol1

Rory
There are a 100 ways to do things and 97 of them are right
Jose Antonio Orozco
Frequent Advisor

Re: cant unmount filesystem

If you have SO 11.0 or higher, lsof has been a a helpful tool for me in similar situation, showing all the processes that fuser don't show you
You can downloadit from the porting site http://eigen.ee.ualberta.ca/hppd/hpux/Sysadmin/lsof-4.70/

You can use it like

lsof /app

it will show all processes using the volume

my best regards

J. A. Orozco
What is not backed up, it not exists
Robert-Jan Goossens
Honored Contributor

Re: cant unmount filesystem

Robert,

Have you got a filesystem mounted on top of /app, something like /app/oracle. If so unmount that filesystem before you unmount /app.

Hope this helps,
Robert-Jan
MANOJ SRIVASTAVA
Honored Contributor

Re: cant unmount filesystem

Also there can be some process which is mounting or using the /app* as a path in its env , I would also prefer if you can give this is a single line

fuser -ck /dev/vgxx/lvolyy ; umount /dev/vgxx/lvolyy

Manoj Srivastava
Anil C. Sedha
Trusted Contributor

Re: cant unmount filesystem

Simple..

Run fuser -kc /app

Sometimes child processes keep spawning, so you will need to execute this command 3-4 times more till you see no process id in the result of this command.

When you see no process id, run the umount command and then run your extendfs command.

Let us know if this helps.

Anil
If you need to learn, now is the best opportunity