Operating System - HP-UX
1821410 Members
2989 Online
109633 Solutions
New Discussion юеВ

Cannot remove a clustered volume group.

 
SOLVED
Go to solution
Carme Torca
Super Advisor

Cannot remove a clustered volume group.

Hi,

I have reconfigured one cluster and now I doesn't have the vg02 in the cluster.
I want to eliminated the /dev/vg02, but when I do:

#vgremove /dev/vg02
#vgremove: Volume group /dev/vg02 is in a cluster. Cannot remove a clustered volume group.
#vgremove: Couldn't remove volume group "/dev/vg02".

What have I to do?

Thanks!,
Carmen.
Users are not too bad ;-)
7 REPLIES 7
V.Tamilvanan
Honored Contributor
Solution

Re: Cannot remove a clustered volume group.

Hi,

Execute the following commands. It should remove the VG.

#vgchange -c n /dev/vg02
#vgchange -a n /dev/vg02
#vgexport /dev/vg02
Matti_Kurkela
Honored Contributor

Re: Cannot remove a clustered volume group.

Disable the clustering of the volume group:

vgchange -c n vg02

Then remove it as a normal volume group from each server of the cluster.
MK
Shaikh Imran
Honored Contributor

Re: Cannot remove a clustered volume group.

Hi,
Make the volume group cluster unaware and then remove it
vgchange -c n vg02
vgremove vg02
It will work
Regards,
I'll sleep when i am dead.
Bharat Katkar
Honored Contributor

Re: Cannot remove a clustered volume group.

Hi Carmen,
Tamil has suggested the exact procedure and i am sure it will work for you.

#vgchange -c n /dev/vg02
Removes cluster lock on VG02
#vgchange -a n /dev/vg02
Deactivates VG
#vgexport /dev/vg02
exporting vg02 will remove entire VG and associated files from your system.

You need to know a lot to actually know how little you know
Lorenzo Facello
Valued Contributor

Re: Cannot remove a clustered volume group.

Hi,
I confirm

vgchange -c n vg02

if you have to remove vg02
first remove lvols
umount /fs
lvremove /dev/vg02/lvolx

then
vgremove /dev/vg02

to delete vg02 and export the vg from /etc/lvmtab
vgexport /dev/vg02

Hope this helps

L.

Lorenzo Facello
Valued Contributor

Re: Cannot remove a clustered volume group.

sorry but I forgot
the command
vgchange -a n vg02 (deactivate the vg)
type it after vgchange -c n vg02
L.
p.s bahrat learns!
Navid HUSSAIN_2
Frequent Advisor

Re: Cannot remove a clustered volume group.

Hi,

To remove any volume group from cluster configuration -
#vgchange -c n vg02
#vgchange -a n vg02
#vgexport vg02

Ensure that there is no enrty in /etc/lvmtab
move /etc/lvmtab to /etc/lvmtab.old
and execute
#vgscan -a

You did not mentioned that package is of OPS or not? if OPS, then you need to use
# vgchange -S n -c n vg02
#vgchange -a n vg02
#vgexport vg02

Cheers..

NAVID
Teamwork