1753482 Members
4532 Online
108794 Solutions
New Discussion юеВ

Re: 2nd IP address

 
SOLVED
Go to solution
Yvonne Butler
Regular Advisor

2nd IP address

Does anyone know if it's possible to have a ServiceGuard package running on two different IP addresses?
5 REPLIES 5
Armin Feller
Honored Contributor
Solution

Re: 2nd IP address

Yes you can. Configure the package control script and add the second ip_address:

# vi pkg.cntl
+-----------------
| ...
| IP[0]=XXX.XXX.XXX.XXX
| SUBNETMASK[0]=XXX.XXX.XXX.XXX
| IP[1]=XXX.XXX.XXX.XXX
| SUBNETMASK[1]=XXX.XXX.XXX.XXX
|
| :wq!

Regards,
Armin
Armin Feller
Honored Contributor

Re: 2nd IP address

After editing the control file distribute this to all nodes and do following:

1. halt the cluster

$ cmhaltcl


(Perform step 2 if skipping it does not yield a properly completeed
cmapplyconf)

2. Purge the old static cluster binary file - cmclconfig and zero the
clustered volume groups.

$ cmdeleteconf

3. rebuild/distribute a new cmclconfig

$ cmapplyconf -C CONF -P pkg1/conf -P pkg2/conf ...

4. restart cluster - autostarting the packages

$ cmruncl
Christopher McCray_1
Honored Contributor

Re: 2nd IP address

Hello,

Also, make sure you add a second "SUBNET" line in the pkg.conf file, provided that the other ip is on another subnet.

Hope this helps

Chris
It wasn't me!!!!
Yvonne Butler
Regular Advisor

Re: 2nd IP address

This is exactly the answer I was hoping for. Thanks very much...
avsrini
Trusted Contributor

Re: 2nd IP address

Hi,
For just changing the package configuration, there is no need to bring the cluster down. Just halt the package and delete only the package configuration from the cluster.
cmdeleteconf -c clustername -p packagename.

After making necessary modifications, check and apply the package configuration to the cluster.

Also take care when using cmdeleteconf command, you may end up loosing all the cluster configurations.

Srini.
Be on top.