Operating System - HP-UX
1825693 Members
3268 Online
109686 Solutions
New Discussion

remove vg on cluster HP-UX

 
STL
Occasional Advisor

remove vg on cluster HP-UX

what are the step for remove e volume group on cluster Hp-UX?

on node a: lvremove, vgremove, pvremove

on node b: ????

vgexport e vgimport are use only for create?
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: remove vg on cluster HP-UX

Shalom Carlo,

Node b: vgexport the volume group.

Node a: lvremove vgremove.

That should be sufficient.

You can also vgexport on both nodes.

vgchange -a n vg##

Make sure the thing is deactivated before you start.

SEP
Graduate of the SG school of hard, HARD knocks.
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
Geoff Wild
Honored Contributor

Re: remove vg on cluster HP-UX

To remove?

vgchange -c n vgXX

You can do the lvreduce, vgreduce....or just do a vgexport vgXX.

On node b, just a vgexport vgXX

Also,emove from any package control scripts.

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.
STL
Occasional Advisor

Re: remove vg on cluster HP-UX

On node a:
- lvremove lv
- vgremove vg
- pvremove
- unpresent the disk by SAN

On node b:
vgdisplay -v vg_xxx
vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "vg_xxx"

vgchange -a y vg_xxx
vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/ds:
Cross-device link
vgchange: Warning: couldn't query physical volume "/dev/dsk/c13t0d5":
The specified path does not correspond to physical volume attached to
this volume group
vgchange: Warning: couldn't query all of the physical volumes.
vgchange: Couldn't activate volume group "vg_xxx":
Quorum not present, or some physical volume(s) are missing.

?????? how i remove the the pv,vg,lv on node b ??????
Geoff Wild
Honored Contributor

Re: remove vg on cluster HP-UX

pvremove - you destroyed the vg data on the disk - so node b can not see it anymore...

Just do a vgexport on node b

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.
Tvs
Regular Advisor

Re: remove vg on cluster HP-UX

hi ..

in node A do the normal procedure for removing the vg.


then after completeing the activity do

on node b
===================

vgexport -m vg01.mymap /dev/vg01 (without -s and p option )

regards

tvs
Sivakumar TS
Honored Contributor

Re: remove vg on cluster HP-UX


Hi,

As long as you dont need tha VG anymore, you can use #vgexport to remove the VG info from the system.

This dosent remove the data in the DISKs. If you need to get this VG in some other system you can do #vgimport to get the VG back. If this is the case you can take a map file during the export, so that you can get the same lvol name etc.

With Regards,

Siva.
Nothing is Impossible !
shridhar_1
Frequent Advisor

Re: remove vg on cluster HP-UX

hi

make sure that the VG
is not a part of a package

shri
Luk Vandenbussche
Honored Contributor

Re: remove vg on cluster HP-UX

Hi,

If the volumegroup doesn't belong to a package anymore, then just execute

vgexport /dev/vgxx on each node