- 论坛徽章:
- 0
|
1. MC/ServiceGuard命令参考
Comnmands
Supported Options
Description and Specific Options
cmapplyconf
fpvCP
Recompile and distribute Cluster binary configuration file.
This is the Cluster “executable” file.
-f Force the distribution of the binary file, even if one already exists.
cmcheckconf
pvCP
Syntax check the Cluster and Application Package configuration files.
cmhaltcl
fv
Halt a ServiceGuard Cluster.
-f Halt all Application Packages, then halt the Cluster.
If a Package halt fails, then the cluster halt also fails.
cmhaltnode
fv
Halt a ServiceGuard Node (remove it from the Cluster).
cmhaltpkg
nv
Halt a ServiceGuard Application Package.
cmhaltserv
Halt a ServiceGuard Service contained in an Application Package.
cmmakepkg
p or s
Create a ServiceGuard Application Package template file. Two kinds are available.
-p Create a sample ASCII package configuration file.
-s Create a sample package control script.
cmmodnet
a or r
i
Attach (-a) or remove (-r) a relocatable IP to/from a LAN interface (IP subnet).
-i IP address of relocatable host name.
cmmodpkg
d or e
nv
Enable (-e) or disable (-d) switching attributes for an Application Package.
May be done at the Node level (-n), or globally (no option).
cmquerycl
clnvC
Gather information from cluster Nodes and create the ASCII Cluster configuration file.
-l lvm Display LVM information only.
-l net Display network information only.
cmruncl
fnv
Start up a ServiceGuard Cluster.
-f Force Cluster start up without warning message and prompt.
cmrunnode
v
Start up a Cluster Node (have it join an active Cluster).
cmrunpkg
nv
Start up a ServiceGuard Application Package.
cmrunserv
rR
Start up a Service in a ServiceGuard Application Package.
-r Attempt to restart a failed Service “n” number of times before halting Package.
-R Attempt to restart the Service an unlimited number of times.
cmviewcl
lnpv
Display current Cluster and Application Package information.
-l cluster Limit display to cluster information.
-l node Limit display to node information.
-l package Limit display to package information.
cmscancl
v
Gather system configuration information from nodes with MC/ServiceGuard or MC/Lock Manager installed
This command is a configuration report and diagnostic tool which gather system software and hardware configuration information from a list of nodes, or from all the nodes in a cluster
cmviewconf
v
View MC/ServiceGuard or MC/LockManager cluster configuration information
This command collects and display the cluster configuration information, in ASCII format, from the binary configuration file for an existing cluster
Common Options
Description
-c cluster_name
The name of the applicable MC/ServiceGuard Cluster.
-C cluster_configuration_file
The name of the ASCII file containing the cluster configuration information
-n node_name
The name of the specific node to use when applying the command.
-P package_configuration_file
The name of the ASCII file containing the Application Package configuration information.
-p package_reference_file
The name of a file containing the locations of the Application Package configuration files.
-v
Verbose option
Commands Examples
Here are a example cluster information :
Cluster Name: HP-Cluster Node name: HP1, HP2
Package name : hp-pkg1,hp-pkg2 Database : Oracle
Description
Commands Examples
Remark
To create Cluster configuration ascii file in configuring
Cmquerycl -C cmclconfig.ascii –n HP1 –n HP2
Configuration Commands
To check the syntax or error of cmclconfig.ascii without packages
Cmcheckconf -C cmclconfig.ascii
Configuration Commands
To compile cmclconfig.ascii without packages
Cmapplyconf -C cmclconfig.ascii
Configuration Commands
To make package’s configuration file (hp-pkg1.conf)
Cmmakepkg -p /etc/cmcluster/hp-pkg1/hp-pkg1.conf
Configuration Commands
To make package’s control file (hp-pkg1.sh
Cmmakepkg -s /etc/cmcluster/hp-pkg1/hp-pkg1.sh
Configuration Commands
To check the syntax or error of cmclconfig.ascii with packages
Cmcheckconf -C cmclconfig -P /etc/cmcluster/hp-pkg1/hp-pkg1.conf -P /etc/cmcluster/hp-pkg2/hp-pkg2.conf
Configuration Commands
To compile cmclconfig.ascii with packages
Cmapplyconf -C cmclconfig -P /etc/cmcluster/hp-pkg1/hp-pkg1.conf -P /etc/cmcluster/hp-pkg2/hp-pkg2.conf
Configuration Commands
To delete cluster configuration
Cmdeleteconf -C HP-Cluster –n HP1 –n HP2
Configuration
To Gather system configuration information from nodes
Cmscancl -v
Configuration
Commands
To view MC/ServiceGuard cluster configuration information
Cmviewconf -v
Configuration
Commands
To startup cluster
Cmruncl –v
Cluster Commands
To halt cluster
Cmhaltcl –v -f
Cluster Commands
To halt a specific node(HP1)
Cmhaltnode –f –v HP1
Node Commands
To startup a specific cluster node (HP1)
Cmrunnode –v HP1
Node Commands
To run a package (hp-pkg1) on the node(HP1)
Cmrunpkg –n HP1 –v hp-pkg1
Package Commands
To halt a package (hp-pkg1) on the node(HP1)
Cmhaltpkg –v –n HP1 hp-pkg1
Package Commands
To Enable (-e) or disable (-d) switching attributes for Both node and an Application Package.
Cmmodpkg -e(enable) -n HP1 –v hp-pkg1
Cmmodpkg -d(disable) -n HP1 –v hp-pkg1
Package Commands
To Enable (-e) or disable (-d) switching attributes for an Application Package
Cmmodpkg –e(enable) –v hp-pkg1
Cmmodpkg –d(disable)-v hp-pkg1
Package
Commands
To display current Cluster and Application Package information.
Cmviewcl -v
Monitor Commands
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19608/showart_122655.html |
|