summaryrefslogtreecommitdiffstats
path: root/scripts/lvm-drbd
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 06:48:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 06:48:59 +0000
commitd835b2cae8abc71958b69362162e6a70c3d7ef63 (patch)
tree81052e3d2ce3e1bcda085f73d925e9d6257dec15 /scripts/lvm-drbd
parentInitial commit. (diff)
downloadcrmsh-upstream.tar.xz
crmsh-upstream.zip
Adding upstream version 4.6.0.upstream/4.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--scripts/lvm-drbd/main.yml62
1 files changed, 62 insertions, 0 deletions
diff --git a/scripts/lvm-drbd/main.yml b/scripts/lvm-drbd/main.yml
new file mode 100644
index 0000000..f435be7
--- /dev/null
+++ b/scripts/lvm-drbd/main.yml
@@ -0,0 +1,62 @@
+# Copyright (C) 2016 Kristoffer Gronlund
+#
+# License: GNU General Public License (GPL)
+version: 2.2
+category: File System
+shortdesc: LVM Group on DRBD
+longdesc: |
+ Configure a LVM resource group on top of DRBD.
+
+ A DRBD primitive and Multi-state resource is used to replicate
+ data between the nodes.
+
+ LVM and file system resources are used to make the file systems
+ available on the Primary node.
+
+ For more details on what needs to be prepared to use
+ this wizard, see the Highly Available NFS Storage with
+ DRBD and Pacemaker section of the SUSE Linux Enterprise
+ High Availability Extension 12 SP1 documentation.
+
+parameters:
+ - name: group_id
+ type: resource
+ required: true
+ shortdesc: Group Resource ID
+ value: g-lvm
+
+include:
+ - name: drbd
+ script: drbd
+ required: true
+ parameters:
+ - name: drbd_resource
+ value: vg1
+
+ - name: lvm
+ script: lvm
+ required: true
+ parameters:
+ - name: volgrpname
+ value: vg1
+
+ - name: example_fs
+ shortdesc: Example File System Resource
+ script: filesystem
+ required: false
+ parameters:
+ - name: device
+ value: /dev/example
+ - name: directory
+ value: /srv/example
+ - name: fstype
+ value: xfs
+
+actions:
+ - include: drbd
+ - include: lvm
+ - shortdesc: Configure LVM and File System Group and Constraints
+ cib: |
+ group {{group_id}} {{lvm:id}} {{#example_fs:id}}{{example_fs:id}}{{/example_fs:id}}
+ order o-drbd_before_{{group_id}} Mandatory: ms-{{drbd:id}}:promote {{group_id}}:start
+ colocation c-{{group_id}}_on_drbd inf: {{group_id}} ms-{{drbd:id}}:Master