Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Download
Standard view
Full view
of .
Look up keyword
Like this
20Activity
0 of .
Results for:
No results containing your search query
P. 1
Cluster_Operations

Cluster_Operations

Ratings:

4.0

(1)
|Views: 2,432|Likes:
Published by api-3763657

More info:

Published by: api-3763657 on Oct 16, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

05/09/2014

pdf

text

original

 
1.0 Status and startup
1.1
Viewing cluster and package status:
# cmviewcl –v | moreThis will describe the status of the cluster, nodes, packages and services.1.2
Starting the cluster:
# cmrunclThis command will cause all configured nodes to form a cluster and start all enabled packages.1.3
Halting the cluster:
# cmhaltclThis command will halt ServiceGuard operations on all nodes currently running in thecluster. If any packages are running, the cluster will not be halted. Either use cmhaltpkgfirst or use# cmhaltcl –f This will
orce the packages to halt before the cluster is halted.
1.4Starting a node:
# cmrunnode <node_name>This command will cause the specified node to join an already running cluster. Packagesthat were enabled but previously unable to run may be started automatically by thiscommand.
1.5Halting a node:
# cmhaltnode <node_name>This command will halt ServiceGuard operations on the specified node. If any packagesare running on that node, the node will not be halted. Either use cmhaltpkg first or use# cmhaltnode –f <node_name>With this command, if a package is running on the specified node that can be switched toan adoptive node, the switch takes place and the package starts on the adoptive node.1.6
Running a package
# cmrunpkg [ -n <node_name> ] <package_name>This will run the package on the current node or on the node specified, writing output inthe package control script log file, typically /etc/cmcluster/<SID>/<control_script>.log.
Note:
Once a package has been halted it is also possible to run a package again bymodifying its package switching status to enabled, i.e.# cmmodpkg –e <package_name>1.7
Halting a package:
# cmhaltpkg <package_name>
 
This will halt the package, writing output in the package control script log file,typically /etc/cmcluster/<package_name>/<control_script>.log.1.8
Enabling a package for switching/failing over
After a package has been halted its global switching flag is disabled. This means the package will not be moved to an adoptive node automatically if a failure occurs.# cmmodpkg -e <package_name>This will
e
nable global switching.1.9
Disabling a package from switching/failing over
# cmmodpkg -d <package_name>This will
dis
able global switching.1.10
Enabling a package to run on a particular node
After a package has failed on one node, that node is disabled. This means the packagewill not be able to run on that node.# cmmodpkg -e -n <node_name> <package_name>This will
e
nable the package to run on the specified node.1.11
Disabling a package from running on a particular node
# cmmodpkg -d -n <node_name> <package_name>This will
dis
able the package to run on the specified node.
2.0Common MC/ServiceGuard Operations
The following operations are frequently performed in the operation of anMC/ServiceGuard cluster. Additional information regarding the commands listed belowcan be found in the “Managing MC/ServiceGuard” manual, or in the appropriate man() pages.2.1
Checking the status of the cluster
From any active node in the cluster:
Logon as root
cmviewcl -vExpected output with the important items to note: (See the diagram in this document)
Ensure all nodes are part of the cluster by checking the “Node Status” area.
Ensure the AUTO_RUN is enabled for each package to allow it to switch to theadoptive node in the cluster if the primary node fails.
Ensure the “Node Switching Parameters” indicate that each package is running onthe appropriate node for your situation.
Ensure that SWITCHING is enabled for all nodes.
 
 
2.2
Starting the cluster with all cluster nodes available
From any node which will be part of the cluster:
Logon as root
cmruncl -v Note: If the nodes in the cluster are configured for automatic cluster startup, they willtry to join a cluster at boot time. If there isn’t an existing cluster to join, anattempt to form a new cluster will be made. This will be successful only if alldefined nodes attempt to join the cluster within the time-out period of 10minutes.Expected output:
Starting the cluster creates messages that are logged to the“/var/adm/syslog/syslog.log” file. Use the “tail -f /var/adm/syslog/syslog.log”command to view messages as the cluster is starting.2.3
Starting the cluster with a limited number of cluster nodes available
From any available node which is normally part of the cluster:
Logon as root
cmruncl -v -n <node_name>Expected output:
A warning message will appear on the display when starting the cluster in thismanner. Ensure the cluster is not already running on another node prior toselecting “y” to continue with cluster start-up.
Starting the cluster creates messages that are logged to the“/var/adm/syslog/syslog.log” file. Use the “tail -f /var/adm/syslog/syslog.log”command to view messages as the cluster is starting.2.4
Stopping the cluster
From any active node in the cluster:
Logon as root
cmhaltcl [-f] -vExpected output:
The “-f” option, if used, forces the halt of any running packages.
Stopping the cluster creates messages that are logged to the“/var/adm/syslog/syslog.log” file. Use the “tail -f /var/adm/syslog/syslog.log”command to view messages as the cluster is stopping.2.5
Joining an active cluster
From the node which will join the active cluster:
Logon as root
 

Activity (20)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Saran Spike liked this
nsmliao liked this
Ankur Yadav liked this
Mohammad Obaid liked this
chava_100 liked this
winsockspy liked this
Ziqiang Zhang liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->