Operating System - HP-UX
1828195 Members
2107 Online
109975 Solutions
New Discussion

Adding a Package to a Running Cluster

 
SOLVED
Go to solution
Mike Brown_3
Frequent Advisor

Adding a Package to a Running Cluster

Hi guys,
I have a running 2-node cluster on two rp3440s, HP-UX 11.11, MCSG A11.16.
I have an odd problem in that when I try to add a new package to it, curious errors occur when running cmcheckconf - see below - all commands are run from ;

# mkdir /etc/cmcluster/X
# cmmakepkg -p /etc/cmcluster/X/X.config

PACKAGE_NAME X
NODE_NAME
NODE_NAME
RUN_SCRIPT /etc/cmcluster/X/X.cntl
HALT_SCRIPT /etc/cmcluster/X/X.cntl
SUBNET 1.2.3.0

# cmmakepkg -s /etc/cmcluster/X/X.cntl

VG[0]=/dev/vgX
LV[0]="/dev/vgX/lvol1"; FS[0]="/db01"; FS_MOUNT_OPT[0]="-o largefiles";
LV[1]="/dev/vgX/lvol2"; FS[1]="/db02"; FS_MOUNT_OPT[1]="-o largefiles";
LV[2]="/dev/vgX/lvol3"; FS[2]="/X"; FS_MOUNT_OPT[2]="-o largefiles";
IP[0]="1.2.3.4"
SUBNET[0]="1.2.3.0"

I copy these files to the adoptive node(s);
# rcp * :/etc/cmcluster/X

Then run `cmcheckconf`;

# cmcheckconf -v -P /etc/cmcluster/X/X.config

Checking existing configuration ... Done
Gathering configuration information ... Done
Parsing package file: /etc/cmcluster/X/X.config.
Attempting to add package X.
Error: Run script /etc/cmcluster/Y/Y.cntl for package Y
does not have execute access on node .
Maximum configured packages parameter is 20.
Configuring 3 package(s).
17 package(s) can be added to this cluster.
200 access policies can be added to this cluster.
cmcheckconf : Unable to verify package.
#

I'm just mystified why cmcheckconf seems to want to reference other packages, (in this example, Y), when I'm using the "-P" to specify the one I want to add. There are definitely NO REFERENCES to package Y in my cntl or config files for package X.

Any help gratefully appreciated.
There's no substitute for experience
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Adding a Package to a Running Cluster

Shalom,

Check permissions on the package and anything it calls.

Make sure both nodes have the same version of all control scripts.

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
Mike Brown_3
Frequent Advisor

Re: Adding a Package to a Running Cluster

Hi Steven,
Thanks for the reply.

The files WILL be the same revisions, (you'll note above that my "rcp" takes care of that).
And permissions of said files compare favourably with existing packages, even those of package Y, so I can't see that being the problem either.

Best regards, Mike.
There's no substitute for experience
Luk Vandenbussche
Honored Contributor
Solution

Re: Adding a Package to a Running Cluster

Mike,

Double check the excute permission off /etc/cmcluster/Y/Y.cntl on Host A


Error: Run script /etc/cmcluster/Y/Y.cntl for package Y
does not have execute access on node .
IT_2007
Honored Contributor

Re: Adding a Package to a Running Cluster

Check permissions for package control file and its parent directory.

Error: Run script /etc/cmcluster/Y/Y.cntl for package Y
does not have execute access on node .
Mike Brown_3
Frequent Advisor

Re: Adding a Package to a Running Cluster

Thanks Luk, I really thought I'd checked, (and double-checked!), that as you can see by my response to Steven.
It was indeed an issue with the perms on Y.cntl, (ie: no execute).
I guess what threw me was the fact that I'd use -P to point towards X and Y was called. Presumably when you cmcheckconf, it checks all packages by default anyway, whether they're running or not.

Steve - apologies to you. If you'd like to say hello (or shalom), I'll gladly reward you for the time taken.

regards, Mike.
There's no substitute for experience