Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3686948
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/tools/shell/templates/ocfs2 b/tools/shell/templates/ocfs2
index dc0697627a..b11d1dbecf 100644
--- a/tools/shell/templates/ocfs2
+++ b/tools/shell/templates/ocfs2
@@ -1,85 +1,57 @@
%name ocfs2
# ocfs2 filesystem (cloned)
#
# This template generates a cloned instance of the ocfs2 filesystem
#
-# The filesystem should be on the device, unless clvm is used
-# To use clvm, pull it along with this template:
-# new myfs ocfs2 clvm
-#
-# NB: You need just one dlm and o2cb, regardless of how many
+# 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.
-%suggests clvm
-
%required
# Name the ocfs2 filesystem
# (for example: bigfs)
# NB: The clone is going to be named c-<id> (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"
monitor %_:id 20:40
clone c-%_:id %_:id
meta interleave="true" ordered="true"
primitive dlm ocf:pacemaker:controld
-
-clone dlm-clone dlm
- meta interleave="true" ordered="true"
-
+primitive clvm ocf:lvm2:clvmd
primitive o2cb ocf:ocfs2:o2cb
+group o2stage dlm clvm o2cb
+clone c-o2stage basegroup meta interleave="true"
-clone o2cb-clone o2cb
- meta interleave="true" ordered="true"
-
-colocation colo-o2cb-dlm inf: o2cb-clone dlm-clone
-
-order order-o2cb-dlm inf: dlm-clone o2cb-clone
-
-colocation colo-%_:id-o2cb inf: c-%_:id o2cb-clone
-
-order order-%_:id-o2cb inf: o2cb-clone c-%_:id
-
-# if there's clvm, generate some constraints too
-#
-
-%if %clvm
-colocation colo-clvm-dlm inf: clvm-clone dlm-clone
-
-order order-clvm-dlm inf: dlm-clone clvm-clone
-
-colocation colo-%_:id-%clvm:id inf: c-%_:id c-%clvm:id
-
-order order-%_:id-%clvm:id inf: c-%clvm:id c-%_:id
-%fi
+colocation colo-%_:id-o2stage inf: c-%_:id c-o2stage
+order order-%_:id-o2stage 0: c-o2stage c-%_:id
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Apr 21, 6:13 PM (1 d, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1662219
Default Alt Text
(2 KB)
Attached To
Mode
rP Pacemaker
Attached
Detach File
Event Timeline
Log In to Comment