Operating System - HP-UX
1823258 Members
3083 Online
109648 Solutions
New Discussion юеВ

where is the package ip address

 
khilari
Regular Advisor

where is the package ip address

Hi guys, well i have 3 lancards. First one is for heartbeat, second is also heart beat along with data and the third one is standby. Now, i dont see any floating ip address for the package. Is it so that the ipaddress will kick in once it gets transferred to the adoptive node in a failover situation. And secondly where do i specify the floating ip address of the package. I have an existing service guard environment and i cant find it.
Thanks
(h8193n3a)root# netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
10.1.1.100 10.1.1.100 UH 0 lan0 4136
142.238.64.76 142.238.64.76 UH 0 lan1 4136
142.238.64.65 142.238.64.65 UH 0 lan1:1 4136
10.1.1.0 10.1.1.100 U 2 lan0 1500
142.238.0.0 142.238.64.76 U 3 lan1 1500
142.238.0.0 142.238.64.65 U 3 lan1:1 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 142.238.2.41 UG 0 lan1 0
(h8193n3a)root# netstat -in
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan2* 1500 none none 0 0 0 0 0
lan1:1 1500 142.238.0.0 142.238.64.65 17085877 0 565 0 0
lan1 1500 142.238.0.0 142.238.64.76 44731967 0 49336106 0 0
lan0 1500 10.1.1.0 10.1.1.100 1967595 0 3826205 0 0
lo0 4136 127.0.0.0 127.0.0.1 3034708 0 3034708 0 0
7 REPLIES 7

Re: where is the package ip address

Your floating IP address is 142.238.64.65

You can see this as it is an additional IP address on the NIC (lan1:1 rather than just lan1)

You specify the IP address in your package run script. To locate this:

1. Find the name of your package using:

cmviewcl -l package

2. Locate the run script for the package:

cmgetconf -p | grep RUN_SCRIPT

3. Now look in that file (usually somewhere in /etc/cmcluster/ and locate the IP[n] entry, e.g.

IP[0]=142.238.64.65

Do you actually want to change it?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Patrick Wallek
Honored Contributor

Re: where is the package ip address

Your floating IP is most likely this:
142.238.64.65 142.238.64.65 UH 0 lan1:1 4136

Note the 'lan1:1'.

The floating IP address is configured in the package configuration file in /etc/cmcluster/

BrianDoyle
Trusted Contributor

Re: where is the package ip address

Hi khilari,

Package IP's can be seen in /etc/cmcluster/package_name/package_name.cntl

Brian
Sandman!
Honored Contributor

Re: where is the package ip address

Virtual IP corresponds to lan1:1 and can be located in the pkg control script using the following cmd:

# grep "^IP\[" /etc/cmcluster//*
Redhat
Trusted Contributor

Re: where is the package ip address

Package IP can be found in the package control file.

The virtual interface is bind to the IP in this case lan1:1
Stephen Doud
Honored Contributor

Re: where is the package ip address

Khilari,
The Managing Serviceguard manual located at http://docs.hp.com/en/ha.html#Serviceguard contains this information and much more.
This is my invitation to you to have a look at the manual to help you learn more about Serviceguard concepts to help you be more self reliant.
The relocatable IP concept is described in this section:
http://docs.hp.com/en/B3936-90117/ch03s05.html

The relocatable IP is configured in the package control script.
The package control script is defined in the cluster binary.
You can use this command to locate the appropriate package control script:
# cmviewconf | grep script

Remember that each node that can run the package will have a copy of the package control script.

The relocatable IP is defined by parameters like this in the control script:
IP[0]=""
SUBNET[0]=""

Hoang Chi Cong_1
Honored Contributor

Re: where is the package ip address

Hi

IP address of the Package is configured in control file.

These are information that I get from the package's control file:

# IP ADDRESSES
# Specify the IP and Subnet address pairs which are used by this package.
# Uncomment IP[0]="" and SUBNET[0]="" and fill in the name of your first
# IP and subnet address. You must begin with IP[0] and SUBNET[0] and
# increment the list in sequence.
#
# For example, if this package uses an IP of 192.10.25.12 and a subnet of
# 192.10.25.0 enter:
# IP[0]=192.10.25.12
# SUBNET[0]=192.10.25.0 # (netmask=255.255.255.0)
#
# Hint: Run "netstat -i" to see the available subnets in the Network field.
#
# IP/Subnet address pairs for each IP address you want to add to a subnet
# interface card. Must be set in pairs, even for IP addresses on the same
# subnet.
#

IP[0]=xxx.xxx.xxx.xxx
SUBNET[0]=xxx.xxx.xxx.xxx

Goodluck
Looking for a special chance.......