1825704 Members
3172 Online
109686 Solutions
New Discussion

removing logical volume

 
Jeff Hagstrom
Regular Advisor

removing logical volume

umount: cannot unmount /a : Device busy
LG: vg02-a VG: vg02 mount directory: /a

How do I check for activity in the filesystem so I can stop it? Or is there a different, easier way to remove vg01 & vg02?
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: removing logical volume

Jeff Hagstrom
Regular Advisor

Re: removing logical volume

fuser comes back empty. umount says device is busy.
HGN
Honored Contributor

Re: removing logical volume

Hi

In case if you have not done this you can try,
fuser -c & fuser -k
then you unmount it

Rgds

HGN
Jeff Hagstrom
Regular Advisor

Re: removing logical volume

fuser -c -k /a brings back /a and then umount /a doesn't work.
Rick Garland
Honored Contributor

Re: removing logical volume

This is a job for 'lsof'

See what processes may be running in the filesystem.

You may have to kill a process or daemon or logging process.

The lsof utility can tell you what is using the area.

Dave La Mar
Honored Contributor

Re: removing logical volume

Jeff -
I hate to state the obvious, but since I burned myself.....
You are not in a directory on the volume mount point are you?

Regards,

dl
"I'm not dumb. I just have a command of thoroughly useless information."
Nick W
Frequent Advisor

Re: removing logical volume

(Dave),

Nice idea (make sure you are not in the directory you are trying to unmount), but I think it would be unlikely as then I would expect fuser to report the PID for the user's shell....??

Jeff
I go with an earlier suggestion to get hold of the excellent (non-HP) lsof utility and see what process is active in that filesystem (especially if there was any attempt to reclaim space by removing eg large logfiles....)

A reboot would also fix the problem - but that is not usually recommended unless you are desperate to get this resolved...
:-)

HTH
Nick