OCF_HEARTBEAT_MDRAID - Online Linux Manual PageSection : 7
Updated : 03/25/2021
Source : resource-agents UNKNOWN
Note : OCF resource agents

NAMEocf_heartbeat_mdraid − Manages Linux software RAID (MD) devices on shared storage

SYNOPSISmdraid [start | stop | monitor | meta−data | validate−all]

DESCRIPTIONThis resource agent manages Linux software RAID (MD) devices on a shared storage medium ensuring that non−clustered MD arrays are prohibited from starting cloned (which would cause data corruption (e​.g​., on raid6 arrays) unless forced (see force_clones parameter)​. Clustered MD RAID layouts (see below) will be discovered and allowed cloning by default; no need to set force_clones​. It uses mdadm(8) to start, stop, and monitor the MD devices​. Supported clustered (i​.e​., clonable active−active) arrays are linear, raid0, and clustered raid1/raid10 (i​.e​. mdadm(8) created with −−bitmap=clustered)​.

SUPPORTED PARAMETERSmdadm_conf The MD RAID configuration file (e​.g​., /etc/mdadm​.conf)​. (required, string, no default) md_dev MD array block device to use (e​.g​., /dev/md0 or /dev/md/3)​. With shared access to the array's storage, this should preferably be a clustered raid1 or raid10 array created with −−bitmap=clustered, assuming its resource will be cloned (i​.e​., active−active access)​. Be sure to disable auto−assembly for the resource−managed arrays! (required, string, no default) force_stop If processes or kernel threads are using the array, it cannot be stopped​. We will try to stop processes, first by sending TERM and then, if that doesn't help in seconds, using KILL​. The lsof(8) program is required to get the list of array users​. Of course, the kernel threads cannot be stopped this way​. If the processes are critical for data integrity, then set this parameter to false​. Note that in that case the stop operation will fail and the node will be fenced​. (optional, boolean, default false) wait_for_udev Wait until udevd creates a device in the start operation​. On a normally loaded host this should happen quickly, but you may be unlucky​. If you are not using udev set this to "no"​. (optional, boolean, default true) force_clones Activating the same, non−clustered MD RAID array (i​.e​. single−host raid1/4/5/6/10) on multiple nodes at the same time will result in data corruption and thus is forbidden by default​. A safe example could be an (exotic) array that is only named identically across all nodes, but is in fact based on distinct (non−shared) storage​. Only set this to "true" if you know what you are doing! (optional, boolean, default false)

SUPPORTED ACTIONSThis resource agent supports the following actions (operations): start Starts the resource​. Suggested minimum timeout: 20s​. stop Stops the resource​. Suggested minimum timeout: 20s​. monitor Performs a detailed status check​. Suggested minimum timeout: 20s​. Suggested interval: 10s​. validate−all Performs a validation of the resource configuration​. Suggested minimum timeout: 5s​. meta−data Retrieves resource agent metadata (internal use only)​. Suggested minimum timeout: 5s​.

EXAMPLE CRM SHELLThe following is an example configuration for a mdraid resource using the crm(8) shell: primitive p_mdraid ocf:heartbeat:mdraid \ params \ mdadm_conf=string \ md_dev=string \ op monitor depth="0" timeout="20s" interval="10s"

EXAMPLE PCSThe following is an example configuration for a mdraid resource using pcs(8) pcs resource create p_mdraid ocf:heartbeat:mdraid \ mdadm_conf=string \ md_dev=string \ op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s"

SEE ALSO­http://clusterlabs.org/

AUTHORClusterLabs contributors (see the resource agent source for information about individual authors)
0
Johanes Gumabo
Data Size   :   14,716 byte
man-ocf_heartbeat_mdraid.7Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 200,410
Visitor ID   :     :  
Visitor IP   :   3.145.88.111   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.