Sun Cluster 3.0 U1 ソフトウェアのインストール

Sun Cluster ソフトウェアをインストールする(scinstall)

Solaris オペレーティング環境をインストールしたあと、クラスタの各ノード上で以下の作業を実施することにより、Sun Cluster ソフトウェアのインストールと新しいクラスタノードの確立を行います。この作業手順は、既存のクラスタに新しいノードを追加する場合にも利用できます。


注 -

scinstall(1M) カスタム JumpStart または SunPlex Manager でソフトウェアをインストールした場合は、Sun Cluster ソフトウェアは既にインストールされています。「ネームサービススイッチを構成する」に進んでください。


  1. Sun Cluster 3.0 ご使用にあたって』の以下のワークシートに必要事項を記入したものを用意します。

    • 「クラスタ名とノード名のワークシート」

    • 「クラスタインターコネクトのワークシート」

    計画のガイドラインについては、「Sun Cluster 環境の計画」を参照してください。

  2. クラスタノードでスーパーユーザーになります。

  3. CD-ROM からインストールする場合は、インストールと構成を行うノードの CD-ROM ドライブに Sun Cluster 3.0 7/01 CD-ROM を挿入します。

    ボリューム管理デーモン vold(1M) が実行されており、CD-ROM デバイスを管理するように構成されている場合は、CD-ROM は自動的に /cdrom/suncluster_3_0u1 ディレクトリにマウントされます。

  4. /cdrom/suncluster_3_0u1/SunCluster_3.0/Tools ディレクトリに移動します。


    # cd /cdrom/suncluster_3_0u1/SunCluster_3.0u1/Tools
    

  5. 既存のクラスタに新しいノードをインストールするかどうかを決定します。

    • インストールする場合は、手順 8 へ進んでください。

    • インストールしない場合は、手順 6 へ進んでください。

  6. 最初のノードをインストールして、新しいクラスタを設定します。

    プロンプトに従い、構成計画ワークシートの情報を参照して Sun Cluster ソフトウェアをインストールします。

    1. scinstall(1M) ユーティリティを起動します。


      # ./scinstall
      

      対話形式の scinstall ユーティリティを使用するときは、以下のガイドラインに従ってください。

      • 対話形式の scinstall では先打ち入力が可能です。したがって、次のメニュー画面がすぐに表示されなくても、何度も Return キーを押さないでください。

      • 特に指定がない場合は、Control-D キーを押すと、関連のある一連の質問の最初、またはメインメニューに戻ります。

      • セッションでの回答内容は、そのメニューオプションを次回実行したときのデフォルトとして格納されます。プロンプトの最後に、角括弧 ([ ]) に囲まれてデフォルトの回答が表示されます。


      ヒント -

      ノードがクラスタモードで正常に起動するまでは、scinstall を再度実行し、必要に応じて構成情報を変更できます。ただし、不正なノード構成データが、クラスタに設定されてしまった場合は、最初にその不正な情報を削除しておく必要があります。不正な情報を削除するには、アクティブなクラスタノードの 1 つにログオンし、scsetup(1M) コマンドを使用して、不正なアダプタ、接続点、またはケーブル情報を削除します。


    2. 「Main Menu」で、1 (Establish a new cluster) と入力します。


       *** Main Menu ***
       
          Please select from one of the following (*) options:
       
            * 1) Establish a new cluster using this machine as the first node
            * 2) Add this machine as a node in an established cluster
              3) Configure a cluster to be JumpStarted from this install server
              4) Add support for new data services to this cluster node
              5) Print release information for this cluster node
       
            * ?) Help with menu options
            * q) Quit
       
          Option:  1
       
       *** Establishing a New Cluster ***
      ...
       Do you want to continue (yes/no) [yes]?  y
      

    3. クラスタ名を指定します。


       >>> Cluster Name <<<
      ...
          What is the name of the cluster you want to establish?  clustername 
      

    4. このクラスタの一部となる他のノードの名前を指定します。


       >>> Cluster Nodes <<<
      ...
          Node name:  node2
          Node name (Ctrl-D to finish):  <Control-D>
       
          This is the complete list of nodes:
      ...
          Is it correct (yes/no) [yes]? 

    5. データ暗号化規格 (DES) 認証を使用するかどうかを指定します。

      デフォルトでは、Sun Cluster ソフトウェアを使用してノードをクラスタに接続できるのは、ノードが物理的にプライベートインターコネクトに接続されていて、かつ上記の手順 d の方法でノード名が指定されている場合だけです。しかし、プライベートインターコネクトはまだ完全に構成されていないため、実際にはノードはパブリックネットワークを介してスポンサーノードと通信します。DES 認証を使用すると、スポンサーノードは、クラスタ構成を更新するために接続を試みるノードを確実に認証できます。このため、インストール時のセキュリティレベルが高くなります。

      セキュリティを高めるために DES 認証を使用する場合は、ノードをクラスタに追加する前に、必要な暗号化鍵をすべて構成する必要があります。詳細は、keyserv(1M) および publickey(4) のマニュアルページを参照してください。


       >>> Authenticating Requests to Add Nodes <<<
      ...
          Do you need to use DES authentication (yes/no) [no]? 

    6. プライベートネットワークアドレスとネットマスクを指定します。


      注 -

      クラスタが正しく構成されたあとでは、プライベートネットワークアドレスは変更できません。



       >>> Network Address for the Cluster Transport <<<
      ...
          Is it okay to accept the default network address (yes/no) [yes]? 
          Is it okay to accept the default netmask (yes/no) [yes]? 
    7. 2 ノードクラスタである場合は、クラスタがトランスポート接続点を使用するかどうかを指定します。


      ヒント -

      ノードが互いに直接接続されているかどうかにかかわらず、クラスタがトランスポート接続点を使用するように指定できます。クラスタがトランスポート接続点を使用するように指定すると、クラスタに新しいノードを簡単に追加できるようになります。



       >>> Point-to-Point Cables <<<
       ...
          Does this two-node cluster use transport junctions (yes/no) [yes]? 
    8. このクラスタがトランスポート接続点を使用する場合は、トランスポート接続点の名前を指定します。

      クラスタに 3 つ以上のノードが含まれる場合は、トランスポート接続点を使用する必要があります。この場合、デフォルトの名前 switchN を使用することも、独自の名前を作成することもできます。


       >>> Cluster Transport Junctions <<<
       ...
          What is the name of the first junction in the cluster [switch1]? 
          What is the name of the second junction in the cluster [switch2]? 

    9. クラスタインターコネクトのトランスポートアダプタ、およびそれらの接続先であるトランスポート接続点 (使用されている場合) の名前を指定します。

      scinstall コマンドを使用し、アダプタを 2 つまで構成できます。Sun Cluster ソフトウェアのインストール後は、scsetup ユーティリティを使用してアダプタを追加構成できます。


       >>> Cluster Transport Adapters and Cables <<<
       ...
          What is the name of the first cluster transport adapter?  adapter
       ...
          Name of the junction to which "adapter" is connected [switch1]? 
       ...
          What is the name of the second cluster transport adapter?  adapter
       ...
          Okay to use the default for the "qfe0" connection (yes/no) [yes]? 
        
          What is the name of the second cluster transport adapter?  adapter
       
          Name of the junction to which "adapter" is connected [switch2]? 
           Use the default port for the "adapter" connection [yes]? 

    10. 広域デバイスのファイルシステム名を指定します。


       >>> Global Devices File System <<<
      ...
          The default is to use /globaldevices.
       
          Is it okay to use this default (yes/no) [yes]? 

    11. インストールの必要がある Sun Cluster ソフトウェアパッチがあるかどうかを確認します。

      • インストールする場合は、「Automatic Reboot」画面で「no」と入力して自動再起動を行わないようにします。

      • インストールしない場合は、「yes」と入力して自動再起動を行います。


       >>> Automatic Reboot <<<
      ...
          Do you want scinstall to reboot for you (yes/no) [yes]? 
    12. 起動された scinstall コマンドを使用するかどうかを決定します。

      scinstall コマンドにより確認が求められます。


       >>> Confirmation <<<
       
          Your responses indicate the following options to scinstall:
       
            scinstall -i  ¥
      ...
          Are these the options you want to use (yes/no) [yes]? 
          Do you want to continue with the install (yes/no) [yes]? 

      • コマンドを使用してインストールを続行する場合は、scinstall コマンドの処理が継続します。scinstall の処理中に表示される出力例を、「例 - Sun Cluster ソフトウェアのインストール」に示します。

      • このコマンドを使用しない場合は、「Main Menu」が表示されます。ここからメニューオプション 1 を再度実行し、別の応答を入力できます。この場合、以前の応答がデフォルトとして表示されます。

    Sun Cluster のインストール出力は、/var/cluster/logs/install/scinstall.log.pid ファイルに記録されます (pidscinstall インスタンスのプロセス ID 番号)。


    注 -

    独自の /etc/inet/ntp.conf ファイルをインストールしていないかぎり、scinstall コマンドによりデフォルトの ntp.conf ファイルがインストールされます。このデフォルトファイルは、出荷時には可能なかぎり多くのノードを参照する状態になっています。このため、xntpd(1M) デーモンは起動時に一部の参照についてエラーメッセージを表示することがあります。これらのメッセージは無視しても問題ありません。通常のクラスタ条件下で、これらのメッセージを表示しないようにする方法については、「Network Time Protocol (NTP) を更新する」を参照してください。


  7. インストールの必要がある Sun Cluster ソフトウェアパッチがあるかどうかを確認します。

    • 存在する場合は、ノードにパッチをインストールしてそのノードを再起動します。パッチの入手方法とインストール方法については、『Sun Cluster 3.0 U1 ご使用にあたって』を参照してください。

    • パッチが存在せず、インストール時に scinstall によってノードが再起動された場合は、手順 8へ進んでください。scinstall によってノードが再起動されなかった場合は、手動でノードを再起動させてクラスタを確立し、その後 手順 8へ進んでください。

    Sun Cluster ソフトウェアのインストールのあとでノードを初めて再起動すると、クラスタが構成されるとともに、クラスタの最初のインストールノードとしてこのノードが確立されます。

  8. クラスタの 2 つめのノードをインストールします。

    プロンプトに従って Sun Cluster ソフトウェアをインストールします。構成計画ワークシートの情報を参照してください。


    注 -

    他のノードをインストールしている間は、(別のノードをスポンサーノードとして使用している場合でも) 最初のインストールノードの再起動や停止を行わないでください。クラスタノードに定足数投票 (quorum vote) が割り当てられてクラスタインストールモードが無効になるまでは、クラスタを設定した最初のインストールノードにしか定足数投票はありません。このため、最初のインストールノードの再起動または停止を行うと、定足数が失われてシステムパニックが起きます。


    1. scinstall ユーティリティを起動します。

      この手順は、最初のインストールノード上でソフトウェアのインストールがまだ進行している間でも開始できます。2 つめのノードは、必要に応じて最初のノードのインストールが完了するのを待ちます。


      # ./scinstall
      

    2. 「Main Menu」で、2 (Add this machine as a node) と入力します。


       *** Main Menu ***
       
          Please select from one of the following (*) options:
       
            * 1) Establish a new cluster using this machine as the first node
            * 2) Add this machine as a node in an established cluster
              3) Configure a cluster to be JumpStarted from this install server
              4) Add support for new data services to this cluster node
              5) Print release information for this cluster node
       
            * ?) Help with menu options
            * q) Quit
       
          Option:  2
       
        *** Adding a Node to an Established Cluster ***
      ...
          Do you want to continue (yes/no) [yes]? y
      

    3. スポンサーノードとなる既存のクラスタノードの名前を指定します。


       >>> Sponsoring Node <<<
      ...
          What is the name of the sponsoring node?  node1
      

    4. クラスタ名を指定します。


       >>> Cluster Name <<<
      ...
          What is the name of the cluster you want to join?  clustername
      

    5. 2 ノードクラスタであるかどうか、およびクラスタがトランスポート接続点を使用するかどうかを指定します。

      クラスタに 3 つ以上のノードが含まれる場合は、トランスポート接続点を使用する必要があります。


       >>> Point-to-Point Cables <<<
      ...
          Is this a two-node cluster (yes/no) [yes]? 
       
          Does this two-node cluster use transport junctions (yes/no) [yes]? 

    6. クラスタインターコネクトのトランスポートアダプタとトランスポート接続点を指定します (存在する場合)。


       >>> Cluster Transport Adapters and Cables <<<
      ...
          What is the name of the first cluster transport adapter?  adapter
      ...
          Name of adapter on "node1" to which "adapter" is connected?  adapter
       
          What is the name of the second cluster transport adapter?  adapter
          Name of adapter on "node1" to which "adapter" is connected?  adapter
      

    7. 広域デバイスのファイルシステム名を指定します。


       >>> Global Devices File System <<<
      ...
          The default is to use /globaldevices.
       
          Is it okay to use this default (yes/no) [yes]? 

    8. インストールの必要がある Sun Cluster ソフトウェアパッチがあるかどうかを確認します。

      • インストールする場合は、「Automatic Reboot」画面で「no」と入力して自動再起動を行わないようにします。

      • インストールしない場合は、「yes」と入力して自動再起動を行います。


       >>> Automatic Reboot <<<
      ...
          Do you want scinstall to reboot for you (yes/no) [yes]? 
    9. 起動された scinstall コマンドを使用するかどうかを決定します。

      scinstall コマンドにより確認が求められます。


       >>> Confirmation <<<
       
          Your responses indicate the following options to scinstall:
       
            scinstall -i  ¥
      ...
          Are these the options you want to use (yes/no) [yes]? 
          Do you want to continue with the install (yes/no) [yes]? 

      • コマンドを使用してインストールを続行する場合は、scinstall の処理が継続します。scinstall の処理中に表示される出力例を、「例 - Sun Cluster ソフトウェアのインストール」に示します。クラスタ内でスポンサーノードがまだ確立されていない場合、scinstall はスポンサーノードが利用できるようになるのを待ちます。

      • このコマンドを使用しない場合は、「Main Menu」が表示されます。ここからメニューオプション 2 を再度実行し、別の応答を入力できます。この場合、以前の応答がデフォルトとして表示されます。

    Sun Cluster のインストール出力は、/var/cluster/logs/install/scinstall.log.pid ファイルに記録されます (pidscinstall インスタンスのプロセス ID 番号)。


    注 -

    独自の /etc/inet/ntp.conf ファイルをインストールしていないかぎり、scinstall コマンドによりデフォルトの ntp.conf ファイルがインストールされます。このデフォルトファイルは、出荷時には 8 個のノードを参照する状態になっています。このため、xntpd(1M) デーモンは起動時に一部の参照についてエラーメッセージを表示することがあります。これらのメッセージは無視しても問題ありません。通常のクラスタ条件下で、これらのメッセージを表示しないようにする方法については、「Network Time Protocol (NTP) を更新する」を参照してください。


  9. インストールの必要がある Sun Cluster ソフトウェアパッチがあるかどうかを確認します。

    • 存在する場合は、ノードにパッチをインストールしてそのノードを再起動します。パッチの入手方法とインストール方法については、『Sun Cluster 3.0 U1 ご使用にあたって』を参照してください。


      注 -

      他のノードをインストールしている間は、(別のノードをスポンサーノードとして使用している場合でも) 最初のインストールノードの再起動または停止を行わないでください。クラスタノードに定足数投票が割り当てられてクラスタインストールモードが無効になるまでは、クラスタを設定した最初のインストールノードにしか定足数投票はありません。このため、最初のインストールノードの再起動または停止を行うと、定足数が失われてシステムパニックが起きます。クラスタノードは、「インストール後設定を行う」scsetup(1M) コマンドを最初に実行するまでは、インストールモードのままです。


    • パッチが存在せず、インストール時に scinstall によってノードが再起動された場合は、手順 10 へ進んでください。scinstall によってノードが再起動されなかった場合は、手動でノードを再起動させてクラスタを確立し、その後 手順 10 へ進んでください。

  10. すべてのノードが完全に構成されるまで、各追加ノードに対して 手順 8手順 9 を繰り返します。

    追加ノードへのインストールを開始する際に、2 番目のノードのインストールが完了するのを待ってこのノードを再起動する必要はありません。

  11. ネームサービスの参照順序を設定します。

    「ネームサービススイッチを構成する」へ進んでください。

例 - Sun Cluster ソフトウェアのインストール

次に、ノード phys-schost-1 (クラスタにインストールされる最初のノード) で scinstall のインストール作業が完了した時点で表示される進行状況メッセージの例を示します。


** Installing SunCluster 3.0 **
        SUNWscr.....done.
        SUNWscdev...done.
        SUNWscu.....done.
        SUNWscman...done.
        SUNWscsal...done.
        SUNWscsam...done.
        SUNWscrsmop.done.
        SUNWsci.....done.
        SUNWscid....done.
        SUNWscidx...done.
        SUNWscvm....done.
        SUNWmdm.....done.
 
Initializing cluster name to "sccluster" ... done
Initializing authentication options ... done
Initializing configuration for adapter "hme2" ... done
Initializing configuration for adapter "hme4" ... done
Initializing configuration for junction "switch1" ... done
Initializing configuration for junction "switch2" ... done
Initializing configuration for cable ... done
Initializing configuration for cable ... done
Setting the node ID for "phys-schost-1" ... done (id=1)
 
Checking for global devices global file system ... done
Checking device to use for global devices file system ... done
Updating vfstab ... done
 
Verifying that NTP is configured ... done
Installing a default NTP configuration ... done
Please complete the NTP configuration after scinstall has finished.
 
Verifying that "cluster" is set for "hosts" in nsswitch.conf ... done
Adding the "cluster" switch to "hosts" in nsswitch.conf ... done
 
Verifying that "cluster" is set for "netmasks" in nsswitch.conf ... done
Adding the "cluster" switch to "netmasks" in nsswitch.conf ... done
 
Verifying that power management is NOT configured ... done
Unconfiguring power management ... done
/etc/power.conf has been renamed to /etc/power.conf.060199105132
Power management is incompatible with the HA goals of the cluster.
Please do not attempt to re-configure power management.
 
Ensure routing is disabled ... done
Network routing has been disabled on this node by creating /etc/notrouter.
Having a cluster node act as a router is not supported by Sun Cluster.
Please do not re-enable network routing.
 
Log file - /var/cluster/logs/install/scinstall.log.276
 
Rebooting ...