Name

ocf:Raid1 — Manages Linux software RAID (MD) devices on shared storage

Synopsis

[OCF_RESKEY_raidconf=string] [OCF_RESKEY_raiddev=string] [OCF_RESKEY_homehost=string] [OCF_RESKEY_force_stop=boolean] Raid1 [start | stop | status | monitor | validate-all | meta-data]

Description

This resource agent manages Linux software RAID (MD) devices on a shared storage medium. It uses mdadm(8) to start, stop, and monitor the MD devices. Raidtools are supported, but deprecated. See https://raid.wiki.kernel.org/index.php/Linux_Raid for more information.

Supported Parameters

OCF_RESKEY_raidconf=RAID config file

The RAID configuration file, e.g. /etc/mdadm.conf.

OCF_RESKEY_raiddev=block device

One or more block devices to use, space separated. Alternatively, set to "auto" to manage all devices specified in raidconf.

OCF_RESKEY_homehost=Homehost for mdadm

The value for the homehost directive; this is an mdadm feature to protect RAIDs against being activated by accident. It is recommended to create RAIDs managed by the cluster with "homehost" set to a special value, so they are not accidentially auto-assembled by nodes not supposed to own them.

OCF_RESKEY_force_stop=force stop processes using the array

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 3 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.


SUSE Linux Enterprise High Availability Extension High Availability Guide 11 SP3