1834757 Members
2893 Online
110070 Solutions
New Discussion

Re: umount

 
SOLVED
Go to solution
hpuxhelp
Regular Advisor

umount

can you umount the filesystem when the vg is activated??
8 REPLIES 8
Rodney Hills
Honored Contributor
Solution

Re: umount

Sure, as long as no processes have any files open on that file system.

HTH

-- Rod Hills
There be dragons...
Michael Tully
Honored Contributor

Re: umount

Make sure that new processes have the filesystem locked.

# umount /fred
umount: cannot unmount /fred : Device busy

# fuser /dev/vg01/fred
1234c
Once the process has been terminated, you can unmount the filesystem
Anyone for a Mutiny ?
Patrick Wallek
Honored Contributor

Re: umount

To umount a file system the VG must be activated. If the VG is not activated then the filesystem can't be mounted.

An easier fuser command to user to find who is using a mount point:

# fuser -cu /mountpoint_name

Sridhar Bhaskarla
Honored Contributor

Re: umount

Patrick ;-)

If vg is in deactivated state, how would file system be in mounted state?

-Sri

PS: One of the tongue slips?
You may be disappointed if you fail, but you are doomed if you don't try
Patrick Wallek
Honored Contributor

Re: umount

You're right Sridhar. I probably didn't say what I meant to say very clearly.

If a VG is NOT activated, a filesystem CAN NOT be mounted, hence no reason to use umount.
Steven E. Protter
Exalted Contributor

Re: umount

how about a sledgehammer

fuser -cuk /mountpoint

That will kill everything. Don't do it on var.

Sounds like the problem definisiton is confusing people. Details please.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stanimir
Trusted Contributor

Re: umount

Hi!
It seems you want to do something like
fsck with your file system. So you can
do this with umounted fs & activated VG.
Simply do
#umount -F ...
#fsck -p

If you need to manipulate with VG like
vgextend, lvextend, extendfs ... :
#umount -F ...
#vgextend ....
Regards
Jose Mosquera
Honored Contributor

Re: umount

Hi,

If you are trying with a vg00 basic operating system file system I recommend you set your system in single user mode. If you want do this in others files systems you must ensure that is not busy by your own session or by any SAM session (i.e. listing current VG/LV configuration), etc.

An effective way to free your FS is the following:
#fuser -ku /dev/vg[nn]/lvol[n];umount /

This execute umount command immediately after the fuser command minimizing the possibility that it is busy again.

Rgds.