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 /scripts/clvm/main.yml | |
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 '')
-rw-r--r-- | scripts/clvm/main.yml | 39 |
1 files changed, 39 insertions, 0 deletions
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 |