OCF_HEARTBEAT_IPADDR(7) | OCF resource agents | OCF_HEARTBEAT_IPADDR(7) |
NAME
ocf_heartbeat_IPaddr - Manages virtual IPv4 addresses (portable version)
SYNOPSIS
IPaddr [start | stop | monitor | meta-data | validate-all]
DESCRIPTION
This script manages IP alias IP addresses It can add an IP alias, or remove one.
SUPPORTED PARAMETERS
ip
(unique, required, string, no default)
nic
If left empty, the script will try and determine this from the routing table.
Do NOT specify an alias interface in the form eth0:1 or anything here; rather, specify the base interface only.
Prerequisite:
There must be at least one static IP address, which is not managed by the cluster, assigned to the network interface.
If you can not assign any static IP address on the interface, modify this kernel parameter: sysctl -w net.ipv4.conf.all.promote_secondaries=1 (or per device)
(optional, string, default "eth0")
cidr_netmask
If unspecified, the script will also try to determine this from the routing table.
(optional, string, no default)
broadcast
(optional, string, no default)
iflabel
(optional, string, no default)
lvs_support
(optional, boolean, default false)
local_stop_script
(optional, string, no default)
local_start_script
(optional, string, no default)
ARP_INTERVAL_MS
(optional, integer, default 500)
ARP_REPEAT
(optional, integer, default 10)
ARP_BACKGROUND
(optional, boolean, default yes)
ARP_NETMASK
(optional, string, default "ffffffffffff")
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
stop
monitor
validate-all
meta-data
EXAMPLE CRM SHELL
The following is an example configuration for a IPaddr resource using the crm(8) shell:
primitive p_IPaddr ocf:heartbeat:IPaddr \ params \ ip=string \ op monitor depth="0" timeout="20s" interval="5s"
EXAMPLE PCS
The following is an example configuration for a IPaddr resource using pcs(8)
pcs resource create p_IPaddr ocf:heartbeat:IPaddr \ ip=string \ op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="5s"
SEE ALSO
http://clusterlabs.org/
AUTHOR
ClusterLabs contributors (see the resource agent source for information about individual authors)
11/10/2024 | resource-agents 4.16.0-1 |