%name ocfs2 # ocfs2 filesystem (cloned) # # This template generates a cloned instance of the ocfs2 filesystem # # NB: You need only one dlm/o2cb/clvm, 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) # The filesystem resource will be in a cloned group with the rest # of the prerequisite resources. The clone is going to be named c- # (e.g. c-bigfs) %% id # The mount point %% 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 30s:60s primitive dlm ocf:pacemaker:controld op start timeout=90s op stop timeout=100s primitive clvm ocf:lvm2:clvmd op start timeout=90s op stop timeout=100s primitive cmirror ocf:lvm2:cmirrord op start timeout=90s op stop timeout=100s primitive o2cb ocf:ocfs2:o2cb op start timeout=90s op stop timeout=100s group g-%_:id dlm clvm o2cb cmirror %_:id clone c-%_:id g-%_:id meta interleave="true"