summaryrefslogtreecommitdiffstats
path: root/templates/ocfs2
blob: ae07e8b0e563b243134b304f735e9e87abec2575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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