You can set up the LifeKeeper for Linux Internet Protocol (IP) Recovery Kit through the use of the LKCLI (Command Line Interface).
Creating/Extending/Configuring the IP resource from the Command Line
create ip
EXAMPLE: #lkcli resource create ip --tag <tag> --ipaddr <IP Address> --switchback <switchback type> --netmask <netmask> --device <network interface name>
Option | Default | Description |
---|---|---|
--ipaddr <str> | Virtual IP address. If the actual IP address is to be protected, specify ’0.0.0.0’. |
|
[--netmask <str>] | An appropriate value determined from ipaddr. | Virtual IP netmask. If ‘0.0.0.0’ is specified for ipaddr, the network interface netmask specified for the device will be used. |
[--device <str>] | An appropriate value determined from ipaddr and netmask. Note: If ‘0.0.0.0’ is specified for ipaddr, this device must be specified. |
Network interface name associated with the virtual IP or the actual IP. |
extend ip
EXAMPLE: #lkcli resource extend ip --tag <tag> --dest <backup node> --switchback <switchback type> --template_prioity <priority> --target_priority <prority> --ipaddr <IP address> --netmask <netmask> --device <network interface name>
Option | Default | Description |
---|---|---|
[--ipaddr <str>] | Source system ipaddr. | Virtual IP address on the extension destination node. If the actual IP address is to be protected, specify ’0.0.0.0’. |
[--netmask <str>] | An appropriate value determined from ipaddr. | Virtual IP netmask on the extension destination node. If ‘0.0.0.0’ is specified for ipaddr, the network interface netmask specified for the device will be used. |
[--device <str>] | An appropriate value determined from ipaddr and netmask. Note: If ‘0.0.0.0’ is specified for ipaddr, this device must be specified. |
Network interface name associated with the virtual IP or the actual IP on the extension destination node. |
config ip
EXAMPLE: #lkcli resource config ip --tag <tag> --pinglist <destination list> --srcaddr <0|1> --restoremode <Enabled|Disabled>
Option | Default | Description |
---|---|---|
[--pinglist <str>] | Ping the destination list for options (multiple designations are specified separated by comma). | |
[--srcaddr <str>] | Specify 0 or 1 Specify whether to use the virtual IP address as the source address for external communication IP traffic to the same subnet.
|
|
[—restoremode <str>] | Specify Enabled or Disabled. Enable/disable restoration and recovery for IP resources.
|
Post your comment on this topic.