Operating System - HP-UX
1821245 Members
2683 Online
109632 Solutions
New Discussion юеВ

how to remove a volume group which cannot be activated

 
SOLVED
Go to solution
littlepig_1
Occasional Contributor

how to remove a volume group which cannot be activated

Hi, how can I force delete a volume group which cannot be activated?

Thanks
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: how to remove a volume group which cannot be activated

You can of course try to find the reason why you cannot activate it ...

Otherwise use vgexport.

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!   
Steven E. Protter
Exalted Contributor

Re: how to remove a volume group which cannot be activated

Shalom,

vgremove

vgremove is equivalent to the inverse of executing vgcreate for one
physical volume (see vgcreate(1M)).

Before removing a volume group, two steps are necessary:

1. Remove all the logical volumes belonging to the group by
using the lvremove command (see lvremove(1M)).

2. Remove all but one physical volume belonging to the volume
group by using the vgreduce command (see vgreduce(1M)).

Better overview:
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

SEP
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
littlepig_1
Occasional Contributor

Re: how to remove a volume group which cannot be activated

Hi,
vgremove require the volume to be activated...I cannot activate the volumen group, that's why vgremove cannot be used...

ps. the vg previously created to be used in serviceguard cluster..but after I deleted the cluster, the vg cannot be activated again..
littlepig_1
Occasional Contributor

Re: how to remove a volume group which cannot be activated

the error when I try to activate the vg is as follow:

Quorum not present, or some physical volumes are missing..

I used the command
"vgchange -a y -q n /dev/vgdatabase"
Eric SAUBIGNAC
Honored Contributor
Solution

Re: how to remove a volume group which cannot be activated

Bonjour,

The simpliest way to delete a volume group you can't activate is to export it with vgexport : vgexport /dev/

Regards

Eric
James R. Ferguson
Acclaimed Contributor

Re: how to remove a volume group which cannot be activated

Hi:

As noted, if you cannot activate the volume group in order to delete it, simply 'vgexport' it. To reuse the physical disks again, thereafter, you will need to perform a 'pvcreate -f' to obliterate the LVM header information that remains on it following the export.

Regards!

...JRF...
Geoff Wild
Honored Contributor

Re: how to remove a volume group which cannot be activated

You deleted the cluster....

Did you try

vgchange -c n /dev/vgXX

then try

vgchange -a y /dev/vgXX

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Roberto Arias
Valued Contributor

Re: how to remove a volume group which cannot be activated

Hi

thay easiest way is:

vgexport of vg
rmdir -rf /dev/
pvremove of vg's disk

best regards
The man is your friend