Merge "Add how to configure vip resource with pcs command"
This commit is contained in:
commit
6f366378ec
|
@ -6,11 +6,19 @@ Configure the VIP
|
|||
You must select and assign a virtual IP address (VIP)
|
||||
that can freely float between cluster nodes.
|
||||
|
||||
This configuration creates ``p_ip_api``,
|
||||
This configuration creates ``vip``,
|
||||
a virtual IP address for use by the API node (``192.168.42.103``):
|
||||
|
||||
::
|
||||
For ``crmsh``:
|
||||
|
||||
primitive p_api-ip ocf:heartbeat:IPaddr2 \
|
||||
params ip="192.168.42.103" cidr_netmask="24" \
|
||||
op monitor interval="30s"
|
||||
.. code-block:: console
|
||||
|
||||
primitive vip ocf:heartbeat:IPaddr2 \
|
||||
params ip="192.168.42.103" cidr_netmask="24" op monitor interval="30s"
|
||||
|
||||
For ``pcs``:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
# pcs resource create vip ocf:heartbeat:IPaddr2 \
|
||||
params ip="192.168.42.103" cidr_netmask="24" op monitor interval="30s"
|
||||
|
|
Loading…
Reference in New Issue