/usr/lib/ocf/lib/heartbeat/lvm-plain.sh is in resource-agents 1:4.1.0~rc1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | # lvm-plain.sh
#
# Description: LVM management with no VG protection
#
#
# Author: Dejan Muhamedagic
# Support: users@clusterlabs.org
# License: GNU General Public License (GPL)
# Copyright: (C) 2017 Dejan Muhamedagic
#
#
# interface to the LVM RA
#
# apart from the standard vgchange options,
# this is mostly a template
# please copy and modify appropriately
# when adding new VG protection mechanisms
# lvm_init sets the vgchange options:
# vgchange_activate_options
# vgchange_deactivate_options
# (for both activate and deactivate)
lvm_init() {
vgchange_activate_options="-aly"
vgchange_deactivate_options="-aln"
# for clones (clustered volume groups), we'll also have to force
# monitoring, even if disabled in lvm.conf.
if ocf_is_clone; then
vgchange_activate_options="$vgchange_activate_options --monitor y"
fi
}
lvm_validate_all() {
: nothing to validate
}
lvm_status() {
return 0
}
lvm_pre_activate() {
return 0
}
lvm_post_activate() {
local rc=$1
return $rc
}
lvm_pre_deactivate() {
return 0
}
lvm_post_deactivate() {
local rc=$1
return $rc
}
# vim:tabstop=4:shiftwidth=4:textwidth=0:wrapmargin=0
|