From dd1a569030b3028cfca014ff68a4c9a81aa503e9 Mon Sep 17 00:00:00 2001 From: Tahlia Richardson <3069029+tahliar@users.noreply.github.com> Date: Fri, 24 Jan 2025 13:40:19 +1000 Subject: [PATCH] Add step for multiple cluster MD devices (#425) * Add step for multiple cluster MD devices bsc#1235513 jsc#DOCTEAM-1660 * Update from tech review --- xml/ha_cluster_md.xml | 46 ++++++++++++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/xml/ha_cluster_md.xml b/xml/ha_cluster_md.xml index 39c7ad278..b399df939 100644 --- a/xml/ha_cluster_md.xml +++ b/xml/ha_cluster_md.xml @@ -155,26 +155,44 @@ ARRAY /dev/md0 UUID=1d70f103:49740ef1:af2afce5:fcf6a489 Configure a CRM resource as follows: - Create a Raid1 primitive: - &prompt.crm.conf;primitive raider Raid1 \ + Create a Raid1 primitive for the Cluster MD device: + &prompt.crm.conf;primitive raider Raid1 \ params raidconf="/etc/mdadm.conf" raiddev=/dev/md0 \ force_clones=true \ op monitor timeout=20s interval=10 \ op start timeout=20s interval=0 \ - op stop timeout=20s interval=0 + op stop timeout=20s interval=0 - Add the raider resource to the base group for storage that you have created for - DLM: - &prompt.crm.conf;modgroup g-storage add raider - The add sub-command appends the new group - member by default. - - If not already done, clone the g-storage group so that it runs on all nodes: - - &prompt.crm.conf;clone cl-storage g-storage \ - meta interleave=true target-role=Started - + + Make sure the Raid1 primitive can only run on nodes where the + DLM resource is already running: + + + + + You can add a single Raid1 primitive to the + g-storage group described in : + +&prompt.crm.conf;modgroup g-storage add raider + + This group already has internal colocation and order constraints. + + + + + Do not add multiple Raid1 primitives to + the group, because this creates a dependency between the Cluster MD devices. + For multiple devices, clone the primitives and colocate them with the independent + DLM resource described in : + +&prompt.crm.conf;crm configure clone cl-raider1 raider1 meta interleave=true +&prompt.crm.conf;crm configure clone cl-raider2 raider2 meta interleave=true +&prompt.crm.conf;crm configure colocation col-cmd-with-dlm inf: ( cl-raider1 cl-raider2 ) cl-dlm +&prompt.crm.conf;crm configure order o-dlm-before-cmd Mandatory: cl-dlm ( cl-raider1 cl-raider2 ) + + + Review your changes with show.