1OCF_HEARTBEAT_LVM(7)          OCF resource agents         OCF_HEARTBEAT_LVM(7)
2
3
4

NAME

6       ocf_heartbeat_LVM - Controls the availability of an LVM Volume Group
7

SYNOPSIS

9       LVM [start | stop | status | monitor | meta-data | validate-all]
10

DESCRIPTION

12       Resource script for LVM. It manages an Linux Volume Manager volume
13       (LVM) as an HA resource.
14

SUPPORTED PARAMETERS

16       volgrpname
17           The name of volume group.
18
19           (required, string, no default)
20
21       exclusive
22           If set, the volume group will be activated exclusively. This option
23           works one of two ways. If the volume group has the cluster
24           attribute set, then the volume group will be activated exclusively
25           using clvmd across the cluster. If the cluster attribute is not
26           set, the volume group will be activated exclusively through the use
27           of the volume_list filter in lvm.conf. In the filter scenario, the
28           LVM agent verifies that pacemakerĀ“s configuration will result in
29           the volume group only being active on a single node in the cluster
30           and that the local nodeĀ“s volume_list filter will prevent the
31           volume group from activating outside of the resource agent. On
32           activation this agent claims the volume group through the use of a
33           unique tag, and then overrides the volume_list field in a way that
34           allows the volume group to be activated only by the agent. To use
35           exclusive activation without clvmd, the volume_list in lvm.conf
36           must be initialized. If volume groups exist locally that are not
37           controlled by the cluster, such as the root volume group, make sure
38           those volume groups are listed in the volume_list so they will be
39           allowed to activate on bootup.
40
41           (optional, boolean, default false)
42
43       tag
44           If "exclusive" is set on a non clustered volume group, this
45           overrides the tag to be used.
46
47           (optional, string, default "pacemaker")
48
49       partial_activation
50           If set, the volume group will be activated even only partial of the
51           physical volumes available. It helps to set to true, when you are
52           using mirroring logical volumes.
53
54           (optional, string, default "false")
55

SUPPORTED ACTIONS

57       This resource agent supports the following actions (operations):
58
59       start
60           Starts the resource. Suggested minimum timeout: 30.
61
62       stop
63           Stops the resource. Suggested minimum timeout: 30.
64
65       status
66           Performs a status check. Suggested minimum timeout: 30.
67
68       monitor
69           Performs a detailed status check. Suggested minimum timeout: 30.
70           Suggested interval: 10.
71
72       methods
73           Suggested minimum timeout: 5.
74
75       meta-data
76           Retrieves resource agent metadata (internal use only). Suggested
77           minimum timeout: 5.
78
79       validate-all
80           Performs a validation of the resource configuration. Suggested
81           minimum timeout: 5.
82

EXAMPLE

84       The following is an example configuration for a LVM resource using the
85       crm(8) shell:
86
87           primitive p_LVM ocf:heartbeat:LVM \
88             params \
89               volgrpname=string \
90             op monitor depth="0" timeout="30" interval="10"
91

SEE ALSO

93       http://www.linux-ha.org/wiki/LVM_(resource_agent)
94

AUTHOR

96       Linux-HA contributors (see the resource agent source for information
97       about individual authors)
98
99
100
101resource-agents 3.9.2             03/24/2017              OCF_HEARTBEAT_LVM(7)
Impressum