~ubuntu-branches/ubuntu/vivid/crmsh/vivid-proposed

« back to all changes in this revision

Viewing changes to templates/ocfs2

  • Committer: Package Import Robot
  • Author(s): Martin Loschwitz
  • Date: 2013-04-19 07:08:47 UTC
  • Revision ID: package-import@ubuntu.com-20130419070847-adka0ljtpr04pkrl
Tags: upstream-1.2.5+hg953
ImportĀ upstreamĀ versionĀ 1.2.5+hg953

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%name ocfs2
 
2
 
 
3
# Copyright (C) 2009 Dejan Muhamedagic
 
4
#
 
5
# License: GNU General Public License (GPL)
 
6
 
 
7
# ocfs2 filesystem (cloned)
 
8
#
 
9
# This template generates a cloned instance of the ocfs2 filesystem
 
10
#
 
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.
 
15
 
 
16
%required
 
17
 
 
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>
 
21
# (e.g. c-bigfs)
 
22
 
 
23
%% id 
 
24
 
 
25
# The mount point
 
26
 
 
27
%% directory 
 
28
 
 
29
# The device
 
30
 
 
31
%% device 
 
32
 
 
33
# optional parameters for the ocfs2 filesystem
 
34
 
 
35
%optional
 
36
 
 
37
# mount options
 
38
 
 
39
%% options
 
40
 
 
41
%generate
 
42
 
 
43
primitive %_:id ocf:heartbeat:Filesystem
 
44
        params
 
45
                directory="%_:directory"
 
46
                fstype="ocfs2"
 
47
                device="%_:device"
 
48
                opt options="%_:options"
 
49
        op start timeout=60s
 
50
        op stop timeout=60s
 
51
 
 
52
monitor %_:id 30s:60s
 
53
 
 
54
primitive dlm ocf:pacemaker:controld
 
55
        op start timeout=90s
 
56
        op stop timeout=100s
 
57
 
 
58
primitive clvm ocf:lvm2:clvmd
 
59
        op start timeout=90s
 
60
        op stop timeout=100s
 
61
 
 
62
primitive cmirror ocf:lvm2:cmirrord
 
63
        op start timeout=90s
 
64
        op stop timeout=100s
 
65
 
 
66
primitive o2cb ocf:ocfs2:o2cb
 
67
        op start timeout=90s
 
68
        op stop timeout=100s
 
69
 
 
70
group g-%_:id dlm clvm o2cb cmirror %_:id
 
71
 
 
72
clone c-%_:id g-%_:id meta interleave="true"