Top
PRIMECLUSTER Global Link Services Configuration and AdministrationGuide 4.3Redundant Line Control Function

6.4.1 Shutdown maintenance for a NIC

The following describes the procedure for swapping a NIC after stopping the system on RHEL6. The MAC address is changed after the NIC is swapped, so you need to modify the operating system configuration file.

  1. Delete the entry information related to the NIC before swap from the rule file /etc/udev/rules.d/70-persistent-net.rules for the udev function of the operating system.

    # vi /etc/udev/rules.d/70-persistent-net.rules
    # This file was automatically generated by the /lib/udev/write_net_rules
    # program, run by the persistent-net-generator.rules rules file.
      ...
      ...
    # PCI device 0xXXXX:0xXXXX (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", \

    ATTR{address}=="XX:XX:XX:XX:XX:XX", ATTR{type}=="1", KERNEL=="eth*", NAME="ethX"

    The backslash (\) at the end of line indicates no break.

  2. Shut down the system.

    # shutdown -h now
  3. Swap the NIC.

  4. Boot the system in single user mode.

  5. Check that the entry information related to the NIC after swap is added into the rule file /etc/udev/rules.d/70-persistent-net.rules for the udev function of the operating system.

    # cat /etc/udev/rules.d/70-persistent-net.rules
    # This file was automatically generated by the /lib/udev/write_net_rules
    # program, run by the persistent-net-generator.rules rules file.
      ...
      ...
    # PCI device 0xXXXX:0xXXXX (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",  \
    ATTR{address}=="YY:YY:YY:YY:YY:YY", ATTR{type}=="1", KERNEL=="eth*", NAME="ethX"

    The backslash (\) at the end of line indicates no break.

  6. If interface names are switched before and after swapping NICs, edit the interface name in the rule file of udev function.

  7. Modify the operating system network configuration file. Change the HWADDR item according to the MAC address of the changed NIC.

    [For Fast switching mode, NIC switching mode, and GS linkage mode]

    # vi /etc/sysconfig/network-scripts/ifcfg-ethX
    DEVICE=ethX
    BOOTPROTO=static
    HWADDR=YY:YY:YY:YY:YY:YY
    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

    [For Virtual NIC mode]

    # vi /etc/sysconfig/network-scripts/ifcfg-ethX
    DEVICE=ethX
    BOOTPROTO=static
    HWADDR=YY:YY:YY:YY:YY:YY
    HOTPLUG=no
    ONBOOT=yes
    DEVICETYPE=hanet
  8. Reboot the system.

    # shutdown -r now