Solved

RedHat Cluster Suite question

Posted on 2012-04-06
8
556 Views
Last Modified: 2012-08-13
Hi,

Please provide a tested way to get the a node out of  RedHat Cluster Suite and then put it back.

Thanks.
0
Comment
Question by:g0all
  • 5
  • 3
8 Comments
 
LVL 77

Expert Comment

by:arnold
ID: 37817983
Which RedHat OS do you have 4,5,6?

Are you looking for the graphical or command line?

Graphical, you would access the GUI Cluster manager from and on the active node and delete the passive node.
0
 
LVL 1

Author Comment

by:g0all
ID: 37818429
Hi Arnold,

It's RHEL 5. I'm looking for CLI commands.
0
 
LVL 77

Accepted Solution

by:
arnold earned 500 total points
ID: 37818840
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html-single/Cluster_Administration/index.html#s1-admin-manage-nodes-conga-CA

5.5.3.1. Removing a Member from a Cluster at the Command-Line
clusvcadm -r cluster_service_name -m cluster_node_name
Transfer all from the node you want to remove first
Stop all cluster related services on the node you want to remove
Disable the cluster related services from starting using chkconfig servicename off
Now to remove node
ccs_tool delnode cluster_node_name

Oops, how important is the tested part of your question as it relates to the command line described above?
Used the GUI to perform the setup/adjustments.
0
 
LVL 1

Author Comment

by:g0all
ID: 37819419
I've had the documentation, but from my experience not sure the documentation covers everything, that's why I asked for experience.

Thing is I have to do it on production with no GUI.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 77

Expert Comment

by:arnold
ID: 37819437
As long as the production system have the graphical libraries installed, you could ssh -X user@production
And the send the GUI interface through the X11 tunnel of the sash connection back to the X server on the system from which you initiate a connection.
0
 
LVL 1

Author Comment

by:g0all
ID: 37819439
Thanks arnold, but situation is much complicated. I have no X installed and cannot switch runlevels due permission issues.

I have to use what I have now, the CLI.
0
 
LVL 77

Expert Comment

by:arnold
ID: 37819454
I'm not talking about changing run levels on the production system.  How are you accessingtheoroduction system to effect the changes? Are you on console, are are you remoting in using ssh?

The ccs_tool have -c sourced isle -o outputfile delnode nodetoremove that you can test by copying the current cluster.conf to another location and then run the command  using the different location such that the live cluster.conf is not altered.  Unfortunately it sounds that you do not have a test environment where you can test this.
0
 
LVL 77

Expert Comment

by:arnold
ID: 37819649
ccs_tool help


Note that "create" on its own will not create a valid configuration file.
Fence agents and nodes will need to be added to it before handing it over
to cman.

eg:
  ccs_tool create MyCluster
  ccs_tool addfence apc fence_apc ipaddr=apc.domain.net user=apc password=apc
  ccs_tool addnode node1 -n 1 -f apc port=1
  ccs_tool addnode node2 -n 2 -f apc port=2
  ccs_tool addnode node3 -n 3 -f apc port=3
  ccs_tool addnode node4 -n 4 -f apc port=4



instead of addnode, you would use delnode and the node will be removed from the cluster.conf. file

Test this where cluster is not running as a test to see whether changes to the cluster.conf will be done.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now