スケーラブルデータベースサーバ HiRDB Version 8 システム運用ガイド(UNIX(R)用)

[目次][索引][前へ][次へ]

26.9.1 クラスタの起動

Sun Clusterのクラスタを起動します。ここでは次に示すシステム構成を例にして説明します。

構成例
  • クラスタ名称:sun_cluster
  • 構成ノード:sc-node0sc-node1

Sun Clusterではクラスタ全体を起動するコマンドはなく,最初のノードでクラスタを起動してほかのノードをクラスタに追加する形をとります。まず,scadmin(1M)でマスターノードのクラスタを起動します。

 
[sc-node0] # scadmin startcluster  sc-node0  sun_cluster
Node specified is sc-node0
Cluster specified is sun_cluster
=========================== WARNING =================================
=                     Creating a new cluster                        =
=====================================================================
You are attempting to start up the cluster node 'sc-node0' as the
only node in a new cluster.  It is important that no other cluster
nodes be active at this time.  If this node hears from other cluster
nodes, this node will abort.  Other nodes may only join after this
command has completed successfully.  Data corruption may occur if
more than one cluster is active.
 
Do you want to continue [y,n,?]   y
 

次に,マスターノードの起動が完了したのを確認してから,そのほかのノードをクラスタに追加します。

 
[sc-node1] # scadmin startnode
 

すべてのノードを起動したら,hastat(1M)でクラスタ全体の状態を確認します。

 
[sc-node1] # hastat
Getting Information from all the nodes ......
              HIGH AVAILABILITY CONFIGURATION AND STATUS
              -------------------------------------------
 
LIST OF NODES CONFIGURED IN <sun_cluster> CLUSTER
      sc-node0 sc-node1
 
CURRENT MEMBERS OF THE CLUSTER
     sc-node0 is a cluster member        <-- ノードが起動している
     sc-node1 not a cluster member       <-- ノードが起動していない
 

起動が失敗する場合は,/var/adm/messagesと /var/opt/SUNWcluster/scadmin.logでエラーを確認してください。