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): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 123985 [details] This patch should do the trick. Patch makes 'stop' do 'cman_tool leave remove' and leaves 'restart' to do 'cman_tool leave'
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 option.
ok, you should now be able to bring a cluster down to two nodes by shutting down the other machines...