diff options
Diffstat (limited to 'templates/ocfs2')
-rw-r--r-- | templates/ocfs2 | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/templates/ocfs2 b/templates/ocfs2 new file mode 100644 index 0000000..ae07e8b --- /dev/null +++ b/templates/ocfs2 @@ -0,0 +1,61 @@ +%name ocfs2 + +# Copyright (C) 2009 Dejan Muhamedagic +# +# License: GNU General Public License (GPL) + +# ocfs2 filesystem (cloned) +# +# This template generates a cloned instance of the ocfs2 filesystem +# +# NB: You need only one dlm, regardless of how many +# filesystems. In other words, you can use this template only for +# one filesystem and to make another one, you'll have to edit the +# resulting configuration yourself. + +%required + +# Name the ocfs2 filesystem (for example: bigfs) +# Example: +# %% id bigfs +%% id + +# The mount point +# Example: +# %% directory /mnt/bigfs +%% directory + +# The device + +%% device + +# optional parameters for the ocfs2 filesystem + +%optional + +# mount options + +%% options + +%generate + +primitive %_:id ocf:heartbeat:Filesystem + params + directory="%_:directory" + fstype="ocfs2" + device="%_:device" + opt options="%_:options" + op start timeout=60s + op stop timeout=60s + +monitor %_:id 20s:40s + +primitive dlm ocf:pacemaker:controld + op start timeout=90s + op stop timeout=100s + op monitor interval=60s timeout=60s + +clone base-%_:id dlm meta interleave="true" +clone clusterfs-%_:id clusterfs meta interleave="true" +order base-then-clusterfs-%_:id inf: base-%_:id clusterfs-%_:id +colocation clusterfs-with-base-%_:id inf: clusterfs-%_:id base-%_:id |