From d835b2cae8abc71958b69362162e6a70c3d7ef63 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 08:48:59 +0200 Subject: Adding upstream version 4.6.0. Signed-off-by: Daniel Baumann --- scripts/clvm/main.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 scripts/clvm/main.yml (limited to 'scripts/clvm') diff --git a/scripts/clvm/main.yml b/scripts/clvm/main.yml new file mode 100644 index 0000000..8ecae60 --- /dev/null +++ b/scripts/clvm/main.yml @@ -0,0 +1,39 @@ +# Copyright (C) 2015 Kristoffer Gronlund +# +# License: GNU General Public License (GPL) +version: 2.2 +category: File System +shortdesc: Cluster-aware LVM (lvmlockd) +longdesc: | + Configure a cloned lvmlockd resource. + + NB: Only one lvmlockd resource is necessary, regardless + of how many volume groups are managed as resources. To + monitor volume groups after configuring lvmlockd, the wizard + for activating volume groups can be used. Refer to manpage + of lvmlockd for more information. + +parameters: + - name: install + type: boolean + shortdesc: Install packages for lvmlockd + value: false + +actions: + - install: + - lvm2-lockd + shortdesc: Install the lvm2-lockd package + when: install + - cib: | + primitive dlm ocf:pacemaker:controld + op start timeout=90s + op stop timeout=100s + + primitive lvmlockd ocf:heartbeat:lvmlockd + op start timeout=90s + op stop timeout=100s + + group g-clvm dlm lvmlockd + + clone c-clvm g-clvm + meta interleave=true ordered=true -- cgit v1.2.3