Skip to content

Commit

Permalink
Add step for multiple cluster MD devices (#425)
Browse files Browse the repository at this point in the history
* Add step for multiple cluster MD devices

bsc#1235513
jsc#DOCTEAM-1660

* Update from tech review
  • Loading branch information
tahliar committed Jan 24, 2025
1 parent ad6eca8 commit 77538d0
Showing 1 changed file with 30 additions and 12 deletions.
42 changes: 30 additions & 12 deletions xml/ha_cluster_md.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ ARRAY /dev/md0 UUID=1d70f103:49740ef1:af2afce5:fcf6a489</screen>
<para>Configure a CRM resource as follows:</para>
<procedure>
<step>
<para>Create a <systemitem>Raid1</systemitem> primitive:</para>
<para>Create a <systemitem>Raid1</systemitem> primitive for the Cluster MD device:</para>
<screen>&prompt.crm.conf;<command>primitive raider Raid1 \
params raidconf="/etc/mdadm.conf" raiddev=/dev/md0 \
force_clones=true \
Expand All @@ -164,17 +164,35 @@ ARRAY /dev/md0 UUID=1d70f103:49740ef1:af2afce5:fcf6a489</screen>
op stop timeout=20s interval=0</command></screen>
</step>
<step>
<para>Add the <systemitem>raider</systemitem> resource to the base group for storage that you have created for
DLM:</para>
<screen>&prompt.crm.conf;<command>modgroup g-storage add raider</command></screen>
<para>The <command>add</command> sub-command appends the new group
member by default. </para>
<para>
If not already done, clone the <literal>g-storage</literal> group so that it runs on all nodes:
</para>
<screen>&prompt.crm.conf;<command>clone cl-storage g-storage \
meta interleave=true target-role=Started</command></screen>
</step>
<para>
Make sure the <systemitem>Raid1</systemitem> primitive can only run on nodes where the
DLM resource is already running:
</para>
<itemizedlist>
<listitem>
<para>
You can add a single <systemitem>Raid1</systemitem> primitive to the
<literal>g-storage</literal> group described in <xref linkend="pro-dlm-resources"/>:
</para>
<screen>&prompt.crm.conf;<command>modgroup g-storage add raider</command></screen>
<para>
This group already has internal colocation and order constraints.
</para>
</listitem>
<listitem>
<para>
Do <emphasis>not</emphasis> add multiple <systemitem>Raid1</systemitem> 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 <xref linkend="pro-dlm-multiple-resources"/>:
</para>
<screen>&prompt.crm.conf;<command>crm configure clone cl-raider1 raider1 meta interleave=true</command>
&prompt.crm.conf;<command>crm configure clone cl-raider2 raider2 meta interleave=true</command>
&prompt.crm.conf;<command>crm configure colocation col-cmd-with-dlm inf: ( cl-raider1 cl-raider2 ) cl-dlm</command>
&prompt.crm.conf;<command>crm configure order o-dlm-before-cmd Mandatory: cl-dlm ( cl-raider1 cl-raider2 )</command></screen>
</listitem>
</itemizedlist>
</step>
<step>
<para>Review your changes with
<command>show</command>.</para>
Expand Down

0 comments on commit 77538d0

Please sign in to comment.