PRIMECLUSTER Global Link Services Configuration and Administration Guide: Redundant Line Control Function 4.1 (for Linux)
Contents Index PreviousNext

Chapter 4 Operation> 4.5 Active maintenance (addition/removal/swapping)> 4.5.1 Active maintenance by PCI Hot Plug

4.5.1.3 Swapping procedure

This section describes the procedure for swapping a NIC whose virtual interface makes it redundant.

image

[Figure 4.3 Swapping a NIC whose virtual interface make it redundant (ethX)]

For a Fast switching mode

1. Confirm that the PCI Hot Plug driver is installed.

If the PCI Hot Plug driver is not installed, install it according to "B.2.2 Installation of a PCI Hot Plug driver" of the "PRIMEQUEST 480/440 Operation Manual".

Confirmation procedure

# lsmod | grep shpchp
shpchp                203816  0

Installation procedure

# modprobe shpchp

2. Prepare for swapping a card.

1) From the virtual interface definition, temporarily delete the definition information about the NIC to be swapped.

# /opt/FJSVhanet/usr/sbin/hanetnic delete -n shaX -i ethX

2) Enter the dsphanet command to confirm that the device status of the NIC is "CUT".

# /opt/FJSVhanet/usr/sbin/dsphanet
[IPv4,Patrol]
 Name       Status   Mode CL  Device
+----------+--------+----+----+------------------------------------------------+
 shaX       Active    t   OFF  ethX(CUT),ethY(ON)

3) Deactivate the NIC.

# /sbin/ifdown ethX

3. Turn off power to the target PCI slot.

The interface (ethX) is deleted when power is turned off. For details, see "B.2.3.2 Power-on and power-off procedures" of the "PRIMEQUEST 480/440 Operation Manual".

# echo 0 > /sys/bus/pci/slots/"<slot-number>"/power

4. Swap the NIC in the PCI slot.

5. Turn on power to the PCI slot.

For details, see "B.2.3.2 Power-on and power-off procedures" of the "PRIMEQUEST 480/440 Operation Manual".

# echo 1 > /sys/bus/pci/slots/"<slot-number>"/power

6. Check the hardware address.

An interface (ethX) is created for the swapped NIC when power is turned on. Execute the ifconfig (8) command to check the hardware address of the swapped NIC (HWaddr).

7. Perform post-swap processing.

1) Change the specified value of "HWADDR" in the interface setting file (/etc/sysconfig/network-scripts/ifcfg-eth<x>) to the hardware address of the swapped NIC that was checked in Step 6.

ifcfg-ethX

DEVICE=ethX
BOOTPROTO=static
HWADDR=ZZ:ZZ:ZZ:ZZ:ZZ:ZZ
HOTPLUG=no
BROADCAST=XXX.XXX.XXX.XXX
IPADDR=XXX.XXX.XXX.XXX
NETMASK=XXX.XXX.XXX.XXX
NETWORK=XXX.XXX.XXX.XXX
ONBOOT=yes
TYPE=Ethernet

2) Activate the swapped NIC.

# /sbin/ifup ethX

3) Restore the NIC definition that was temporarily deleted prior to swapping in 1) of Step 2).

# /opt/FJSVhanet/usr/sbin/hanetnic add -n shaX -i ethX

4) Enter the dsphanet command to confirm that the device status of the swapped NIC is "ON".

# /opt/FJSVhanet/usr/sbin/dsphanet
[IPv4,Patrol]
 Name       Status   Mode CL  Device
+----------+--------+----+----+------------------------------------------------+
 shaX       Active    t   OFF  ethX(ON),ethY(ON)

For a NIC switching mode

1. Confirm that the PCI Hot Plug driver is installed.

If the PCI Hot Plug driver is not installed, install it according to "B.2.2 Installation of a PCI Hot Plug driver" of the "PRIMEQUEST 480/440 Operation Manual".

Confirmation procedure

# lsmod | grep shpchp
shpchp                203816  0

Installation procedure

# modprobe shpchp

2. Prepare for swapping a card.

1) Stop hub monitoring.

# /opt/FJSVhanet/usr/sbin/hanetpoll off

2) Stop standby patrol monitoring. If the standby patrol function is not used, skip this step.

# /opt/FJSVhanet/usr/sbin/stpptl -n shaY

3) Enter the dsphanet command to check the status of the NIC to be swapped. The NIC must be in a different state from that of an active NIC (the NIC must be in the "OFF" or "STOP" state). If the NIC is active, follow Step 4 to switch its state to standby.

# /opt/FJSVhanet/usr/sbin/dsphanet
[IPv4,Patrol]
 Name       Status   Mode CL  Device
+----------+--------+----+----+------------------------------------------------+
 shaX       Active    d   OFF  ethX(ON),ethY(OFF)

4) If the NIC is an active NIC, switch its state to standby. After the switch, enter the dsphanet command to confirm that the NIC is a standby NIC(OFF).

# /opt/FJSVhanet/usr/sbin/hanetnic change -n shaX


# /opt/FJSVhanet/usr/sbin/dsphanet
[IPv4,Patrol]
 Name       Status   Mode CL  Device
+----------+--------+----+----+------------------------------------------------+
 shaX       Active    d   OFF  ethX(OFF),ethY(ON)

5) Stop interface status monitoring.

# /bin/touch /var/opt/FJSVhanet/tmp/disable_watchif

6) Deactivate the NIC.

# /sbin/ifdown ethX

3. Turn off power to the target PCI slot.

The interface (ethX) is deleted when power is turned off. For details, see "B.2.3.2 Power-on and power-off procedures" of the "PRIMEQUEST 480/440 Operation Manual".

# echo 0 > /sys/bus/pci/slots/"<slot-number>"/power

4. Swap the NIC in the PCI slot.

5. Turn on power to the PCI slot.

For details, see "B.2.3.2 Power-on and power-off procedures" of the "PRIMEQUEST 480/440 Operation Manual".

# echo 1 > /sys/bus/pci/slots/"<slot-number>"/power

6. Check the hardware address.

An interface (ethX) is created for the swapped NIC when power is turned on. Execute the ifconfig (8) command to check the hardware address of the swapped NIC (HWaddr).

7. Perform post-swap processing.

1) Change the specified value of "HWADDR" in the interface setting file (/etc/sysconfig/network-scripts/ifcfg-eth<x>) to the hardware address of the swapped NIC that was checked in Step 5.

ifcfg-ethX (NIC that was swapped)

DEVICE=ethX
BOOTPROTO=static
HWADDR=ZZ:ZZ:ZZ:ZZ:ZZ:ZZ
HOTPLUG=no
BROADCAST=XXX.XXX.XXX.XXX
IPADDR=XXX.XXX.XXX.XXX
NETMASK=XXX.XXX.XXX.XXX
NETWORK=XXX.XXX.XXX.XXX
ONBOOT=yes
TYPE=Ethernet

2) Change the interface name of the swapped NIC to the name specified in the interface setting file (/etc/sysconfig/network-scripts/ifcfg-eth<x>). Specify the same interface name and hardware address in the nameif (8) command as those in "DEVICE" and "HWADDR" in the ifcfg-ethX file that was set in 1) of step 6. When the nameif (8) command is executed, the specified interface must be deactivated.

# /sbin/nameif ethX ZZ:ZZ:ZZ:ZZ:ZZ:ZZ

3) Set the state of the swapped NIC to that of a standby NIC of GLS. Confirm that an IPv4 address is not assigned and the "UP" and "NOARP" flags are set.

# /sbin/ifconfig ethX 0 -arp up
# /sbin/ifconfig ethX
ethX      Link encap:Ethernet  HWaddr ZZ:ZZ:ZZ:ZZ:ZZ:ZZ
          inet6 addr: fe80::XXXXXXXXXXXXXXXX/64 Scope:Link
          UP BROADCAST NOARP MULTICAST  MTU:1500  Metric:1

4) If necessary, fail-back the NIC.

# /opt/FJSVhanet/usr/sbin/hanetnic change -n shaX

5) Start standby patrol monitoring. If the standby patrol function is not used, skip this step.

# /opt/FJSVhanet/usr/sbin/strptl -n shaY

6) Restart hub monitoring.

# /opt/FJSVhanet/usr/sbin/hanetpoll on

7) Restart interface status monitoring.

# /bin/rm /var/opt/FJSVhanet/tmp/disable_watchif



Contents Index PreviousNext

All Rights Reserved, Copyright (C) FUJITSU LIMITED 2005