Operating System - HP-UX
1837191 Members
2895 Online
110114 Solutions
New Discussion

controlscript and running cluster

 
Inesa Clinko
Advisor

controlscript and running cluster

I need to add new VG,LV and FS into
control script of the package:

mypackage.cntl

Need I stop the cluster to apply these changes?

5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: controlscript and running cluster

The cluster can remain up while doing any of these changes. If this is an existing package, the package must be halted.
If it ain't broke, I can fix that.
Uday_S_Ankolekar
Honored Contributor

Re: controlscript and running cluster

No need to halt the cluster but if your adding new VG to existing package then package needs to be halted.
You can then modify control scripts apply changes and start package

-USA..
Good Luck..
Uday_S_Ankolekar
Honored Contributor

Re: controlscript and running cluster

baiju_3
Esteemed Contributor

Re: controlscript and running cluster

Hi ,

No need of halting the cluster packages , you can do the modifications online .

For time being you can activate the vg manually and mount file systems after updating the control file .


Next time when you bounce the package every thing will come up normal .


Thanks,
BL.
Good things Just Got better (Plz,not stolen from advertisement -:) )
Stephen Doud
Honored Contributor

Re: controlscript and running cluster

You need not stop the package.

Create the VG and logical volumes before proceeding. Verify the lvol's will mount, then umount them and deactivate the VG.

1) MAKE CERTAIN that you add the new VG to the cluster configuration ASCII file. Anytime a cmapplyconf is performed on this file, any VG not represented will be de-clustered!!

2) Manually cluster the VG. On a node where the the VG is active, and Serviceguard is running, perform "vgchange -c y ".

3) Create a map file of the VG:
# vgexport -pvs -m /etc/lvmconf/map.vgNAME /dev/vgNAME

4) Copy map.vgNAME to the other node(s) in the cluster.

5) VGimport the new VG into the other node(s):
OTHERNODE:
# mkdir /dev/vgNAME
# mknod /dev/vgNAME/group c 64 0xNN0000 (where NN = a unique minor number)
# vgimport -vs -m /etc/lvmconf/map.vgNAME /dev/vgNAME

6) ON the original node, update the package control script with references to the new VG and it's logical volumes and mount directories (DON'T FORGET to increment the index numbers within the "[ ]")

8) Copy the script to the other server.

9) Activate the VG, mount it's logical volumes.

10) Test package shutdown, startup and failover to the other node.