Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

RedHat Cluster Suite question

Posted on 2012-04-06
8
Medium Priority
?
570 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 80

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 80

Accepted Solution

by:
arnold earned 1500 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 80

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 80

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 80

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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

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é.
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month12 days, 2 hours left to enroll

916 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