diff --git a/shell/templates/clvm b/shell/templates/clvm index 615948ddc8..1d90ef92fe 100644 --- a/shell/templates/clvm +++ b/shell/templates/clvm @@ -1,46 +1,48 @@ %name clvm # Cluster-aware lvm (cloned) # # This template generates a cloned instance of clvm and one # volume group # # NB: You need just one clvm, regardless of how many volume # groups. In other words, you can use this template only for one # volume group and to make another one, you'll have to edit the # resulting configuration yourself. %required # Name the volume group # (for example: vg-1) # NB: The clone is going to be named c- (e.g. c-vg-1) %% id # The volume group name %% volgrpname %generate +primitive dlm ocf:pacemaker:controld + primitive clvm ocf:lvm2:clvmd params daemon_timeout="30" primitive cmirror ocf:lvm2:cmirrord params daemon_timeout="30" -group lvm2stage clvm cmirror +group lvm2stage dlm clvm cmirror clone c-lvm2stage lvm2stage meta interleave="true" ordered="true" primitive %_:id ocf:heartbeat:LVM params volgrpname="%_:volgrpname" clone c-%_:id %_:id meta interleave="true" ordered="true" colocation colo-%_:id-lvm2stage inf: c-%_:id c-lvm2stage order order-%_:id-lvm2stage inf: c-lvm2stage c-%_:id