Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add step for multiple cluster MD devices #425

Merged
merged 2 commits into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading