OCF_HEARTBEAT_LVM-A(7) | OCF resource agents | OCF_HEARTBEAT_LVM-A(7) |
ocf_heartbeat_LVM-activate - This agent activates/deactivates logical volumes.
LVM-activate [start | stop | monitor | meta-data | validate-all]
This agent manages LVM activation/deactivation work for a given volume group.
It supports the following modes, controlled by the vg_access_mode parameter:
* lvmlockd * system_id * clvmd * tagging
Notes:
1. There are two possible configuration combinations: lvmlockd+LVM-activate and clvm+LVM-activate. However, it is not possible to use both at the same time!
2. Put all "lvmlockd"/"clvmd" volume groups into auto management by the agent if using the cluster to manage at least one of them. If you manage some manually, the stop action of the lvmlockd agent may fail and the node may get fenced, because some DLM lockspaces might be in use and cannot be closed automatically.
3. The autoactivation property of volume group will be disabled when vg_access_mode is set to system_id.
Option: OCF_CHECK_LEVEL
The standard monitor operation of depth 0 checks if the VG or LV is valid. If you want deeper tests, set OCF_CHECK_LEVEL to 10:
10: read first 1 byte of the underlying device (raw read)
If there are many underlying devs in VG, it will only read one of the devs. This is not perfect solution for detecting underlying devices livable. e.g. iscsi SAN IO timeout will return EIO, and it makes monitor failed.
vgname
(required, string, no default)
lvname
(optional, string, no default)
vg_access_mode
(required, string, no default)
activation_mode
This option only has effect on "lvmlockd"/"clvmd" vg_access_mode. For "system_id" and "tagging", they always mean exclusive activation.
(optional, string, default "exclusive")
tag
(optional, string, default "pacemaker")
partial_activation
(optional, string, default "false")
This resource agent supports the following actions (operations):
start
stop
monitor
meta-data
validate-all
The following is an example configuration for a LVM-activate resource using the crm(8) shell:
primitive p_LVM-activate ocf:heartbeat:LVM-activate \
params \
vgname=string \
vg_access_mode=string \
op monitor timeout="90s" interval="30s" depth="0"
The following is an example configuration for a LVM-activate resource using pcs(8)
pcs resource create p_LVM-activate ocf:heartbeat:LVM-activate \
vgname=string \
vg_access_mode=string \
op monitor timeout="90s" interval="30s" OCF_CHECK_LEVEL="0"
http://clusterlabs.org/
ClusterLabs contributors (see the resource agent source for information about individual authors)
04/13/2023 | resource-agents 4.12.0-2 |