Skip to content

Commit

Permalink
Add colocation and ordering for clvm
Browse files Browse the repository at this point in the history
bsc#1222440
jsc#DOCTEAM-1357
  • Loading branch information
tahliar committed May 1, 2024
1 parent 3cf5ca3 commit 8fb3f09
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions xml/ha_cluster_lvm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,47 @@
</listitem>
<listitem>
<para>
Use shared activation mode for &ocfs; and add it to the cloned
<literal>g-storage</literal> group:
Use shared activation mode for &ocfs;:
</para>
<screen>&prompt.root;<command>crm configure primitive vg1 LVM-activate \
params vgname=vg1 vg_access_mode=lvmlockd activation_mode=shared \
op start timeout=90s interval=0 \
op stop timeout=90s interval=0 \
op monitor interval=30s timeout=90s</command>
&prompt.root;<command>crm configure modgroup g-storage add vg1</command></screen>
op monitor interval=30s timeout=90s</command></screen>
</listitem>
</itemizedlist>
</step>
<step>
<para>
Make sure the VG can only be activated on nodes where the DLM resource
is already running:
</para>
<itemizedlist>
<listitem>
<para>
For a single VG using shared activation mode, you can add the VG
to the cloned <literal>g-storage</literal> group, which already has
internal colocation and order constraints:
</para>
<screen>&prompt.root;<command>crm configure modgroup g-storage add vg1</command></screen>
</listitem>
<listitem>
<para>
For a single VG using exclusive activation mode, add constraints directly:
</para>
<screen>&prompt.root;<command>crm configure colocation col-vg-with-dlm inf: vg1 cl-dlm</command>
&prompt.root;<command>crm configure order o-dlm-before-vg Mandatory: cl-dlm vg1</command></screen>
</listitem>
<listitem>
<para>
For multiple VGs using either activation mode, you can add constraints
that apply to batches of resources:
</para>
<screen>&prompt.root;<command>crm configure colocation col-vg-with-dlm inf: ( vg1 vg2 ) cl-dlm</command>
&prompt.root;<command>crm configure order o-dlm-before-vg Mandatory: cl-dlm ( vg1 vg2 )</command></screen>
</listitem>
</itemizedlist>
</step>
<step>
<para>
Check if the resources are running well:
Expand Down

0 comments on commit 8fb3f09

Please sign in to comment.