Red Hat Bugzilla – Bug 179627
Enhance cman initscript to do cman_tool leave remove on stop
Last modified: 2009-04-24 10:38:32 EDT
Description of problem:
Customers are asking for the ability to take down 2 nodes at a time in a four
node cluster for maintainance. If the init script did a 'cman_tool leave
remove' instead of just 'cman_tool leave', this would be possible, right?
Note, a 'service cman restart' should probably only do a "leave", while a
'service cman stop' should do a "leave remove".
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Created attachment 123985 [details]
This patch should do the trick.
Patch makes 'stop' do 'cman_tool leave remove' and leaves 'restart' to do
The patch looks OK to me. That than an if/then/else you could, of course just do
cman_tool leave $2
yeah, but i wouldn't want someone doing 'service cman stop bumpkin'... wanted to check for valid
ok, you should now be able to bring a cluster down to two nodes by shutting down
the other machines...