1832277 Members
1927 Online
110041 Solutions
New Discussion

Removing Volume group

 
SOLVED
Go to solution
Olga_1
Regular Advisor

Removing Volume group

Hello,

I would like to completely remove vg11.
using vgremove, not vgexport.
This vg11 is on EVA and in order to disconnect EVA from teh Unix server we need to cleane it up completely.

I have already backup all the data and unmounted all the FS.
If I do vgchange -a n /dev/vg11
lvremove /dev/vg11/u01 gives error
Volume group not activated.

lvlnboot: Warning: couldn't query physical volume "/dev/dsk/c10t0d1":
The specified path does not correspond to physical volume attached to
this volume group ...etc for each path.


Thank you.
3 REPLIES 3
Court Campbell
Honored Contributor
Solution

Re: Removing Volume group

why not vgexport? then use pvremove on the disk(s).

If you must then you need to activate the vg. then lvremove the lvols. then you need to vgreduce the vg until you only have one disk left in the vg. then vgremove the vg. and finally use pvremove on the disk(s). But I still think vgexport is faster.
"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???"
Torsten.
Acclaimed Contributor

Re: Removing Volume group

You need to lvremove first, then de-activate the VG.

Activate the vg again and remove the LV.

Anyway, if you vgexport the VG, you remove it from the system too.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Olga_1
Regular Advisor

Re: Removing Volume group

Thank you