Operating System - HP-UX
1829500 Members
2098 Online
109991 Solutions
New Discussion

Need to change subnet in pkg.config but cluster doesn't want to

 
Frank de Vries
Respected Contributor

Need to change subnet in pkg.config but cluster doesn't want to

We have an hpux 11.23 on Itanium.

The previous engineer has put in the incorrect
subnet 10.0.0.0 instead of 10.214.0.0

I have modified teh parameter SUBNET in pkg.cntl and SUBNET_MONITOR in pkg.config
and run cmapplyconf -P (to no avail see message :

bxud0021:/etc/cmcluster/oraprd#cmapplyconf -P oraprd.config
oraprd.config:374: MONITORED_SUBNET 10.214.0.0 not part of the cluster.
Specify a MONITORED_SUBNET that is part of the cluster.

cmapplyconf: Error found in package file: oraprd.config.
bxud0021:/etc/cmcluster/oraprd#

I really need to get this subnet 10.214.0.0 inside the cluster. What am I missing here.

Please find routing table when cluster is halted: (looks allright to me)
bxud0021:/etc/cmcluster/oraprd#netstat -nrv
Routing tables
Dest/Netmask Gateway Flags Refs Interface Pmtu
127.0.0.1/255.255.255.255 127.0.0.1 UH 0 lo0 4136
10.214.16.171/255.255.255.255 10.214.16.171 UH 0 lan1 4136
192.167.2.18/255.255.255.255 192.167.2.18 UH 0 lan4 4136
192.167.2.0/255.255.255.0 192.167.2.18 U 2 lan4 1500
10.214.0.0/255.255.224.0 10.214.16.171 U 2 lan1 1500
127.0.0.0/255.0.0.0 127.0.0.1 U 0 lo0 4136
default/0.0.0.0 10.214.0.1 UG 0 lan1 1500

Thanks


Look before you leap
5 REPLIES 5
melvyn burnard
Honored Contributor

Re: Need to change subnet in pkg.config but cluster doesn't want to

if the cluster binary was built with that subnet in, then that is what it is trying to verify and use.
You will need to check what is in the binary, and if needed you will need to halt the cluster and redo the binary to change the subnet in the cluster binary file.

use cmviewconf to see what is in the binary
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Frank de Vries
Respected Contributor

Re: Need to change subnet in pkg.config but cluster doesn't want to

if the cluster binary was built with that subnet in, then that is what it is trying to verify and use.
> Sorry, I was not clear: The binary was >made with subnet 10.0.0.0,
>and I need to change it to 10.214.0.0

>So I stopped the cluster,
>and modified the pgk.cntl and pgk.config
>and run cmapllyconf -P pkg.config
(I am repeating myself)


Look before you leap
melvyn burnard
Honored Contributor

Re: Need to change subnet in pkg.config but cluster doesn't want to

well you have applied the changes to the package, but not the cluster
you need to do a cmapplyconf at the cluster level, then do the package if I recall
check with cmviewconf what is in the binary
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Frank de Vries
Respected Contributor

Re: Need to change subnet in pkg.config but cluster doesn't want to

What you say makes sense

I need to do cmapplyconf -C cluster.ascii
before I do cmapplyconf -P

I will do it !
Thanks

Look before you leap
Frank de Vries
Respected Contributor

Re: Need to change subnet in pkg.config but cluster doesn't want to

this is the one and only correct answer:

To update the SUBNET reference
from in the cluster binary file:
cd /etc/cmcluster/
cp cmclconfig cmclconfig.old
cmgetconf >cluster.ascii
cmgetconf -p pkg_name >pkg.config
modify SUBNET entries in pkg.config files and pkg.cntl.sh files
cmhaltcl -f
cmdeleteconf -f
cmapplyconf -C cluster.ascii -P pkg.config -P pkg2.config ...
cmviewconf - confirm new-subnet
cmruncl
Look before you leap