Below are are list of Basic commands used in HP Service Guard Cluster.
Service | Command |
cluster status | #cmviewcl –v The output shows the detailed status of the cluster, nodes, packages and services. |
cluster status | #cmviewcl The output shows the simple cluster status |
cluster start | #cmruncl This command will helps/force nodes to form a cluster and start the all enabled packages in that cluster. |
cluster halt | #cmhaltcl This command will halt ServiceGuard operations on all nodes which are currently running in the cluster. If any packages are running, the cluster will not be halted. |
cluster halt force | #cmhaltcl –f This will force the packages to halt and after that it halts ServiceGuard operations on all nodes which are currently running in the cluster |
run cluster node | #cmrunnode <node name> This command will start the specified node to join an already running cluster. |
halt cluster node | #cmhaltnode <node name> This command will halt ServiceGuard operations on the specified node. If any packages are running on that node, the node will not be halted. |
halt cluster node force | #cmhaltnode –f <node name> Force the node to halt even if there are packages or group members running on it |
running a cluster package | # cmrunpkg [ -n <node name> ] <package name> This will run the package on the current node or on the node specified. |
halting package | # cmhaltpkg <package name> This will halt the package. |
enable package switching | # cmmodpkg –e <package name> Enable switching attributes for a cluster |
disable package switching | # cmmodpkg -d <package name> Disable switching attributes for a cluster |
enabling a package to run on a particular node | # cmmodpkg –e -n <node name> <package name> After a package has failed on one node, that node is disabled. This means the package will not be able to run on that node. The following command will enable the package to run on the specified node. |
disabling a package from running on a particular node | # cmmodpkg-d-n <node name> <package name> This will command will disable the package to run on the specified node. |
What are the daemons control MC Serviceguard HP Unix
There are the MC ServiceGurard Components and the Application Packages.
Eight Daemons are associated with MC ServiceGuard HP Unix
Daemons | |
/usr/lbin/cmclconfd | ServiceGuard Configuration Daemon- <<gathers cluster info ie network and vol grp info started in /etc/inetd.conf >> |
/usr/lbin/cmcld | ServiceGuard Cluster Daemon << determines cluster membership. Package Mgr, Cluster Mgr, and Network Mgr run as parts of cmcld.>> |
/usr/lbin/cmlogd | ServiceGuard Syslog Log Daemon << used by cmcld to write syslog messages.>> |
/usr/lbin/cmlvmd | Cluster Logical Volume Manager Daemon << keeps track of Volume group info.>> |
/usr/lbin/cmomd | Cluster Object Manager Daemon - logs to /var/opt/cmom/cmomd.log << provides info to client about the cluster. /etc/inetd.conf.>> |
/usr/lbin/cmsnmpd | Cluster SNMP subagent (optionally running) << produces MIB for snmp>> |
/usr/lbin/cmsrvassistd | ServiceGuard Service Assistant Daemon << fork and exec scripts for the cluster.>> |
/usr/lbin/cmtaped | ServiceGuard Shared Tape Daemon << keeps track of shard tape devices.>> |
Each of these daemons logs to the /var/adm/syslog/syslog.log file
Fail Over the Package to another Cluster Node in HP ServiceGuard
Process to Fail Over the Package from one Cluster Node to another Cluster Node.
Follow the same sequence order.
1. cmviewcl –v
( check the cluster status and node/package status.)
2. cmhaltpkg –n <nodename> –v <pkgname>
(halt the package in perticulat node and check the logs whether the package halted successfully or not)
3. cmmodpkg –e –n <nodename> -v <pkgname>
(enables pkg to run, and enables pkg switching. This can be issued on either node. It will automatically start pkg on it’s adoptive node if nodename is not specified)
4. cmrunpkg –n <nodename> -v <pkgname>
(starts specified pkg on specified node. Can be run from either node.
5. cmviewcl –v
( check the package status whether running or not on respective node)
Post a Comment