MapR: Edit and Remove Virtual IP Addresses (Command Line)

Document created by RSA Information Design and Development on Jul 29, 2016
Version 1Show Document
  • View in full screen mode
 

This procedure is optional and used when you want to change the virtual IP addresses in the Warehouse cluster.

Prerequisites

Make sure that you note the MAC addresses of all the Warehouse appliances in the cluster. Use the following command on the appliance to view the MAC address of the appliance:

ifconfig <interface> | grep HWaddr

where <interface> is the network interface.

Also note the MAC addresses of the Warehouse appliances that you want to add.

Procedure

Adding and removing Warehouse appliances to and from a virtual IP group is accomplished by executing an edit command. This is the same as the add command, except that ALL of the MAC addresses are replaced with ONLY the MAC addresses that you enter.

To add or remove a virtual IP address in the primary Warehouse appliance:

  1. Log on to the primary appliance as root user.
  2. Edit the virtual IP address. Enter the following command:
    maprcli virtualip edit -virtualip <VIP_address> -netmask <netmask> -macs <mac_node1> <mac_node2> <mac_node3> ……< mac_node n>
    where:
    • <VIP_address> is the virtual IP address for the primary Warehouse appliance.
    • <netmask> is the netmask address of the primary Warehouse appliance.
    • <mac_node1> is the MAC address of the first node in the Warehouse cluster.
    • <mac_node2> is the MAC address of the second node in the Warehouse cluster.
    For example, if the IP address of the primary warehouse is 192.168.100.10 and the MAC address for node 1 is 01:Z1:1X:00:20:Y1, node 2 is 32:Y2:4Z:40:10:X3, and you want to add node 3, which is 20:Y2:4Z:20:10:X3, then enter the following:
    maprcli virtualip edit -virtualip 192.168.100.10 -netmask <netmask> -macs 01:Z1:1X:00:20:Y1 32:Y2:4Z:40:10:X3 20:Y2:4Z:20:10:X3
  3. Verify the virtual IP addresses. Enter the following command:
    maprcli virtualip list

To remove the virtual IP address of the primary Warehouse appliance group entirely:
Enter the following command:
maprcli virtualip remove -virtualip 192.168.100.10

You are here: Additional Procedures > Edit and Remove Virtual IP Addresses (Command Line)

Attachments

    Outcomes