Operating System - HP-UX
1832648 Members
3028 Online
110043 Solutions
New Discussion

Re: Auto active VG01 in cluster

 
SOLVED
Go to solution
Flavio Lacks
Frequent Advisor

Auto active VG01 in cluster

Hi,

I need start automatic VG01 in cluster, this procedure is correct ?

# swinstall DEPOT

# cd /sbin/init.d
# topas cmlvmd
ou
# psaux cmlvmd
# ./ start

# vgchange –c y VG01
# vgchange –a y VG01

# cd /etc/init.d

AUTO_VG_ACTIVATE=0
Custom_vg_activation { vgchange -a y /dev/vg01 }

Save string /etc/lvmtab

Strings /etc/lvmtab > lvmtab.old
4 REPLIES 4
Bharat Katkar
Honored Contributor
Solution

Re: Auto active VG01 in cluster

In order to activate the VG01 in cluster you need to update your cluster configuration file.

Edit the ascci file (cmclconf.ascii) and you will be able to set the activation mode of the VG.
But if you are adding this VG now then probably you need to recreate the cluster binary file again.

Refer to cmquerycl,cmcheckconf,cmapplyconf command of cluster.
They should guide you accordingly.

Regards,
You need to know a lot to actually know how little you know
Flavio Lacks
Frequent Advisor

Re: Auto active VG01 in cluster

Hi Bharat !

Please, do you can write this commands to me ?

Tks
Bharat Katkar
Honored Contributor

Re: Auto active VG01 in cluster

Sorry, i can't remember the syntax exactly since i used it long time ago and even i don't have MC/service guard cluster rite now to check. But these are very simple commands and man should help you out.

As far i remember if you are adding VG01 to the cluster then:

1. Halt the cluster (Better to do this)
2. Edit the cmclconf.ascii file
3. if required change pkgconf.asii files also.
4. run "cmapplyconf" comand, this will rebuild the cmclconfig binary file.
5. push this file cmclconfig to other cluster nodes.
6. Start the cluster.

I would suggest you to refer the MC/serviceguard manual before giving it a try. This is not that easy task if you are in production environment.

Regards,
You need to know a lot to actually know how little you know
Geoff Wild
Honored Contributor

Re: Auto active VG01 in cluster

the /etc/lvmrc file is for vg's that are NOT in cluster.

To have vg01 in cluster,

vgchange -a n vg01
vgchange -c y vg01

then create your package, or add to existing package in /etc/cmcluster//.cfg as well as the cntl file

then cmapplyconf -P /etc/cmcluster//.cfg

then cmrunpkg packagename

See ServiceGuard docs on
http://docs.hp.com/en/ha.html

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.