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

Solstice HA 1.3 を Sun Cluster 2.2 にアップグレードするには

Solstice HA 1.3 を Sun Cluster 2.2 にアップグレードするための主な作業は、次のとおりです。このアップグレードは、管理ワークステーションから行うことも、あるいはクラスタ内の任意の物理ホストのコンソールから行うこともできます。管理ワークステーションを利用すると、柔軟にアップグレード作業を行うことができます。


注 -

次の手順は、管理ワークステーションを使用することを仮定して説明しています。



注意 - 注意 -

アップグレードを開始する前にすべてのローカルディスクと多重ホストディスクのバックアップを取ってください。また、すべてのシステムが動作可能で、不安定でないことを確認してください。システムに問題がある場合は、アップグレードを行わないでください。



注意 - 注意 -

Solstice HA 1.3 または Sun Cluster 2.1 内の hasap_start_all_instances あるいは hasap_stop_all_instances スクリプトをカスタマイズしている場合は、Sun Cluster 2.2 にアップグレードする前に、すべてのノードについて、それらスクリプトを安全な場所に保存し、アップグレードの終了後に復元してください。Sun Cluster 2.2 は、古いスクリプトを削除します。既存のカスタマイズ内容が失われないようにするには、必ず、既存のスクリプトを保存してください。

Sun Cluster 2.2 に実装されている構成パラメータは、Solstice HA 1.3 あるいは Sun Cluster 2.1 に実装されているパラメータと異なります。このため、Sun Cluster 2.2 にアップグレードした後に、hadsconfig(1M) コマンドを実行することによって、Sun Cluster HA for SAP を再構成する必要があります。アップグレードを開始する前に、既存の構成を表示し、現在の構成変数値を書き留めてください。Solstice HA 1.3 の場合は hainetconfig(1M) コマンド、Sun Cluster 2.1 の場合は hadsconfig(1M) コマンドを使用して、それぞれ構成を表示できます。Sun Cluster 2.2 にアップグレードしたら、hadsconfig(1M) コマンドを使用して、インスタンスを再作成してください。


Solstice HA 1.3 を Sun Cluster 2.2 にアップグレードする詳細な手順は、次のとおりです。

  1. Sun Cluster 2.2 のクライアントパッケージを管理ワークステーションに読み込みます。

    管理ワークステーションの構成をまだ行なっていない場合は、「インストール手順」を参照してください。

  2. 最初にアップグレードするサーバー上の Solstice HA を停止します。

    phys-hahost1# hastop
    

    クラスタで Solaris 2.6 を実行していて、Solaris 7 にアップグレードしない場合は、手順 5 に進んでください。

  3. オペレーティング環境を Solaris 2.6 または Solaris 7 にアップグレードします。

    Solaris のアップグレードには、オペレーティング環境を再インストールする方法ではなく、suninstall(1M) によるアップグレード方法を使用する必要があります。この場合、Solaris 2.6 または Solaris 7 環境をインストールできるよう、構成内のすべての Sun Cluster サーバーのルートディスク上のルート (/) および /usr パーティションサイズの増加が必要になることがあります。かならず全体ディストリビューション Solaris ソフトウェアパッケージをインストールしてください。詳細は、『Solaris のインストール (上級編)』を参照してください。


    注 -

    Solaris 2.6 や Solaris 7 では、ハードウェアプラットフォームによっては、サーバーが 30 分以上アイドル状態であった場合に自動的にサーバーが停止するように電源管理を構成しようとします。クラスタのハートビートだけでは、Sun Cluster サーバーがアイドル状態になって、停止するのを防ぐことはできません。このため、Solaris 2.6 や Solaris 7 をインストールするときに、サーバーの自動停止機能を無効にする必要があります。電源管理の構成に使用されるダイアログは、下図に示すとおりです。このダイアログが表示されない場合、使用ハードウェアプラットフォームでサーバーの自動停止機能はサポートされていません。ダイアログが表示された場合、サーバーが Sun Cluster 環境で正常に動作するように構成するには、1 つ目の問い合わせに「n」、2 つ目の問い合わせに「y」と答える必要があります。


    ****************************************************************
     This system is configured to conserve energy.
     After 30 minutes without activity, the system state will be
     saved to disk and the system will be powered off automatically.
     
     A system that has been suspended in this way can be restored
     back to exactly where it was by pressing the power key.
     The definition of inactivity and the timeout are user
     configurable. The dtpower(1M) man page has more information.
     ****************************************************************
     
     Do you wish to accept this default configuration, allowing
     your system to save its state then power off automatically
     when it has been idle for 30 minutes?  (If this system is used
     as a server, answer n. By default autoshutdown is
     enabled.) [y,n,?] n
     
     Autoshutdown disabled.
     
     Should the system save your answer so it won't need to ask
     the question again when you next reboot? (By default the
     question will not be asked again.) [y,n,?] y
    
  4. Solaris 2.6 または Solaris 7 カーネルファイルを更新します。

    Solaris のアップグレード時、/kernel/drv/sd.conf および /kernel/drv/ssd.conf ファイルはそれぞれ、/kernel/drv/sd.conf:2./kernel/drv/ssd.conf:2.x という名前に変更され、新しい /kernel/drv/sd.conf/kernel/drv/ssd.confファイルが作成されます。古いファイルと新しいファイルの相違点を確認するには、diff(1) コマンドを実行してください。Sun Cluster によって挿入された、古いファイル内の追加情報を新しいファイルにコピーしてください。追加情報は、次のような情報です。

    # Start of lines added by Solstice HA
     sd_retry_on_reservation_conflict=0;
     # End of lines added by Solstice HA
  5. Solstice DiskSuite 4.2 にアップグレードします。

    1. Solstice DiskSuite 4.2 ご使用にあたって』の手順に従って、Solstice DiskSuite をアップグレードします。

    2. ローカルホスト上の Solstice DiskSuite のメディエータパッケージ SUNWmdm をアップグレードします。

      phys-hahost1# pkgadd -d /cdrom/suncluster_sc_2_2/Sun_Cluster_2_2/Sol2_x/ ¥
       Product/ SUNWmdm
       
       Processing package instance <SUNWmdm>...
       
       Solstice DiskSuite (Mediator)
       (sparc) 4.2,REV=1998.23.10.09.59.06
       Copyright 1998 Sun Microsystems, Inc. All rights reserved.
       
       ## Executing checkinstall script.
       			This is an upgrade. Conflict approval questions may be
       			displayed. The listed files are the ones that will be
       			upgraded. Please answer "y" to these questions if they are
       			presented.
       Using </> as the package base directory.
       ## Processing package information.
       ## Processing system information.
          10 package pathnames are already properly installed.
       ## Verifying package dependencies.
       ## Verifying disk space requirements.
       ## Checking for conflicts with packages already installed.
       
       The following files are already installed on the system and are 
       being used by another package:
         /etc/opt/SUNWmd/meddb
         /usr/opt <attribute change only>
         /usr/opt/SUNWmd/man/man1m/medstat.1m
         /usr/opt/SUNWmd/man/man1m/rpc.metamedd.1m
         /usr/opt/SUNWmd/man/man4/meddb.4
         /usr/opt/SUNWmd/man/man7/mediator.7
         /usr/opt/SUNWmd/sbin/medstat
         /usr/opt/SUNWmd/sbin/rpc.metamedd
       
       Do you want to install these conflicting files [y,n,?,q] y
      ## Checking for setuid/setgid programs.
       
       This package contains scripts which will be executed with super-user 
       permission during the process of installing this package.
       
       Do you want to continue with the installation of <SUNWmdm.2> [y,n,?] y
       
       Installing Solstice DiskSuite (Mediator) as <SUNWmdm.2>
       ...
  6. ローカルホストのルート (/) ディレクトリから scinstall(1M) コマンドを使用して、クラスタパッケージをアップグレードします。

    scinstall(1M) のメニューから「Upgrade」を選択します。プロンプトに対して、フレームワークパッケージのインストール先とクラスタ名を入力します。scinstall(1M) プログラムは、Solstice HA 1.3 パッケージを Sun Cluster 2.2 パッケージに置き換えます。

    phys-hahost1# cd /cdrom/suncluster_sc_2_2/Sun_Cluster_2_2/Sol_2.x/Tools
    phys-hahost1# ./scinstall
    Installing: SUNWscins
     
     Installation of <SUNWscins> was successful.
     
             Checking on installed package state
     ............
     
     None of the Sun Cluster software has been installed
     
             <<Press return to continue>>
     
     ==== Install/Upgrade Software Selection Menu =======================
     Upgrade to the latest Sun Cluster Server packages or select package
     sets for installation. The list of package sets depends on the Sun
     Cluster packages that are currently installed.
     
     Choose one:
     1) Upgrade            Upgrade to Sun Cluster 2.2 Server packages
     2) Server             Install the Sun Cluster packages needed on a server
     3) Client             Install the admin tools needed on an admin workstation
     4) Server and Client	 Install both Client and Server packages
     
     5) Close              Exit this Menu
     6) Quit               Quit the Program
     
     Enter the number of the package set [6]: 1
     
     What is the directory where the Framework packages can be found
     [/cdrom/cdrom0]: .
     
     ** Upgrading from Solstice HA 1.3 **
     
     What is the name of the cluster? sc-cluster
    ...
  7. Sun Cluster 2.2 に必要なパッチをインストールします。

    適用可能なすべての Solstice DiskSuite パッチと Sun Cluster パッチをインストールしてください。SPARCstorage Array を使用している場合は、オペレーティング環境をインストールしたときに、最新の SPARCstorage Array パッチがインストールされています。ご購入先から必要なパッチを入手してください。パッチの README ファイルに含まれている指示に従って、パッチをインストールしてください。

  8. マシンを再起動します。

    phys-hahost1# reboot
    
  9. 遠隔ホストが持っていたディスクとデータサービスの所有権をアップグレードしたローカルホストに移します。

    1. 遠隔ホスト上の Solstice HA 1.3 のサービスを停止します。

      この例では、遠隔ホスト名を phys-hahost2 とします。

      phys-hahost2# hastop
      
    2. 遠隔ホスト上の Solstice HA 1.3 を停止したら、アップグレードしたローカルホスト上で Sun Cluster 2.2 を起動します。

      遠隔ホスト上の HA は停止しているため、scadmin(1M) コマンドを使用して、Sun Cluster を起動してください。この操作によって、アップグレードしたローカルホストがすべてのデータサービスをテイクオーバーします。この例では、phys-hahost1 がローカルの物理ホスト名、sc-cluster がクラスタ名です。

      phys-hahost1# scadmin startcluster phys-hahost1 sc-cluster
      
    3. 論理ホスト上の構成が安定していることを確認します。

      phys-hahost1# hastat
      
    4. クライアントがローカルホストからサービスを受けていることを確認します。

  10. リモートホストに対して 手順 2 から 手順 8 までの作業を繰り返します。

  11. リモートホストをクラスタに戻します。

    phys-hahost2# scadmin startnode
    
  12. 遠隔ホスト上のクラスタの再構成が完了したら、論理ホストから遠隔ホストにすべてのデータサービスをスイッチオーバーします。

    phys-hahost1# haswitch phys-hahost2 hahost2
    
  13. 遠隔ホスト上の Sun Cluster 2.2 の構成が安定した状態であることと、クライアントがサービスを受けていることを確認します。

    phys-hahost2# hastat
    

    これで、Solstice HA 1.3 から Sun Cluster 2.2 へのアップグレード作業は完了です。