Skip to main content

IBM Cluster Systems Management: An installation guide

A homogeneous environment

Harish Chauhan (hchauhan@in.ibm.com), Linux Architect, IBM 
Photo of Harish Chauhan
Harish has been with IBM since 1998 and has 14 years of experience. During his last eight years with IBM, he has spent five years at the India Research Lab and one year at the IBM T.J.Watson Research Center. Harish has been leading the Linux Center of Competency in Bangalore, India for the past year and a half. You can contact him at hchauhan@in.ibm.com.

Summary:  As you all know, managing a large set of machines in an IT industry, for various activities, is very difficult. The IBM® Cluster Systems Management (CSM) tool simplifies this process. Follow along as IBM Linux™ Architect Harish Chauhan provides step-by-step instructions on how to install the CSM tool.

Date:  20 May 2005
Level:  Introductory
Activity:  198 views

Introduction

A system administrator can easily manage a large cluster of machines with ease and comfort. Beginners who have very little knowledge about setting up a CSM environment can use this article as a guide. The main example considers a homogeneous environment, which means that all the machines in a cluster have the same operating system installed.


Hardware, software, and setup

Use the following hardware and software for your setup:

  • xSeries® server model: x345 (8670-IQS) with dual processors
  • IBM CSM Version 1.4.0.13
  • Red Hat Enterprise Linux (RHEL) Advanced Server Version 3.0 with update 3 or 4 / SUSE Linux Enterprise Server for POWER (SLES) 9.1
  • i386 architecture


Figure 1. Setup diagram
Setup Diagram

Follow these steps to properly install the CMS tool:

  1. Follow the installation and configuration information for your hardware and software.
  2. Set up the network connectivity among the machines, as shown in Figure 1.
  3. Set up the CSM master:
    1. Identify and designate the CSM master machine. In your setup, choose master.my.com as your CSM master.
    2. Update the /etc/hosts file for the hostname/IP details.
      10.10.10.100		master.my.com	my	# IP master
      10.10.10.1		node1.my.com	node1	# IP of 1st node
      10.10.10.2		node2.my.com	node2	# IP of 2nd node
      		

    3. Insert the CSM CD in the DVD/CDROM drive.
      1. Extract the CSM code into the /dump/csm_dump directory.
        #tar xvf /dump/csm_dump/csm-linux-1.4.0.13.i386.tar.gz
        		 

      2. Copy the Red Hat CDs into the /dump/rereqs directory, as some Red Hat RPMs are required prerequisites for the CSM master.
      3. Download autoupdate rpms from http://freshmeat.net/projects/autoupdate.
    4. Install the CSM core file.
      #rpm -ivh /dump/csm_dump/csm.core-1.4.0.13-105.i386

      This copies the necessary installation scripts in the /opt/csm/bin folder.

    5. Run installms, where /dump/prereqs/RedHat/RPMS contains Red Hat RPMS and /dump/csm_dump contains CSM code.
      #cd /opt/csm/bin
      #./installms -p /dump/csm_dump:/dump/prereqs/RedHat/RPMS	 
      					

      The above image doesn't show the complete output.

    6. Before you can use this master, you have to activate the "Try and Buy" or the "Permanent license" option, enter:
      #csmconfig 
      

      Note : "MaxNumNodesInDomain = 0" and "ExpDate = ".

      1. To activate the Try and Buy license option, enter:
        #/opt/csm/bin/csmconfig -L 
        

        When you accept the license message, you are free to test the master for next 90 days.

      2. For activating the Permanent license option, enter:
        #/opt/csm/bin/csmconfig -L /dump/csm_dump/csmlum.full
        

        The csmlum.full license file is available on your purchased CD.

    7. To check the status of the license, enter:
      #csmconfig
      

      • The Try and Buy option displays the following:

        Note : "ExpDate = Fri Jul 08 05:29:59 2005" and "MaxNumNodesInDoamin = -1 (unlimited)".

      • The Permanent license options displays "BLANK" next to the ExpiryDate.
         ExpiryDate = 
        

  4. Now CSM master is ready and you're all set to define the nodes. The nodes that are managed by this master are known as ManagedNodes.
    1. To set the PATH variable, enter:
      #export PATH=/opt/csm/bin:$PATH
      

    2. You can define the nodes in two ways:
      1. #definenode -n node1
        #definenode -n node2

      2. #definenode -f node_def_file

        The node_def_file contains stanzas for each node as follows:

        node1.my.com:
        	  ManagementServer=master.my.com
        	  InstallOSName=Linux
        	  InstallCSMVersion=1.4.0
        	  InstallDistributionName=RedHatEL-AS
        	  InstallDistributionVersion=3
        		
         node2.my.com:
        	  ManagementServer=master.my.com
        	  InstallOSName=Linux
        	  InstallCSMVersion=1.4.0
        	  InstallDistributionName=RedHatEL-AS
        	  InstallDistributionVersion=3	
        

    3. After you add the node definition on the master, you can see the defined nodes by executing:
      #lsnode -l -n node1
      

    4. Now its time to register the nodes.

      Make sure the /etc/hosts file is up to date on all the nodes before executing the next command.

      #updatenode -n node1
      #updatenode -n node2
      

      Or, try the following:

      #updatenode -a  [All the nodes]
      

    5. The Monitorinstall command shows you the status of all the nodes.
      #monitorinstall
      
         Node		Mode		Status
         ------------------------------------------ 		
         node1	Managed		Installed
         node2	PreManaged	Not Installed
      
      

  5. Make sure your CSM master and nodes are successfully installed and configured.

    1. To test, enter:
      #export DSH_LIST=/etc/node_list

      The node_list contains a shortname of your nodes, one hostname per line.

      node1
      node2

    2. To display the date output from both nodes, enter:
      #dsh date
      

    3. To show the status of all the nodes, whether they are "alive" or not, enter:
      #lsnode -p
      

      node1: 1 (Alive)
      node2: 1 (Alive)

  6. The Distributed Command Execution Manager (DCEM) GUI is included in the CSM for management of nodes.
    #/opt/csm/dcem/dcem 
    

  7. You need to make a back up of the CSM and ERRM after every major change in the setup.
    1. Use the backup command to perform the backup:
      #csmbackup  
      	


      This command will back up the CSM master in the /var/opt/csm/csmdata directory.
    2. To back up other files where <my_files> are /etc/dhcpd.conf, /etc/hosts, and so forth, enter:
      #csmbackup  -f  <my_files> 
      

    3. To back up the node data, enter:
      #lsnode  -F  > /csmbackup/node.data
      #nodegrp -L  > /csmbackup/nodegrp.data
       

    4. To backup ERRM data, enter:
      #lsrsrc -i IBM.Condition > / csmbackup/errmconditions.data
      #lsrsrc -i IBM.Response > / csmbackup/errmresponses.data
      #lscondresp  -lx > /csmbackup/errmcondresp.data
       

      You should always back up the following directories:

      • /csminstall
      • /etc/opt/csm
      • /var/opt/csm

  8. Perform the following steps to restore.
    1. To restore, enter:
      #csmrestore
      

      The hostname and operating system on the master shouldn't change while performing the backup.

    2. To restore node data, enter:
      #definenode -f  /csmbackup/node.data
      #nodegrp -f  /csmbackup/nodegrp.data
      

      IBM.ConditionI and IBM.Response should be deleted before restoring the ERRM data.

    3. To restore ERRM data, enter:
      #mkrsrc -f /csmbackup/errmconditions.data  IBM.Condition
      #mkrsrc -f /csmbackup/errmresponses.data  IBM.Response
      


Resources

About the author

Photo of Harish Chauhan

Harish has been with IBM since 1998 and has 14 years of experience. During his last eight years with IBM, he has spent five years at the India Research Lab and one year at the IBM T.J.Watson Research Center. Harish has been leading the Linux Center of Competency in Bangalore, India for the past year and a half. You can contact him at hchauhan@in.ibm.com.

Comments (Undergoing maintenance)



Trademarks  |  My developerWorks terms and conditions

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Linux
ArticleID=84358
ArticleTitle=IBM Cluster Systems Management: An installation guide
publish-date=05202005
author1-email=hchauhan@in.ibm.com
author1-email-cc=mmccrary@us.ibm.com

My developerWorks community

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Rate a product. Write a review.

Special offers