Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F4833057
lvm-plain.sh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
lvm-plain.sh
View Options
# 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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 20, 8:38 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2017254
Default Alt Text
lvm-plain.sh (1 KB)
Attached To
Mode
rR Resource Agents
Attached
Detach File
Event Timeline
Log In to Comment