Operating System - HP-UX
1827667 Members
3562 Online
109966 Solutions
New Discussion

service guard error:Error:Invalid subnet 192.168.5.0 in package XXXX

 
study unix
Regular Advisor

service guard error:Error:Invalid subnet 192.168.5.0 in package XXXX

Hi,
Meet one question as below,
I revise physical ip and floating ip address for one service guard,
one step is to revise /etc/host and then to modify cmclconfig.ascii file,
the next step is to cmcheckconf with following error:
Error:Invalid subnet 192.168.5.0 in package XXXX,
I guess if it needs to remove cmclconfig.ascii then to implement the command cmcheckconf and cmapplyconf ?
7 REPLIES 7
AnthonySN
Respected Contributor

Re: service guard error:Error:Invalid subnet 192.168.5.0 in package XXXX

yes you need to delete cmclconfig.ascii and do a cmcheckconf
study unix
Regular Advisor

Re: service guard error:Error:Invalid subnet 192.168.5.0 in package XXXX

HI SASJ,
I do not understand why it needs to delete delete cmclconfig.ascii ,if I complete the command "cmdeleteconf " should remove binary file /etc/cmcluster/cmclconfig not cmclconfig.ascii?
melvyn burnard
Honored Contributor

Re: service guard error:Error:Invalid subnet 192.168.5.0 in package XXXX

why remove the entire cluster binary? Have you chnaged the physical iP address of a card in the cluster? If so you should be able to update your cluster ascii file and use cmapplyconf to change the binary.
You then need to change the configuration file (and control script if not a modular
package) to reflect the new subnet, and then reapply the package.

If all you have done is change the subnet that the package adds an addres to, make sure you modfiy, check, and apply the package configuration.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
study unix
Regular Advisor

Re: service guard error:Error:Invalid subnet 192.168.5.0 in package XXXX

Hi Melvyn,
Thanks for your response,

and now I need to do one change that physical address swithches from 192.168.5.101 to 10.234.231.1, and switches package floating adress from 192.168.5.100 to 10.234.231.10,I proceed with same error,
who can give one standard process as my reference,
thanks in advance!
Elmar P. Kolkman
Honored Contributor

Re: service guard error:Error:Invalid subnet 192.168.5.0 in package XXXX

You're problem is that you are not only changing the IP address of the cluster server, but also of the packages on it. So you need to re-create the entire cluster.

For that, do the cmdeleteconf commands given above and then re-create the cluster, or remove the packages with cmdeleteconf, apply the cluster config files and then apply the altered package configs.
Every problem has at least one solution. Only some solutions are harder to find.
study unix
Regular Advisor

Re: service guard error:Error:Invalid subnet 192.168.5.0 in package XXXX

Hi Elmar,
As your said, if it needs to change Ip address to service guard that equals to rebuild it, so that it needs to cmdeleteconf the previouse configuration file, if I understand it correct ?
Stephen Doud
Honored Contributor

Re: service guard error:Error:Invalid subnet 192.168.5.0 in package XXXX

IP addresses are located in the cluster configuration file and package configuration file (if using modular packages), or package control scripts (if using legacy packages).
The subnet value is only loaded in the package config or control file.

If a single NIC's IP on each node will be changed to a new IP, then update the cluster ASCII configuration file with the new IPs.
Also update package configuration files with the new subnet (and IP, if modular) and control script (if legacy) with the new IP/SUBNET parameters.

Then (if SG A.11.18 or older is installed), halt the cluster and perform cmapplyconf on all modified files.

If cmapplyconf cannot complete because of communication trouble, it may be that SG is trying to use the NIC with the modified IP. In that case, either cmdeleteconf the cluster, or remove /etc/cmcluster/cmclconfig on each node and rebuild the cluster.