Sun Cluster のシステム管理 (Solaris OS 版)

Procedure再起動パッチを適用する (クラスタ)

この手順では、パッチを適用する前にまずクラスタを停止して、boot -sx または shtudown -g -y -i0 コマンドを使用して各ノードをシングルユーザーモードで起動する必要があります。

  1. パッチを適用する前に、Sun Cluster 製品の Web サイトで、インストール前後の特別な注意事項があるかどうかを確認してください。

  2. クラスタ内にある任意のノード上でスーパーユーザーになります。

  3. クラスタを停止します。


    # cluster shutdown -y -g grace-period message
    
    -y

    確認プロンプトで yes と答えます。

    -g grace-period

    停止までの待機時間を秒単位で指定します。デフォルトの猶予期間は 60 秒です。

    message

    送信する警告メッセージを指定します。message が複数の単語の場合は、引用符で囲みます。

  4. 各ノードを非クラスタのシングルユーザーモードで起動します。

    各ノードのコンソールで、次のコマンドを実行します。

    • SPARC ベースのシステム上で、以下のコマンドを実行します。


      ok boot -sx
      
    • x86 ベースのシステム上で、以下のコマンドを実行します。


      phys-schost# shutdown -g -y -i0
      
      Press any key to continue
    1. GRUB メニューで、矢印キーを使用して適切な Solaris エントリを選択し、e を入力してそのコマンドを編集します。

      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 のシステム管理 (基本編)』の第 11 章「GRUB ベースのブート (手順)」を参照してください。

    2. ブートパラメータの画面で、矢印キーを使用してカーネルエントリを選択し、e を入力してエントリを編集します。

      GRUB ブートパラメータの画面は、次のような画面です。


      GNU GRUB version 0.95 (615K lower / 2095552K upper memory)
      +----------------------------------------------------------------------+
      | root (hd0,0,a)                                                       |
      | kernel /platform/i86pc/multiboot                                     |
      | module /platform/i86pc/boot_archive                                  |
      +----------------------------------------------------------------------+
      Use the ^ and v keys to select which entry is highlighted.
      Press 'b' to boot, 'e' to edit the selected command in the
      boot sequence, 'c' for a command-line, 'o' to open a new line
      after ('O' for before) the selected line, 'd' to remove the
      selected line, or escape to go back to the main menu.
    3. コマンドに -sx を追加して、システムを非クラスタモードで起動することを指定します。


      [ Minimal BASH-like line editing is supported. For the first word, TAB
      lists possible command completions. Anywhere else TAB lists the possible
      completions of a device/filename. ESC at any time exits. ]
      
      grub edit> kernel /platform/i86pc/multiboot -x
    4. Enter キーを押して変更を受け入れ、ブートパラメータの画面に戻ります。

      画面には編集されたコマンドが表示されます。


      GNU GRUB version 0.95 (615K lower / 2095552K upper memory)
      +----------------------------------------------------------------------+
      | root (hd0,0,a)                                                       |
      | kernel /platform/i86pc/multiboot -x                                  |
      | module /platform/i86pc/boot_archive                                  |
      +----------------------------------------------------------------------+
      Use the ^ and v keys to select which entry is highlighted.
      Press 'b' to boot, 'e' to edit the selected command in the
      boot sequence, 'c' for a command-line, 'o' to open a new line
      after ('O' for before) the selected line, 'd' to remove the
      selected line, or escape to go back to the main menu.-
    5. b を入力してノードを非クラスタモードで起動します。


      注 –

      カーネル起動パラメータコマンドへのこの変更は、システムを起動すると無効になります。次にノードを再起動する際には、ノードはクラスタモードで起動します。クラスタモードではなく、非クラスタモードで起動するには、これらの手順を再度実行して、カーネル起動パラメータコマンドに -sx オプションを追加します。


  5. ソフトウェアパッチまたはファームウェアパッチを適用します。

    一度に 1 つのノードずつ、次のコマンドを実行します。


    # patchadd -M patch-dir patch-id
    
    patch-dir

    パッチのディレクトリの場所を指定します。

    patch-id

    特定のパッチのパッチ番号を指定します。


    注 –

    パッチディレクトリに、この章の手順よりも新しい注意事項がないかどうかを必ず確認してください。


  6. パッチが各ノードに正常にインストールされていることを確認します。


    # showrev -p | grep patch-id
    
  7. パッチをすべてのノードに適用したなら、ノードを再起動してクラスタに結合します。

    各ノードで次のコマンドを実行します。


    # reboot
    
  8. パッチが機能しており、ノードとクラスタが正常に動作していることを確認します。


例 10–2 再起動パッチの適用 (クラスタ)

次に、クラスタに Sun Cluster 再起動パッチを適用する例を示します。


# cluster shutdown -g0 -y
...

クラスタを非クラスタのシングルユーザーモードで起動します。


...
# patchadd -M /var/tmp/patches 234567-05
(Apply patch to other cluster nodes)
...
# showrev -p | grep 234567-05
# reboot

参照

パッチを取り消す必要がある場合は、「Sun Cluster パッチの変更」を参照してください。