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

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


注 -

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



注 -

このアップグレード中、コンソールにネットワークインタフェースエラーやメディエータエラーが表示されることがあります。これはアップグレードに付随する現象であり、無視してかまいません。


  1. (Solstice HA 1.3 for SAP のみ) hainetconfg(1M) を実行して現在の SAP 構成パラメータを取得します。

    SAP インスタンス構成データはアップグレード時に消去されます。そのため、hainetconfig(1M) コマンドを実行して現在の SAP パラメータを控えておく必要があります。それによって、後でパラメータを手作業で復元することができます。Sun Cluster HA for SAP の新しい構成パラメータについては、第 10 章「Sun Cluster HA for SAP のインストールと構成」を参照してください。


    phys-hahost1# hainetconfig
    

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

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

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

    phys-hahost1# hastop
    

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

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

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


    注 -

    Solaris では、ハードウェアプラットフォームによっては、サーバーが 30 分以上アイドル状態であった場合に自動的にサーバーが停止するように電源管理を構成しようとします。クラスタのハートビートだけでは、Sun Cluster サーバーがアイドル状態になって、停止するのを防ぐことはできません。このため、Solarisソフトウェアをインストールするときに、サーバーの自動停止機能を無効にする必要があります。電源管理の構成に使用されるダイアログは、下図に示すとおりです。このダイアログが表示されない場合、使用ハードウェアプラットフォームでサーバーの自動停止機能はサポートされていません。ダイアログが表示された場合、サーバーが 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
    
  5. Solaris カーネルファイルを更新します。

    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
  6. Solstice DiskSuite 4.2 または 4.2.1 にアップグレードします。

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

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

      Solstice DiskSuite 4.2 の場合、SUNWmdm パッケージへのパスは、/cdrom/multi_suncluster_sc_2_2/Sun_Cluster_2_2/Sol2_x/Product/ です。Solstice DiskSuite 4.2.1 の場合、パスは、/cdrom/multi_suncluster_sc_2_2/Sun_Cluster_2_2/Sol_2.8/Packages/ です。

      次の例では、いくつかのファイルがすでに存在することを示すメッセージが表示されます。各プロンプトで y を入力して新しいファイルをインストールしてください。


      注意 - 注意 -

      新しい SUNWmdm パッケージを追加する前に古い SUNWmdm パッケージを削除しないでください。そのようにすると、すべてのデータがアクセス不能になります。



      phys-hahost1# pkgadd -d /cdrom_path/ 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>
      ...
  7. クラスタパッケージをインストールする前に、パッチ 104996 (Solstice HA 1.3 SUNWha またはパッチ) を削除します (インストールされている場合)。

    手順 9scinstall(1M) を使ってクラスタパッケージを更新すると、パッチ 104996 の前提になるパッチが削除されます。scinstall(1M) の失敗を防ぐために、ここでパッチ 104996 を手作業で削除します。


    phys-hahost1# patchrm 104996-xx
    

  8. (Solstice HA for SAP のみ) カスタマイズした hasap_start_all_instanceshasap_stop_all_instances スクリプトがある場合は、Sun Cluster 2.2 へのアップグレードを始める前に安全な場所に保存します。

    アップグレード時には古いスクリプトが削除されるため、カスタマイズ内容を維持するには、これらのスクリプトを保存しておく必要があります。次のコマンドを使って、スクリプトを安全な場所にコピーしてください。これらのスクリプトは、手順 10 で復元します。


    # cp /opt/SUNWhasap/clust_progs/hasap_start_all_instances /safe_place
    # cp /opt/SUNWhasap/clust_progs/hasap_stop_all_instances /safe_place
    

  9. scinstall(1M) コマンドを使ってクラスタパッケージを更新します。

    scinstall(1M) のメニューから「Upgrade」を選択し、Framework パッケージの場所とクラスタ名を求めるプロンプトに応答します。Solstice HA 1.3 のパッケージが Sun Cluster 2.2 のパッケージで置き換えられます。


    phys-hahost1# cd /cdrom/multi_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
     
    Do you want to install these conflicting files [y,n,?,q] y
    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
    ...
     

  10. (Solstice HA 1.3 for SAP のみ) 手順 8 で保存したスクリプトを復元します。

    これらのスクリプトを /opt/SUNWcluster/ha/sap ディレクトリにコピーします。safe_place ディレクトリは、1手順 8 でスクリプトを保存した先のディレクトリです。スクリプトを復元したら、ls -l コマンドを使って、スクリプトが実行可能か確認します。


    phys-hahost1# cd /opt/SUNWcluster/ha/sap
    phys-hahost1# cp /safe_place/hasap_start_all_instances .
    phys-hahost1# cp /safe_place/hasap_stop_all_instances .
    phys-hahost1# ls -l /opt/SUNWcluster/ha/sap/hasap_st*
    -r-xr--r--   1 root     sys        18400 Feb  9 19:04 hasap_start_all_instances
    -r-xr--r--   1 root     sys        25963 Feb  9 19:04 hasap_stop_all_instances

  11. /.rhosts ファイルに、必要なエントリを追加します。

    /.rhosts ファイルには、3 つの IP アドレスからなるセットが 1 つまたは複数含まれています (クラスタのノード数によって異なる)。これらのアドレスは、Sun Cluster が内部的に使用するプライベートネットワーク IP アドレスです。アップグレードでは、これらの IP アドレスの一部が /.rhosts ファイルに追加されるだけで、各セットの最初の IP アドレスは失われます。したがって、不足しているアドレスをノードごとに手作業で /.rhosts ファイルに追加する必要があります。

    いくつのセットが必要になるかは、クラスタ内のノード数によって異なります。2 ノードクラスタの場合は、下図に示すノード 0 と 1 のアドレスを指定します。3 ノードクラスタの場合は、ノード 0、1、2 のアドレスを指定します。4 ノードクラスタの場合は、すべてのアドレスを指定します。


    # node 0
    204.152.65.33         # Manually insert this address on all nodes
    204.152.65.1									other than node0
    204.152.65.17
     
    # node 1
    204.152.65.34         # Manually insert this address on all nodes
    204.152.65.2									other than node1
    204.152.65.18
     
    # node 2
    204.152.65.35         # Manually insert this address on all nodes
    204.152.65.3									other than node2
    204.152.65.19
     
    # node 3
    204.152.65.36         # Manually insert this address on all nodes
    204.152.65.4									other than node3
    204.152.65.20

  12. (Solaris 2.6 と 7 のみ) install_scpatches を使って Sun Cluster の CD-ROM から Sun Cluster のパッチをインストールします。

    Sun Cluster CD-ROM から Sun Cluster のパッチをインストールするには、install_scpatches ユーティリティを使用します。


    # cd /cdrom/multi_suncluster_sc_2_2/Sun_Cluster_2_2/Sol_2.x/Patches
    # ./install_scpatches
     
    Patch install script for Sun Cluster 2.2 July 2000 Release
     
    *WARNING* SYSTEMS WITH LIMITED DISK SPACE SHOULD *NOT* INSTALL PATCHES:
    With or without using the save option, the patch installation process
    will still require some amount of disk space for installation and
    administrative tasks in the /, /usr, /var, or /opt partitions where
    patches are typically installed.  The exact amount of space will
    depend on the machine's architecture, software packages already 
    installed, and the difference in the patched objects size.  To be
    safe, it is not recommended that a patch cluster be installed on a
    system with less than 4 MBytes of available space in each of these
    partitions.  Running out of disk space during installation may result
    in only partially loaded patches.  Check and be sure adequate disk space
    is available before continuing.
     
    Are you ready to continue with install? [y/n]: y
     
    Determining if sufficient save space exists...
    Sufficient save space exists, continuing...
    Installing patches located in /cdrom/multi_suncluster_sc_2_2/Sun_Cluster_2_2/Sol_2.x/Patches
    Using patch_order file for patch installation sequence
    Installing 107388-03 ... okay.
    Installing 107748-02 ... okay.
    ...
    For more installation messages refer to the installation logfile:
      /var/sadm/install_data/Sun_Cluster_2.2_July_2000_Release_log
     
    Use '/usr/bin/showrev -p' to verify installed patch-ids.
    Refer to individual patch README files for more patch detail.
    Rebooting the system is usually necessary after installation.
     
    #

  13. Sun Cluster やボリュームマネージャの必須または推奨のパッチがある場合は、これをインストールします。

    手順 12 でインストールしたパッチの他に必須または推奨パッチがある場合は、サービスプロバイダかパッチ Web サイト http://sunsolve.sun.com から入手します。パッチの README ファイルの説明に従ってパッチをインストールしてださい。

  14. ユーザー root の PATH 環境変数にコマンドディレクトリ /opt/SUNWcluster/bin/opt/SUNWpnm/bin を指定します。ユーザー rootMANPATH 環境変数に /opt/SUNWcluster/man を指定します。

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


    phys-hahost1# reboot
    


    注 -

    再起動で、プライベートネットワークの喪失を示すエラーメッセージが表示されることがあります。この時点では、これらのエラーメッセージを無視しても問題ありません。


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

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

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

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

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

      phys-hahost1# scadmin startcluster phys-hahost1 sc-cluster
      
  17. 高可用性データベースのインスタンス構成データを再作成します。

    アップグレード時に、高可用性データベースのインスタンス構成データはアップグレードされません。したがって、適切な hadbms insert コマンドを使って個々のデータベースインスタンスを手作業で再作成する必要があります (dbms はデータベース名)。たとえば、haoracle inserthainformix inserthasybase insert などと指定します。

    アップグレード前インスタンス構成情報は、/etc/opt/SUNWhadf.obsolete/hadf/hadbms_databases ファイルにあります。個々の hadbms insert コマンドのパラメータについては、そのコマンドのマニュアルページと、本書の該当するデータベースの章を参照してください。たとえば、haoracle(1M) の場合は、haoracle(1M) のマニュアルページとこのマニュアルの第 5 章を参照してください。

  18. データベースインスタンスを有効にします。

    個々のデータベースインスタンスを有効にするには、適切な hadbms コマンドを使用します。たとえば、Oracle の場合には次のように指定します。


    phys-hahost1# haoracle start instance
    

  19. (Sun Cluster HA for SAP のみ) Sun Cluster HA for SAP データサービスの登録解除と再登録を行います。

    アップグレードの後では、Cluster Configuration Database (CCD) 内の Sun Cluster HA for SAP データサービスのメソッド名が正しくありません。メソッド名を訂正するには、Sun Cluster HA for SAP データサービスをまず無効にし、登録を解除してから、再登録をして CCD ファイルに正しいメソッド名を記録する必要があります。また、手順 1 で控えておいた SAP インスタンスを再作成します。

    1. hareg(1M) コマンドを使って Sun Cluster HA for SAP データサービスを無効にします。


      phys-hahost1# hareg -n sap
      

    2. Sun Cluster HA for SAP データサービスの登録を解除します。


      phys-hahost1# hareg -u sap
      

    3. Sun Cluster HA for SAP データサービスを登録します。

      次の例で CI_logicalhost は論理ホスト名です。


      phys-hahost1# hareg -s -r sap -h CI_logicalhost
      

    4. hadsconfig(1M) を実行して Sun Cluster HA for SAP の構成パラメータを復元します。

      新しい構成パラメータの説明については、第 10 章「Sun Cluster HA for SAP のインストールと構成」を参照してください。また、手順 1 で保存した構成情報を参照してください。


      phys-hahost1# hadsconfig
      


      注 -

      構成パラメータを設定したら、hareg(1M) コマンドを使ってデータサービスをアクティブにします。 *


    5. 構成パラメータを設定したら、hareg(1M) コマンドを使ってデータサービスをアクティブにします。


      phys-hahost1# hareg -y sap
      

    6. 構成ファイル /etc/opt/SUNWscsap/hadsconf を手作業で他のすべてのクラスタノードにコピーします。

      /etc/opt/SUNWscsap/hadsconf ディレクトリが存在しない場合は、まずそれを作成します。次に構成ファイルをすべてのノードにコピーします。


      phys-hahost1# ftp phys-host2
      ftp> put /etc/opt/SUNWscsap/hadsconf
      

  20. ローカルホストで次の動作を確認します。

    1. 論理ホスト上の構成が安定していることを確認します。

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

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

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

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

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

    phys-hahost2# hastat
    

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