Bug 179627 - Enhance cman initscript to do cman_tool leave remove on stop
Summary: Enhance cman initscript to do cman_tool leave remove on stop
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Cluster Suite
Classification: Retired
Component: cman
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Christine Caulfield
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-01 18:57 UTC by Jonathan Earl Brassow
Modified: 2009-04-24 14:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-04-24 14:38:32 UTC
Embargoed:


Attachments (Terms of Use)
This patch should do the trick. (535 bytes, patch)
2006-02-01 19:26 UTC, Jonathan Earl Brassow
no flags Details | Diff

Description Jonathan Earl Brassow 2006-02-01 18:57:21 UTC
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:

Comment 1 Jonathan Earl Brassow 2006-02-01 19:26:22 UTC
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'

Comment 3 Christine Caulfield 2006-02-02 16:21:20 UTC
The patch looks OK to me. That than an if/then/else you could, of course just do 

   cman_tool leave $2

Comment 4 Jonathan Earl Brassow 2006-02-02 16:57:52 UTC
yeah, but i wouldn't want someone doing 'service cman stop bumpkin'... wanted to check for valid 
option.

Comment 5 Jonathan Earl Brassow 2006-02-02 17:37:02 UTC
ok, you should now be able to bring a cluster down to two nodes by shutting down
the other machines...



Note You need to log in before you can comment on or make changes to this bug.