Operating System - HP-UX
1833047 Members
2553 Online
110049 Solutions
New Discussion

Re: online remove VG from running HA

 
SOLVED
Go to solution
j773303
Super Advisor

online remove VG from running HA

Hi Expert,
OS 11.23
G
Could it be remove VG from running package? For ex: vg12 is exists in PKG cntl file, can it vgchange -a n vg12 while PKG is still running? Thanks.
Hero
7 REPLIES 7
tkc
Esteemed Contributor

Re: online remove VG from running HA

if the package is using vg12, you will have to down the package before deactivate vg12.
j773303
Super Advisor

Re: online remove VG from running HA

Hi tkc,
would the package control script will monitor the active VG/LV/FS ?
Hero
tkc
Esteemed Contributor
Solution

Re: online remove VG from running HA

the package control script will only be read during cluster/package startup/shutdown.
j773303
Super Advisor

Re: online remove VG from running HA

Hi tkc,
Yes , I know. so my mean is HA would monitor VG in PKG active?

What will happen if "vgchange -a n vg12" in PKG running status?
Hero
whiteknight
Honored Contributor

Re: online remove VG from running HA


hi,

Yes you can do so.

After unmounting any new filesystems belonging to the new volume group that was added, the volume group can be deactivated, and then reactivated in exclusive mode without halting the package or Serviceguard.


# vgchange -a n

# vgchange -c y ... marks VG under SG control

# vgchange -a e ... activates the VG in exclusive mode

WK
please assign points
Problem never ends, you must know how to fix it
Wim Rombauts
Honored Contributor

Re: online remove VG from running HA

There are two answers to yuor question :
1) Can you remove a VG from a running package ?
-> If not fillesystems or RAW LVM's are used on this VG, yes you can. (vgchange -a n)
If you want to definitely remove the VG, remember to also remove it from the cntl file, or the package script will detect a conflict : It cannot disable a VG that is already disabled.

2)Will the package keep running after the vgchange -a n ?
It depends : If the package monitor checks the presence of the configured VG's in the package, then the package monitor will automaitcally re-enable the VG, and finaly stop the package if it cannot do so.
skt_skt
Honored Contributor

Re: online remove VG from running HA

i do similar VG maintenance on the VG whihc is active with a package(on RAC cluster).(vgchange operation). But i make sure that no one is using it.