OCF_HEARTBEAT_CRYPT(7) | OCF resource agents | OCF_HEARTBEAT_CRYPT(7) |
ocf_heartbeat_crypt - LUKS/crypt resource agent
crypt [start | stop | monitor | meta-data | validate-all]
This is a LUKS/crypt Resource Agent managing encrypted devices via cryptsetup(8). The agent imposes limitations on device types supported: luks, luks[1..N].
encrypted_dev
Although it can be defined as a block device path (e.g. /dev/sdh), the UUID should be preferred over the block device path to allow for the unique discovery of the crypt backing device given the volatile nature of /dev entries (e.g. /dev/sdh on one node may be /dev/sdg on another).
Only define as block device path if you know what you are doing.
(unique, required, string, no default)
crypt_dev
(unique, required, string, no default)
key_file
(required, string, no default)
crypt_type
This parameter affirms the encryption format as of the crypt metadata thus allowing for safety measures when starting the encrypted resource.
(required, string, no default)
force_stop
(optional, boolean, 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 crypt resource using the crm(8) shell:
primitive p_crypt ocf:heartbeat:crypt \
params \
encrypted_dev=string \
crypt_dev=string \
key_file=string \
crypt_type=string \
op monitor timeout="20s" interval="10s" depth="0"
The following is an example configuration for a crypt resource using pcs(8)
pcs resource create p_crypt ocf:heartbeat:crypt \
encrypted_dev=string \
crypt_dev=string \
key_file=string \
crypt_type=string \
op monitor timeout="20s" interval="10s" 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 |