Solved

RedHat Cluster Suite question

Posted on 2012-04-06
8
553 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 76

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 76

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 76

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 76

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 76

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

760 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

19 Experts available now in Live!

Get 1:1 Help Now