3
# Copyright (C) 2009 Dejan Muhamedagic
5
# License: GNU General Public License (GPL)
7
# ocfs2 filesystem (cloned)
9
# This template generates a cloned instance of the ocfs2 filesystem
11
# NB: You need only one dlm/o2cb/clvm, regardless of how many
12
# filesystems. In other words, you can use this template only for
13
# one filesystem and to make another one, you'll have to edit the
14
# resulting configuration yourself.
18
# Name the ocfs2 filesystem (for example: bigfs)
19
# The filesystem resource will be in a cloned group with the rest
20
# of the prerequisite resources. The clone is going to be named c-<id>
33
# optional parameters for the ocfs2 filesystem
43
primitive %_:id ocf:heartbeat:Filesystem
45
directory="%_:directory"
48
opt options="%_:options"
54
primitive dlm ocf:pacemaker:controld
58
primitive clvm ocf:lvm2:clvmd
62
primitive cmirror ocf:lvm2:cmirrord
66
primitive o2cb ocf:ocfs2:o2cb
70
group g-%_:id dlm clvm o2cb cmirror %_:id
72
clone c-%_:id g-%_:id meta interleave="true"