Solved

RedHat Cluster Suite question

Posted on 2012-04-06
8
564 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 79

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 79

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
Stressed Out?

Watch some penguins on the livecam!

 
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
 
LVL 79

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 79

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 79

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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses

622 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