extreme CSM tools


Author: Bruce Potter, Document Version 1.5.1, 1/31/07

Introduction

The xCSM package is a set of additional tools for CSM to give you even more capabilities to manage your cluster with.  There is not official support for these tools, but you can certainly post your problems, questions, and suggestions to the CSM Forum and we will do our best to address them.

What's New

Documentation - /opt/xcsm/doc

(Note: the links above only work as links if you are browsing this file from the /opt/xcsm directory.)

Commands - /opt/xcsm/bin

Using the -h option, on at least some of the commands, will give you extended usage information.

Utilities - /opt/xcsm/utils

These are commands and other scripts that are used by the xcsm.web browser interface and also useful in xcsm from the command line. All the files in this directory are replicated in both the xcsm and xcsm.web rpms so that neither rpm needs to prereq the other. To get additional info for any of these, run the command with the -h flag, or look at the comments in the file.

Blade Utilities - /opt/xcsm/blade

Nagios - /opt/xcsm/nagios

Database Commands - /opt/xcsm/db

These are commands that can be used to create and manage database tables.  The tables are stored in the RSCT registry, using the RSCT DBI driver that is supplied with CSM/RSCT.  Note that these commands are just for convenience for interactive use.  To manipulate the tables programmatically, use the DBI interface directly, since that is more standard and will be faster.  You can use these commands below as examples for writing your own DBI scripts.  The DBI interface can also be used to access the RMC classes in a standard way.  See lscsmtab as an example.  Run any of these commands with the -h option to get usage help.  Before using these commands, or your own DBI script, make sure the perl-DBI RPM from the distro CDs is installed.

Power Methods - /opt/xcsm/powermethods

Console Methods - /opt/xcsm/consolemethods

MAC Methods - /opt/xcsm/macmethods

HPC Set Up Utilities - /opt/xcsm/hpc

Node Installation Customization Scripts - /opt/xcsm/install

In the bullets below "###" represents a 3 digit number that is put at the beginning of the script to control what order they are run in.

OS Cloning - /opt/xcsm/clone

CSM can work with SystemImager to capture golden images and clone them to CSM nodes. See /opt/xcsm/clone/README for the details.

Event Monitoring Conditions and Responses - /opt/xcsm/monitor

Samples - /opt/xcsm/samples

Tivoli Adapter - /opt/xcsm/tivoli

You can use the CSM TEC adapter to forward cluster events to the Tivoli Enterprise Console. See the README in the tivoli sub-directory for instructions on how to set it up.

CSM Patches - /opt/xcsm/csm-patches

Most of the code in xCSM is structured so that it can be run on top of the standard CSM release, without changing any CSM files.  But in some limited cases, this is not possible.  The files in this sub-directory are fixes or enhancements to CSM files. Using this directory as the root, the files are given the full path name of the corresponding CSM file.  In some cases the file is a full replacement, in other cases it is a patch file.  In both cases, proceed with caution:  always keep a backup of the file being replaced/patched, and restore the original files before upgrading CSM.

Switch Utilities - /opt/xcsm/dev/switch

A utility to get the MAC addresses of nodes from a Cisco switch.

HPC Utilities - /opt/xcsm/hpc

Utilities to help install and set up open source HPC applications in the cluster. See the READMEs in the subdirectories for instructions. These utilities have not been updated in a while.

Ported xCAT commands - /opt/xcsm/xcat/sbin

xCSM now provides two xCAT commands designed to work in a CSM cluster: addclusteruser and pushuser. These commands give you the ability to quickly add users throughout the cluster and to setup OpenSSH keys to allow users unprompted ssh access from any node in the cluster to any other node in the cluster. To use addclusteruser and pushuser do the following:

  1. Install xCAT on your management server (the requirement for xCAT will be removed in a future release).
  2. Run the xCAT provided script: /opt/xcat/csm/sbin/csm2xcat to setup the xCAT tab files using your CSM data as a starting point.
  3. Set nisdomain to NA in /opt/xcat/etc/site.tab
  4. Export your path to include /opt/xcsm/xcat/sbin
  5. Run addclusteruser. For example to add a user called clusterguest run: addclusteruser -n clusterguest
  6. Then either use CFM to push out /etc/passwd and /etc/group to the nodes, or run pushuser [noderange] clusterguest
  7. Finally, run cfmupdatenode to push out the user's home directory (which includes the needed OpenSSH keys): cfmupdatenode -n [noderange]. Please note you need CSM version 1.4.0.13 or later for this CFM functionality. If you are using an earlier version of CSM, push the user's home directory to the nodes via NFS or dcp.

References