diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:48:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 06:48:59 +0000 |
commit | d835b2cae8abc71958b69362162e6a70c3d7ef63 (patch) | |
tree | 81052e3d2ce3e1bcda085f73d925e9d6257dec15 /templates/gfs2-base | |
parent | Initial commit. (diff) | |
download | crmsh-d835b2cae8abc71958b69362162e6a70c3d7ef63.tar.xz crmsh-d835b2cae8abc71958b69362162e6a70c3d7ef63.zip |
Adding upstream version 4.6.0.upstream/4.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'templates/gfs2-base')
-rw-r--r-- | templates/gfs2-base | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/templates/gfs2-base b/templates/gfs2-base new file mode 100644 index 0000000..d385ed4 --- /dev/null +++ b/templates/gfs2-base @@ -0,0 +1,46 @@ +%name gfs2-base + +# Copyright (C) 2009 Andrew Beekhof +# +# License: GNU General Public License (GPL) + +# gfs2 filesystem base (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 +# 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 + +%generate + +primitive dlm ocf:pacemaker:controld + +clone dlm-clone dlm + meta interleave="true" ordered="true" + +primitive gfs-controld ocf:pacemaker:controld + +clone gfs-clone gfs-controld + meta interleave="true" ordered="true" + +colocation colo-gfs-dlm inf: gfs-clone dlm-clone + +order order-gfs-dlm inf: dlm-clone gfs-clone + +# 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 +%fi |