Operating System - HP-UX
1833166 Members
2752 Online
110051 Solutions
New Discussion

Re: Remove Logical Volume

 
grechos
New Member

Remove Logical Volume

Hi Everybody
I would like to remove an logical Volume,but during this action sam told me that it is unpossible to remove this Volume because the Volume is busy

I cannot detect any process which are using the volume which i wanted to remove

Has anybody of an Idea want happend


Kindest regards


Grechos
11 REPLIES 11
Robert-Jan Goossens
Honored Contributor

Re: Remove Logical Volume

Hi Grechos,

Try it from the command line.

# umount /filesystem

# lvremove /dev/vgxx/lvoly

and remove the line from the /etc/fstab.

Robert-Jan
Court Campbell
Honored Contributor

Re: Remove Logical Volume

type bdf and make sure that the volume is not mounted. then type swapinfo and make sure the volume isn't being used for swap.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Fabian Briseño
Esteemed Contributor

Re: Remove Logical Volume

Hello. Grechos

make sure you are not or anybody else is not on that lvol

for example
hostname:/etc>

Knowledge is power.
DCE
Honored Contributor

Re: Remove Logical Volume


fuser will tell you who/what is using the lvol (man fuser)

Ralph Grothe
Honored Contributor

Re: Remove Logical Volume

# lvremove -f /dev/vgXX/lvolXX

should remove the volume (with data loss) without much ado.
So be sure you don't need the data on the volume anymore or have a working backup.
Also note that a volume doesn't necessarily need to have a mounted filesystem to be active.
Just think about swap devices or raw devices that databases write to.
So be extra cautious with those.
Madness, thy name is system administration
Chandan Kumar_1
Honored Contributor

Re: Remove Logical Volume

Hi,

Check this...

http://docs.hp.com/en/B2355-60130/lvremove.1M.html

Learn. Share. Inspire.
grechos
New Member

Re: Remove Logical Volume

Helo again
well if i type
root@xxxxx/usr/sbin > ./fuser -cu /backup
OUTPUT:
/backup: 5730o(root) 18776c(root)
what can i do with this information
Court Campbell
Honored Contributor

Re: Remove Logical Volume

Helo again
well if i type
root@xxxxx/usr/sbin > ./fuser -cu /backup
OUTPUT:
/backup: 5730o(root) 18776c(root)
what can i do with this information

ps -ef | grep 5730
ps -ef | grep 18776

this will give you more info on the processes. If they aren't anything crucial you can kill the processes. Or use fuser -ku. Just be careful.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
grechos
New Member

Re: Remove Logical Volume

hi people
i dint solve the Problem because i have to aducated some users they have to end the session on clear
:-)
And i inform you over the Problem i think on Friday but if any of you knows more informations then fell free and write it down


HAppy day
DCE
Honored Contributor

Re: Remove Logical Volume



When you are issuing the commands, are you in the directory? Just by being in it, the directory by definition is busy


Court Campbell
Honored Contributor

Re: Remove Logical Volume

well unless your users usually su to root or logon as root, it is more than likely that you are running the process and or in the directory as already mentioned.
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"