グローバルクラスタを停止するために cluster shutdown コマンドを実行してから、各ノード上で boot コマンドを使用してグローバルクラスタを起動します。ゾーンクラスタを停止するために clzonecluster halt コマンドを使用してから、clzonecluster boot コマンドを使用してゾーンクラスタを起動します。clzonecluster reboot コマンドを使用することもできます。詳細は、cluster(1CL)、boot(1M)、および clzonecluster(1CL) のマニュアルページを参照してください。
phys-schost# プロンプトは、グローバルクラスタのプロンプトを表します。この手順は、グローバルクラスタ上で実行します。
この手順では、長形式の Sun Cluster コマンドを使用して説明します。多くのコマンドには短縮形もあります。コマンド名の形式の長短を除き、コマンドは同一です。コマンドのリストとその短縮形については、付録 B Sun Cluster オブジェクト指向コマンドを参照してください。
Oracle RAC が動作しているクラスタの場合は、停止するクラスタ上のデータベースのすべてのインスタンスを停止します。
停止の手順については、Oracle Parallel Server/Real Application Clusters 製品のマニュアルを参照してください。
クラスタ内の任意のノードで、スーパーユーザーになるか、RBAC の承認 solaris.cluster.admin を提供する役割になります。グローバルクラスタのノードから、次の手順のステップをすべて実行します。
クラスタを停止します。
グローバルクラスタを停止します。
phys-schost# cluster shutdown -g0 -y |
ゾーンクラスタがある場合は、グローバルクラスタノードからゾーンクラスタを停止します。
phys-schost# clzonecluster halt zoneclustername |
各ノードが停止します。ゾーンクラスタ内で cluster shutdown コマンドを使用して、ゾーンクラスタを停止することもできます。
クラスタメンバーシップを取得できるように、ノードにはクラスタインターコネクトとの動作中の接続が必要です。
各ノードを起動します。
停止中に構成を変更した場合以外は、どのような順序でノードを起動してもかまいません。停止中に構成を変更した場合は、最新の構成情報を持つノードを最初に起動する必要があります。
SPARC ベースのシステムのグローバルクラスタノードの場合は、次のコマンドを実行します。
ok boot |
x86 ベースのシステムのグローバルクラスタノードの場合は、次のコマンドを実行します。
GRUB メニューが表示された時点で、適切な Solaris エントリを選択し Enter キーを押します。GRUB メニューは次のようになっています。
GNU GRUB version 0.95 (631K lower / 2095488K upper memory) +-------------------------------------------------------------------------+ | Solaris 10 /sol_10_x86 | | Solaris failsafe | | | +-------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line. |
クラスタメンバーシップを取得できるように、ノードにはクラスタインターコネクトとの動作中の接続が必要です。
GRUB ベースの起動についての詳細は、『Solaris のシステム管理 (基本編)』の「GRUB を使用して x86 システムをブートする (作業マップ)」を参照してください。
ゾーンクラスタの場合は、グローバルクラスタの 1 つのノードで次のコマンドを入力して、ゾーンクラスタを起動します。
phys-schost# clzonecluster boot zoneclustername |
クラスタコンポーネントが起動すると、起動されたノードのコンソールにメッセージが表示されます。
ノードが問題なく起動し、オンラインであることを確認します。
clnode status コマンドを実行すると、グローバルクラスタ上のノードの状態が報告されます。
phys-schost# clnode status |
clzonecluster status コマンドをグローバルクラスタノード上で実行すると、ゾーンクラスタノードの状態が報告されます。
phys-schost# clzonecluster status |
ゾーンクラスタ内で cluster status コマンドを実行して、ノードの状態を確認することもできます。
ノードの /var ファイルシステムが満杯になると、そのノード上では Sun Cluster が再起動できなくなる可能性があります。この問題が発生した場合は、「満杯の /var ファイルシステムを修復する」を参照してください。
次の例は、sparse-sczone というゾーンクラスタを停止して起動する方法を示しています。 clzonecluster reboot コマンドを使用することもできます。
phys-schost# clzonecluster halt sparse-sczone Waiting for zone halt commands to complete on all the nodes of the zone cluster "sparse-sczone"... Sep 5 19:17:46 schost-4 cl_runtime: NOTICE: Membership : Node 4 of cluster 'sparse-sczone' died. Sep 5 19:17:46 schost-4 cl_runtime: NOTICE: Membership : Node 2 of cluster 'sparse-sczone' died. Sep 5 19:17:46 schost-4 cl_runtime: NOTICE: Membership : Node 1 of cluster 'sparse-sczone' died. Sep 5 19:17:46 schost-4 cl_runtime: NOTICE: Membership : Node 3 of cluster 'sparse-sczone' died. phys-schost# phys-schost# clzonecluster boot sparse-sczone Waiting for zone boot commands to complete on all the nodes of the zone cluster "sparse-sczone"... phys-schost# Sep 5 19:18:23 schost-4 cl_runtime: NOTICE: Membership : Node 1 of cluster 'sparse-sczone' joined. Sep 5 19:18:23 schost-4 cl_runtime: NOTICE: Membership : Node 2 of cluster 'sparse-sczone' joined. Sep 5 19:18:23 schost-4 cl_runtime: NOTICE: Membership : Node 3 of cluster 'sparse-sczone' joined. Sep 5 19:18:23 schost-4 cl_runtime: NOTICE: Membership : Node 4 of cluster 'sparse-sczone' joined. phys-schost# phys-schost# clzonecluster status === Zone Clusters === --- Zone Cluster Status --- Name Node Name Zone HostName Status Zone Status ---- --------- ------------- ------ ----------- sparse-sczone schost-1 sczone-1 Online Running schost-2 sczone-2 Online Running schost-3 sczone-3 Online Running schost-4 sczone-4 Online Running phys-schost# |
次に、正常なグローバルクラスタの動作を停止して、すべてのノードを停止し、ok プロンプトが表示され、グローバルクラスタが再起動したときのコンソールの出力例を示します。ここでは、-g 0 オプションで停止の猶予期間をゼロに設定し、-y オプションで、確認プロンプトに対して自動的に yes と応答するよう指定しています。停止メッセージは、グローバルクラスタ内のほかのノードのコンソールにも表示されます。
phys-schost# cluster shutdown -g0 -y Wed Mar 10 13:47:32 phys-schost-1 cl_runtime: WARNING: CMM monitoring disabled. phys-schost-1# INIT: New run level: 0 The system is coming down. Please wait. ... The system is down. syncing file systems... done Program terminated ok boot Rebooting with command: boot ... Hostname: phys-schost-1 Booting as part of a cluster ... NOTICE: Node phys-schost-1: attempting to join cluster ... NOTICE: Node phys-schost-2 (incarnation # 937690106) has become reachable. NOTICE: Node phys-schost-3 (incarnation # 937690290) has become reachable. NOTICE: cluster has reached quorum. ... NOTICE: Cluster members: phys-schost-1 phys-schost-2 phys-schost-3. ... NOTICE: Node phys-schost-1: joined cluster ... The system is coming up. Please wait. checking ufs filesystems ... reservation program successfully exiting Print services started. volume management starting. The system is ready. phys-schost-1 console login: NOTICE: Node phys-schost-1: joined cluster ... The system is coming up. Please wait. checking ufs filesystems ... reservation program successfully exiting Print services started. volume management starting. The system is ready. phys-schost-1 console login: |