[ClusterLabs] Q: Use crm_simulate to simulate stopping maintenance mode?
lars.ellenberg at linbit.com
Wed Jun 10 15:50:28 EDT 2015
On Wed, Jun 10, 2015 at 03:01:30PM +0200, Ulrich Windl wrote:
> I wonder: A system is running in maintenance mode. Before disabling
> maintenance-mode, I'd like to make sure that no node will be fenced as
> one of the first actions. Is it possible to find out what will happen
> when maintenance mode is turned off? If so, how? ;-)
crm(live)configure# property maintenance-mode=off
crm(live)configure# simulate nograph scores actions
which does the equivalent of
cibadmin -Q |
sed -e "$some_magic_sed_expression_to_change_or_add_maintenance_mode_setting" |
crm_simulate -p --run --simulate --show-scores \
You get the idea.
If you happen to have an older crm shell,
use "ptest" instead of simulate.
# ptest vvv
: Lars Ellenberg
: http://www.LINBIT.com | Your Way to High Availability
: DRBD, Linux-HA and Pacemaker support and consulting
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
More information about the Users