Removing the IPv4 resources from the VCS configuration when VCS global clustering and VVR agents are configured in the presence of a bunker

To remove the IPv4 resources from the VCS configuration, do the following:

To remove the IPv4 resources from the Primary and Secondary sites

  1. On the Primary site, make the VCS configuration writeable. Enter the following:
    # haconf -makerw
  2. Take the system offline. Enter the following:
    # hares -offline ipres -sys vvrias05
  3. Unlink the RVG and IP resources. Enter the following:
    # hares -unlink res_rvg ipres
  4. Unlink the IP and NIC resources. Enter the following:
    # hares -unlink ipres nicres
  5. Delete the IP and NIC resources. Enter the following:
    # hares -delete ipres
    # hares -delete nicres
  6. Save the changes made to the configuration. Enter the following:
    # haconf -dump -makero
  7. Verify that only IPv6 addresses are defined.
    # hares -state | grep -i res
    #Resource    Attribute        System     Value
    ipres_v6     State            vvrias05   ONLINE
    ipres_v6     State            vvrias06   OFFLINE
    nicres_v6    State            vvrias05   ONLINE
    nicres_v6    State            vvrias06   ONLINE
  8. Repeat this procedure on the Secondary site to remove its IPv4 resources.

To remove the IPv4 resources from the VCS configuration on the bunker site

  1. Enter the following command:
    # hares -state
    #Resource    Attribute             System     Value
    ipres        State                 vvrias09   ONLINE
    ipres_v6     State                 vvrias09   ONLINE
    nicres       State                 vvrias09   ONLINE
    nicres_v6    State                 vvrias09   ONLINE
    phantom_vxss State                 vvrias09   ONLINE
    vxatd        State                 vvrias09   ONLINE
  2. Make the VCS configuration writeable. Enter the following:
    # haconf -makerw
  3. Unlink the IP and NIC resources. Enter the following:
    # hares -unlink ipres nicres
  4. Delete the IP and NIC resources. Enter the following:
    # hares -delete ipres
    # hares -delete nicres
  5. Save the changes made to the configuration. Enter the following:
    # haconf -dump -makero
  6. Verify that only IPv6 addresses are defined.
    # hares -state
    #Resource    Attribute             System     Value
    ipres_v6     State                 vvrias09   ONLINE
    nicres_v6    State                 vvrias09   ONLINE
    phantom_vxss State                 vvrias09   ONLINE
    vxatd        State                 vvrias09   ONLINE
  7. Display the current network status. Enter the following:
    # netstat -in
    IPv4:
    Name      Mtu  Network         Address         Ipkts       Ierrs Opkts       Oerrs Coll
    lo0     32808  127.0.0.0       127.0.0.1       113649      0     113649      0     0
    
    IPv6:
    Name      Mtu  Address/Prefix                              Ipkts       Opkts
    lan2     1500  fd4b:454e:205a:111:211:43ff:feaa:af70/64    0           2
    lo0     32808  ::1/128

To remove the IPv4 network on the Primary and Secondary sites (optional)

  1. Down the interface on which IPv4 was configured.
    # ifconfig lan0 down
  2. Unplumb in the interface.
    # ifconfig lan0 unplumb
  3. Remove the IPv4 network cable. This does not impact replication because the VVR configuration has been migrated to use IPv6 on all sites.
  4. Verify that there are no IPv4 addresses defined.
    # netstat -in
    IPv4:
    Name      Mtu  Network         Address         Ipkts       Ierrs Opkts       Oerrs Coll
    lo0     32808  127.0.0.0       127.0.0.1       2202        0     2202        0     0
    
    IPv6:
    Name      Mtu  Address/Prefix                            Ipkts        Opkts
    lan2     1500  fd4b:454e:205a:111:211:43ff:feaa:af70/64  3105960      2
    lo0     32808  ::1/128                                   3280         3280
  5. Remove the IPv4 entries from /etc/hosts and /etc/resolv.conf files on all the hosts on both the Primary and Secondary sites.

    Note:

    Do not remove the IPv4 loopback entry from the /etc/hosts file. If you remove the loopback entry, and replication is affected, stop and restart the VVR service using the vxstart_vvr stop and vxstart_vvr start commands.

You have now migrated VVR to an IPv6-only network.