Re: MCSG : Adding a Package to a Running Cluster (269 Views)
Reply
Honored Contributor
Rainer von Bongartz
Posts: 1,015
Registered: ‎02-01-1999
Message 1 of 8 (269 Views)
Accepted Solution

MCSG : Adding a Package to a Running Cluster


I'm a bit confused about the task of adding a package to a running cluster

The manual says:
do not specify the cluster ASCII file when verifying and distributing the configuration with HP-UX commands.

But the Cluster ASCII file has a section with the list of cluster aware LVM Volume Groups

So if a new package uses a new cluster aware VG which I have to put in the cluster ASCII file than this contradicts to the manual entry that I do NOT need to specify the cluster ASCII file.

What is the correct procedure to add a new package which uses a new VG to an existing cluster ??


He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 8 (269 Views)

Re: MCSG : Adding a Package to a Running Cluster

Shalom,

The new package needs to activate the volume group it is going to use.

There should be no entries with regards to the volume group being activated by the package in the cluster.ascii file.

Hope this helps.

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
Honored Contributor
Rainer von Bongartz
Posts: 1,015
Registered: ‎02-01-1999
Message 3 of 8 (269 Views)

Re: MCSG : Adding a Package to a Running Cluster

Steven

the new package will activate it's VG using vgchange -a e

But I still can't understand the sectzion in the cluster ASCII file sayin:

# List of cluster aware LVM Volume Groups. These volume groups will
# be used by package applications via the vgchange -a e command.
# Neither CVM or VxVM Disk Groups should be used here.
# For example:
# VOLUME_GROUP /dev/vgdatabase
# VOLUME_GROUP /dev/vg02


If I need to mention the new VG in this file
then surely I have to do something like

cmapplyconf -C Cluster ASCIIFile -P package_conf_file

but the manual only says

cmapplyconf -P package_conf_file

so my question still is do I need to enter the VG in the cluster ASCII file ??

He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Honored Contributor
Rita C Workman
Posts: 3,790
Registered: ‎08-03-2000
Message 4 of 8 (269 Views)

Re: MCSG : Adding a Package to a Running Cluster

To get the package going you just need to add it (cmapplyconf -P )

Now pkg up and running.....

Then you can go back afterwards and update the current cluster ascii file (provided it is current) with the new VG info and run
cmcheckconf -k -v -C
...when runs clean...
cmapplyconf -k -v -C

(-k option is optional)

You can do this later step with the cluster up and running.

Rgrds,
Rita
Honored Contributor
sujit kumar singh
Posts: 1,228
Registered: ‎09-16-2006
Message 5 of 8 (269 Views)

Re: MCSG : Adding a Package to a Running Cluster

Hi
for the Vgs to be used in the packages, the Vgs need to be cluster aware.

now you can make a VG cluster aware using ( provided Cluster is up) using either putting them into the cluster.ascii file and doing a cmapplyconf -v -C

The other way is that with the cmcld running you achieve the same using the command
vgchange -c y

that shall make that VG Clutser aware and package can use that by activating that in a vgchange -a e that is Exclusive Read/Write mode.

So in case you have the VGs made cluser aware using vgchange -c y you need not put those entries in the cluster.ascii file.
regards
sujit
Honored Contributor
sujit kumar singh
Posts: 1,228
Registered: ‎09-16-2006
Message 6 of 8 (269 Views)

Re: MCSG : Adding a Package to a Running Cluster

Hi,

This is the second post, please do not assign any points to this.


to sum up a clearer approach should be:

1) make the VGs cluster aware first to be used in the package using either of the following:
a) vgchange -c y
or
b)put the entry in the cluster.ascii file and do a cmacheckconf and cmapplyconf like
#cmcheckconf -v -C
#cmapplyconf -v -C

then step2;
2) edit the pkc.cntl as well as pkg.conf files and distribute the contriol files to the desired nodes,then

#cmcheckconf -v -P
#cmapplyconf -v -P

Please note that in simple failover packages with LVM vgs and LVs the package VG necessarily is not reqd in the cluster.ascii file.

Also this 2 step appraoch makes things easier to diagnose in case of problems/issues.
regards
sujit
Regular Advisor
Anoop P_2
Posts: 91
Registered: ‎01-21-2004
Message 7 of 8 (269 Views)

Re: MCSG : Adding a Package to a Running Cluster

You want to add a new package and the package has a cluster aware VG.

After you create the VG using option -c y, do a cmgetconf to see the configuration.

You'll most likely notice that the new VG is already listed. Doing a cmcheckconf/applyconf using this new ascii file will say some thing like "nothing to apply".

From the man page for cmapplyconf:

"The cluster ASCII file only needs to be specified if configuring the cluster for the first time, or if adding or deleting nodes to the cluster."

In your case, you just need to create a cluster aware VG, create the package file (cmmakepkg or copy/modify another existing package) , check it using cmcheckconf and apply it using cmapplyconf.

Hope it helps.
Valued Contributor
nightwich
Posts: 259
Registered: ‎01-02-2007
Message 8 of 8 (269 Views)

Re: MCSG : Adding a Package to a Running Cluster

Hi Rainer !!


You have to following this setps:

1 - mkdir /etc/cmcluster/package_name
2 - cmmakepkg -p pkg.conf ( Create pkg.conf )
3 - Edit pkg.conf vi pkg.conf (customize )
4 - cmmakepkg -s pkg.cntl ( create pkg.cntl)
5 - edit pkg.cntl vi pkgcntl
6 - copy the pkg to all nodes
8 - cmcheckconf -C /etc/cmcluster/cmclconf.ascii -P /etc/cmcluster/pkg_name/pkg.conf
9 - cmapplyconf -C /etc/cmcluster/cmclconf.ascii -P /etc/cmcluster/pkg_name/pkg.conf

10 - cmrunpkg pkg_name

You also need to update the information that you have in:

/etc/cmcluster/cmclconf.ascii

# List of cluster aware LVM Volume Groups. These volume groups will
# be used by package applications via the vgchange -a e command.
# Neither CVM or VxVM Disk Groups should be used here.
# For example:
# VOLUME_GROUP /dev/vgdatabase
# VOLUME_GROUP /dev/vg02

VOLUME_GROUP /dev/ORARAC
VOLUME_GROUP /dev/CCW

Regards !! ..
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.