Skip to content

Commit

Permalink
Add more op monitors to the NFS guide (#430)
Browse files Browse the repository at this point in the history
Based on PR#429
See also bsc#1231386
  • Loading branch information
tahliar committed Feb 7, 2025
1 parent d033be9 commit b3970ed
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions xml/article_nfs_storage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -554,15 +554,17 @@ include /etc/drbd.d;</screen>
Create a primitive for the NFS client states on <literal>/dev/drbd0</literal>:
</para>
<screen>&prompt.crm.conf;<command>primitive fs-nfs-state Filesystem \
params device=/dev/drbd0 directory=/var/lib/nfs fstype=ext4</command></screen>
params device=/dev/drbd0 directory=/var/lib/nfs fstype=ext4 \
op monitor timeout=40s interval=20s</command></screen>
</step>
<step>
<para>
Create a primitive for the file system to be exported on
<literal>/dev/drbd1</literal>:
</para>
<screen>&prompt.crm.conf;<command>primitive fs-nfs-share Filesystem \
params device=/dev/drbd1 directory=/srv/nfs/share fstype=ext4</command></screen>
params device=/dev/drbd1 directory=/srv/nfs/share fstype=ext4 \
op monitor timeout=40s interval=20s</command></screen>
<para>
<emphasis>Do not</emphasis> commit this configuration until
after you add the colocation and order constraints.
Expand Down Expand Up @@ -732,7 +734,10 @@ include /etc/drbd.d;</screen>
<para>
Create a primitive for the virtual IP address:
</para>
<screen>&prompt.crm.conf;<command>primitive vip-nfs IPaddr2 params ip=&nfs-vip-exports;</command></screen>
<screen>&prompt.crm.conf;<command>primitive vip-nfs IPaddr2 \
params ip=&nfs-vip-exports; \
op monitor timeout=20s interval=10s
</command></screen>
</step>
<step>
<para>
Expand Down Expand Up @@ -887,7 +892,8 @@ include /etc/drbd.d;</screen>
Create a primitive for the file system to be exported on <literal>/dev/drbd2</literal>:
</para>
<screen>&prompt.crm.conf;<command>primitive fs-nfs-share2 Filesystem \
params device="/dev/drbd2" directory="/srv/nfs/share2" fstype=ext4</command></screen>
params device="/dev/drbd2" directory="/srv/nfs/share2" fstype=ext4 \
op monitor timeout=40s interval=20s</command></screen>
</step>
<step>
<para>
Expand Down

0 comments on commit b3970ed

Please sign in to comment.