この章では、Sun Cluster HA for Netscape データサービスを構成、管理する方法について説明します。
この章で説明する手順は次のとおりです。
Sun Cluster HA for Netscape データサービスは、Sun Cluster 環境で実行することによって可用性が高まる一群の NetscapeTM アプリケーションで構成されます。表 8-1 に、これらのデータサービスアプリケーションと対応する高可用性データサービスを示します。
表 8-1 Sun Cluster HA for Netscape データサービス
Netscape アプリケーション |
高可用性データサービス名 |
HA DSパッケージ名 |
---|---|---|
Netscape News Server |
Sun Cluster HA for Netscape News |
SUNWscnew |
Netscape Mail Server および Netscape Messaging Server |
Sun Cluster HA for Netscape Mail |
SUNWscnsm |
Netscape HTTP/Web Server |
Sun Cluster HA for Netscape HTTP |
SUNWschtt |
Netscape HTTP Secure |
Sun Cluster HA for Netscape HTTP |
SUNWschtt |
Netscape LDAP Server |
Sun Cluster HA for Netscape LDAP |
SUNWscnsl |
これらデータサービスでサポートしているバージョンの一覧については、『Sun Cluster 2.2 ご使用にあたって』を参照してください。
この章で説明する手順では、ディスクセット、論理ホスト、物理ホスト、スイッチオーバー、テークオーバー、データサービスといった Sun Cluster の概念の知識が必要です。これらの概念については、第 1 章「Sun Cluster 環境について」を参照してください。
Sun Cluster とは別に Netscape のアプリケーションソフトウェア (DNS、Netscape HTTP Server、Netscape News、Netscape Mail または Messaging Server、および Netscape LDAP) をインストールおよびテストする必要があります。インストール手順については、Netscape の各アプリケーションソフトウェア・インストールマニュアルを参照してください。
表 8-2 は、Sun Cluster 環境用に Netscape データサービスアプリケーションを構成するための主な作業をまとめています。
表 8-2 Netscape データサービスアプリケーションを構成するための主な作業
作業 |
説明箇所 |
---|---|
Solaris および Sun Cluster 環境のインストール、Netscape データサービスパッケージのインストール、必要なすべてのパッチのインストール | |
scadmin(1M) コマンドによるクラスタの起動 |
第 3 章「Sun Cluster ソフトウェアのインストールと構成」または scadmin(1M) のマニュアルページ |
(省略可能) 使用する Netscape データサービス用の DNS のインストールと構成 | |
Sun Cluster HA for Netscape データサービスのインストールと構成 |
特定のデータサービスのインストールに関する節と 「Sun Cluster HA for Netscape データサービスの構成」 |
Sun Cluster HA for Netscape データサービスの登録と起動 |
Sun Cluster 構成内で複数のデータサービスを実行する場合は、任意の順序でデータサービスを構成できます。ただし、これには 1 つ例外があり、Sun Cluster HA for DNS を使用する場合は、Sun Cluster HA for NFS を構成する前に Sun Cluster HA for DNS を構成する必要があります。DNS ソフトウェアは、Solaris オペレーティング環境に含まれています。詳細は、第 12 章「Sun Cluster HA for DNS のインストールと構成」を参照してください。クラスタが別のサーバーから DNS サービスを取得する場合は、最初にクラスタが DNS クライアントになるように構成してください。
インストール後は、手動で Netscape データサービスを起動したり、停止したりしないでください。いったん起動した Netscape データサービスは、Sun Cluster によって制御されます。
Netscape のアプリケーションソフトウェアをインストールする前に、個々のソフトウェアの構成手順を説明した次の各項を参照してください。これらの項には、Netscape アプリケーションをインストールするときに指定する必要がある Sun Cluster 特有の構成情報が述べられています。
Netscape のバイナリやデータディレクトリは、共有ディスクにインストールすることも、各クラスタノードのローカルディスクにインストールすることもできます。
バイナリやデータディレクトリを共有ディスクにインストールすると、管理が容易になり、使用するディスク容量が少なくてすみます。ただし、バイナリのアップグレード時にアプリケーションを停止しなければならないため、ダウン時間は増加します。
データディレクトリを共有ディスクにインストールし、バイナリを各ノードのローカルディスクにインストールすると、フェイルオーバー時の高可用性が確保されるだけでなく、アプリケーションアップグレード時のダウン時間が減少します。アプリケーションのホストに使用されていないノードでバイナリをアップグレードしてから、そのノードにアプリケーションを切り替えれば、元のノードでバイナリのアップグレードを行うことができます。短いスイッチオーバーの時間を除けば、アプリケーションは継続的に使用されます。
Sun Cluster HA for Netscape News は、Sun Cluster の制御下で動作する Netscape News です。この節では、ns-setup コマンドを使用して Netscape News をインストールし、Sun Cluster HA for Netscape News データサービスとして実行できるようにする方法を説明します。標準的な Netscape のインストール方法については、Netscape のマニュアルを参照してください。
ns-setup コマンドを使用して Netscape News をインストールするには、次の 2 つの前提条件が満たされている必要があります。
ニュースサーバーに対してユーザー名とグループ名が設定されている。Sun Cluster HA for Netscape News を実行するすべての Sun Cluster サーバー上にユーザー名とグループ名を作成し、すべてのシステム上でそれらの名前が同じ ID 番号を持つことを確認してください。
Sun Cluster HA for Netscape News を実行するすべてのサーバー上で DNS が構成され、有効になっている。すべての Sun Cluster サーバーに同じ内容の /etc/resolv.conf ファイルが存在し、/etc/nsswitch.conf ファイルの hosts エントリに dns が設定されている必要があります。
Netscape News では、デフォルトのインストールパラメータとは異なる設定がいくつか必要になります。特に次の点に注意してください。
物理ホスト名ではなく、論理ホスト名を指定する。
プロンプトに対してデフォルトのサーバーのルートディスクを使用しない。ファイルは多重ホストディスク上に存在する必要があります。
すべての起動スクリプトと停止スクリプトを最適なインストールディレクトリに置く。
この手順を開始する前に、表 8-2 に示した適切な前提作業を終了しておいてください。
この手順では、ns-setup コマンドと対話しながら作業を進めます。ただし、ここで説明するのは、Sun Cluster HA for Netscape News に関連する部分だけです。その他の部分については、適宜デフォルト値を選択するか、変更してください。
この章の手順はすべて、スーパーユーザーで行う必要があります。
それぞれの論理ホストがそのデフォルトマスターのサービスを受けていることを確認します。
Netscape アプリケーションは、論理ホストのデフォルトマスターである物理ホストからインストールします。必要に応じて、それぞれのデフォルトマスターからサービスを受けるように、論理ホストをスイッチオーバーします。
この後の手順の Netscape アプリケーションのインストールと構成では、サーバー名として、Sun Cluster 構成内で使用している論理ホスト名を使用してください。Netscape サーバーのフェイルオーバーが正しく行われるようにするには、論理ホスト名を使用する必要があります。
CD の Netscape News のインストールディレクトリから ns-setup コマンドを実行します。
CD の Netscape News の格納場所に移動して、ns-setup コマンドを実行してください。
phys-hahost1# cd /cdrom/news_server/solaris/news/install phys-hahost1# ./ns-setup |
CD 上の Netscape ディレクトリが、この例で示すディレクトリと異なることがあります。実際の場所については、Netscape のマニュアルを参照してください。
使用許諾契約書に続いて、次のような画面が表示されます。
Netscape Communications Corporation Netscape SuiteSpot Server Installation --------------------------------------------------------------- This program will extract the server files from the distribution media and install them into a directory you specify. This directory is called the server root and will contain the server programs, the Administration Server, and the server configuration files. To accept the default shown in brackets, press return. Server root [/usr/netscape/suitespot]: |
Netscape News サーバー用の論理ホスト名と適切な DNS ドメイン名を入力します。
完全名は、hahost1.sun.com というような hostname.domainname の形式になります。デフォルト値は使用しないでください。データサービス用のディレクトリを作成している場合は、そのディレクトリ名を入力することもできます。
Sun Cluster HA for Netscape News が正しくフェイルオーバーするには、この問い合わせだけでなく、他のすべての問い合わせに対しても、物理ホスト名ではなく、論理ホスト名を使用する必要があります。
たとえば、次のようにします。
Machine's name [phys-hahost1]: hahost1 |
画面に表示される指示に従って、サーバーのインストール作業を進めてください。多くの場合、デフォルト値をそのまま使用できます。
問い合わせが表示されたら、サーバーの管理者 ID とパスワードを入力します。
システムのガイドラインに従ってください。
デフォルトの管理ポートは、データサービスが待機するポートではないため、デフォルト値をそのまま使用できます。今後のために、ポート番号は書き留めておいてください。
次のメッセージが表示されると、インストールが完了したことになり、構成に進むことができます。
Your parameters are now entered into the Administration Server configuration files, and the Administration Server will be started. Writing configuration files ... |
Netscape ブラウザを起動します。
Web browser [netscape]: |
Netscape ブラウザが表示されます。
サーバーをインストールした論理ホストの URL を入力します。
次のようにします。
logicalhostname:admin_port_# |
プロンプトが表示されたら、正しいユーザーID とパスワードを入力します。
割り当てた論理ホスト名と管理ポート番号の入ったページが表示されます。
インストールする Netscape 製品とバージョンに対し「Create」をクリックします。
表示されたページの末尾にある「OK」をクリックします。
新しいサーバー名と対応するポート番号の入った「Success」ページが表示されます。
まだサービスを登録していない場合は、hareg(1M) コマンドを使用して登録してください。
論理ホスト上でだけデータサービスを登録するには、-h オプションを使用して、論理ホスト名を指定します。
# hareg -s -r nsnews [-h logicalhost] |
物理ホストから hadsconfig コマンドを実行します。
phys-hahost1: hadsconfig |
プロンプトに対して「nsnews」のメニュー項目番号を入力します。
インストールしたサービスによって、メニューの内容が異なることがあります。
プロンプトに対して「Create a new instance」の項目番号を入力します。
次のような画面が表示されます。
Name of the instance [?] : Logical host [?] : Base directory of product installation [?] : Server Port Number [?] : Time between probes (sec) [60] [?] : Time out value for the probe (sec) [60] [?] : Take over flag [y] [?] : |
インスタンス名を入力します。
論理ホスト名を入力します。
ベースディレクトリの位置として、サービスをインストールした論理ホストへのパスを入力します。
ここでは、起動および停止スクリプトの格納場所を指定します (例: /netscape-1/vol01/nsnews/hahost1)。実際のパスはこれと同じとは限りません。
サーバーを待機させるサーバーポート番号を入力します。
たとえば、New 用の 119 を入力します。
デフォルト値をそのまま使用するか、適切な情報を入力することによってデフォルト値を変更します。
ここでは、必要に応じてデフォルト値を変更できます。必要な入力を終えると、確認メッセージが表示されます。
このインスタンスを追加します。
「instance added to workfile」というメッセージが表示されます。
適切なメニュー項目番号を入力して、Main Menu に進みます。
「Configuration has changed in workfile」というメッセージが表示されます。
ワークファイルの情報に基づいて構成情報を更新します。
「checking node status...」というメッセージが表示されたら、適切な情報を入力します。
「Quit」のメニュー項目番号を入力します。
物理ホストのルートプロンプトに戻ります。
hareg(1M) コマンドを使用して、サービスを起動します。
1 つのホスト上でだけ hareg(1M) コマンドを実行してください。
# hareg -y nsnews |
サービスが待機している論理ホストに telnet 接続することによって、News サーバーが動作していることを確認します。
たとえば、次のようにします。
# telnet logicalhost 119 |
サーバーの動作が確認できたら、インストール作業は完了です。
Sun Cluster HA for Netscape HTTP は、Sun Cluster の制御の下に動作する Netscape Web/HTTP Server です。この節では、ns-setup コマンドを使用して Netscape Web/HTTP Server をインストールし、Sun Cluster HA for Netscape HTTP データサービスとして実行できるようにする手順を説明します。
いくつかある Netscape の web サーバー製品のどれでもインストールできます。標準的なインストール方法については、Netscape のマニュアルを参照してください。Sun Cluster や Solaris によって予約されているポート番号は割り当てないでください。詳細は、101 ページの「Sun Cluster の予約済みデフォルトポート番号」を参照してください。
Sun Cluster Manager (SCM) 用に Sun Cluster HA for Netscape HTTP サービスと HTTP サーバーを実行する場合は、HTTP サーバーがそれぞれ異なるポートで待機するように構成してください。異なるポートで待機するように構成しないと、2 つのサーバーの間でポートの衝突が発生します。Sun Cluster や Solaris によって予約されているポート番号は割り当てないでください。詳細は、「Sun Cluster の予約済みデフォルトポート番号」を参照してください。
web サーバーに対する URL マッピングの設定では、いくつかの取り決めに従う必要があります。たとえば、可用性を維持するには、CGI ディレクトリを設定するときに、マッピングされる側のディレクトリを、そのマッピングに対する HTTP 要求を処理する論理ホストに関連付けられた多重ホストディスク上に配置する必要があります。たとえば、/logicalhost/commerce/ns-home/cgi-bin に CGI ディレクトリをマッピングできます。CGI プログラムがバックエンドデータにアクセスする状況では、データもまた、HTTP 要求を処理する論理ホストに関連付けた多重ホストディスク情報に配置するようにしてください。CGI プログラムが RDBMS などのバックエンドサーバーにアクセスする状況では、バックエンドサーバーもまた Sun Cluster によって制御されるようにしてください。サーバーとして、Sun Cluster がサポートする RDBMS を使用する場合は、高可用性に対応した RDBMS パッケージを使用してください。その他のパッケージを使用した場合は、『Sun Cluster 2.2 API 開発ガイド』で説明している API を使用して、サーバーを Sun Cluster の制御下に置くことができます。
Netscape Web/HTTP Server では、デフォルトのインストールパラメータとは異なる設定がいくつか必要になります。 特に次の点に注意してください。
物理ホスト名ではなく、論理ホスト名を指定する。
プロンプトに対してデフォルトのサーバーのルートディスクを使用しない。ファイルは多重ホストディスク上に存在する必要があります。
インストール先のベースディレクトリのパスとして、起動および停止スクリプトの格納場所を指定する。
この手順を開始する前に、表 8-2 に示した適切な前提作業を終了しておいてください。
この手順では、ns-setup コマンドと対話しながら作業を進めます。ただし、ここで説明するのは、Sun Cluster HA for Netscape HTTP に関連する部分だけです。その他の部分については、適宜デフォルト値を選択するか、変更してください。
この章の手順はすべて、スーパーユーザーで行う必要があります。
それぞれの論理ホストがそのデフォルトマスターのサービスを受けていることを確認します。
各 Netscape アプリケーションは、論理ホストのデフォルトマスターである物理ホストからインストールします。必要に応じて、それぞれのデフォルトマスターからサービスを受けるように、論理ホストをスイッチオーバーします。
この後の手順の Netscape アプリケーションのインストールと構成では、サーバー名として、Sun Cluster 構成内で使用している論理ホスト名を使用してください。Netscape サーバーのフェイルオーバーが正しく行われるようにするには、論理ホスト名を使用する必要があります。
1 つのノードだけで CD 上の Netscape Commerce のインストールディレクトリから ns-setup コマンドを実行します。
phys-hahost1# cd /cdrom/commerce/solaris/us/https/install phys-hahost1# ./ns-setup |
CD 上の Netscape ディレクトリが、この例で示すディレクトリと異なることがあります。実際の場所については、Netscape のマニュアルを参照してください。
使用許諾契約書に続いて、次の画面が表示されます。
Netscape Communications Corporation Netscape SuiteSpot Server Installation --------------------------------------------------------------- This program will extract the server files from the distribution media and install them into a directory you specify. This directory is called the server root and will contain the server programs, the Administration Server, and the server configuration files. Server root [/usr/netscape/suitespot]: To accept the default in brackets, press return. |
Netscape Web サーバー用の論理ホスト名と適切な DNS ドメイン名を入力します。
完全名は、hahost1.sun.com というような hostname.domainname の形式になります。データサービス用のディレクトリを作成している場合は、そのディレクトリ名を入力することもできます。
Sun Cluster HA for Netscape HTTP が正しくフェイルオーバーするには、この問い合わせだけでなく、他のすべての問い合わせに対しても、物理ホスト名ではなく、論理ホスト名を使用する必要があります。
たとえば、次のようになります。
Machine's name [phys-hahost1]: hahost1 |
画面に表示される指示に従って、サーバーのインストール作業を進めてください。多くの場合、デフォルト値をそのまま使用できます。
問い合わせが表示されたら、サーバーの管理者 ID とパスワードを入力します。
システムのガイドラインに従ってください。
デフォルトの管理ポートは、データサービスが待機するポートではないため、デフォルト値をそのまま使用できます。今後のために、ポート番号は書き留めておいてください。
次のメッセージが表示されると、インストールが完了したことになり、構成に進むことができます。
Your parameters are now entered into the Administration Server configuration files, and the Administration Server will be started. Writing configuration files ... |
Netscape ブラウザを起動します。
Web browser [netscape]: |
Netscape ブラウザが表示されます。
サーバーをインストールした論理ホストの URL を入力します。たとえば、次のようになります。
logicalhostname:admin_port_# |
プロンプトが表示されたら、正しいユーザーID とパスワードを入力します。
割り当てた論理ホスト名と管理ポート番号の入ったページが表示されます。
インストールする Netscape 製品とバージョンに対し「Create」をクリックします。
表示されたページの末尾にある「OK」をクリックします。
新しいサーバー名と対応するポート番号の入った「Success」ページが表示されます。
この手順では、手順 2 で指定したサーバールートにディレクトリ https-hostname が作成されます。たとえば、このサーバールートが /netscape-1/vol01/nshttps で、作成済みのサーバーの名前が hahost1 の場合、作成されるディレクトリは /netscape-1/vol01/nshttps/https-hahost1 になります。
(Netscape HTTP Secure 4.0 のみ) 手順 9 で作成したディレクトリに keyPass というファイルを作成します。
通常、このファイルにはサーバー管理者のパスワードを入れます。これによって、HA データサービスは暗号化をオンにしてサーバーを実行できます。暗号化をオンまたはオフにして実行するためのサーバーの構成方法については、Netscape Enterprise Server のマニュアルを参照してください。
(Netscape HTTP Secure 4.0 のみ) Enterprise Server が暗号化モードで動作するために必要な証書は、そのサーバーが実行される可能性がある物理ホストごとに作成されなければなりません。これは、物理サーバーとは関係なしに 1 つの証書をインストールすればよかった Netscape HTTP 3.6 以前のバージョンとは異なります。この変更は、Enterprise OS バージョン 4 の Enterprise 証書管理モデルによって必要になったものです。
まだサービスを登録していない場合は、hareg(1M) コマンドを使用して登録してください。
論理ホスト上でだけデータサービスを登録するには、-h オプションを使用して、論理ホスト名を指定します。
# hareg -s -r nshttp [-h logicalhost] |
物理ホストから hadsconfig コマンドを実行します。
phys-hahost1# hadsconfig |
プロンプトに対して「nshttp」のメニュー項目番号を入力します。
インストールしたサービスによって、メニューの内容が異なることがあります。
プロンプトに対して「Create a new instance」の項目番号を入力します。
Name of the instance [?] Logical host [?] Base directory of product installation [?] Server Port Number [?] Time between probes (sec) [60] [?] Time out value for the probe (sec) [60] [?] Take over flag [y] [?] |
インスタンス名を入力します。
論理ホスト名を入力します。
ベースディレクトリの位置として、論理ホストへのパスを入力します。
ここでは、起動および停止スクリプトの格納場所を指定します (例: /netscape-1/vol01/nshttps/https-hahost1)。実際には、論理ホストとサービスのディレクトリの間に他のディレクトリが作成されている可能性があります。
サーバーを待機させるサーバーポート番号を入力します。
デフォルト値をそのまま使用するか、適切な情報を入力することによってデフォルト値を変更します。
ここでは、必要に応じてデフォルト値を変更できます。必要な入力を終えると、確認メッセージが表示されます。
このインスタンスを追加します。
「instance added to workfile」というメッセージが表示されます。
適切なメニュー項目番号を入力して、Main Menu に進みます。
「Configuration has changed in workfile」というメッセージが表示されます。
ワークファイルの情報に基づいて構成情報を更新します。
「checking node status...」というメッセージが表示されたら、適切な情報を入力します。
「Quit」のメニュー項目番号を入力します。
物理ホストのルートプロンプトに戻ります。
hareg(1M) コマンドを使用して、サービスを登録し、起動します。
1 つのホスト上でだけ hareg(1M) コマンドを実行してください。
# hareg -y nshttp |
サービスが待機している論理ホストに telnet 接続することによって、HTTP サーバーが動作していることを確認します。
たとえば、次のようにします。
# telnet logicalhost port# |
サーバーの動作が確認できたら、インストール作業は完了です。
Sun Cluster HA for Netscape Mail は、Netscape Mail または Netscape Messaging Server を使用することができます。この節では、ns-setup コマンドを使用して Netscape Mail をインストールし、Sun Cluster HA for Netscape Mail データサービスとして実行できるようにする手順を説明します。Netscape Messaging Server を使用する場合は、「Netscape Messaging Server」を参照してください。
Sun Cluster HA for Netscape Mail データサービスは非対称データサービスであり、クラスタ内の 1 つの論理ホストだけがメールサービスを提供します。
Sun Cluster HA for Netscape Mail サービスの障害検証により、短時間の間に /var/log/syslog が一杯になってしまうことがあります。これを避けるには、/etc/syslog.conf ファイル内の mail.debug をコメントアウトし、syslogd(1M) デーモンに HUP シグナルを送信することによって、mail.debug メッセージのログ記録を無効にしてください。
Sun Cluster HA for Netscape Mail を構成するには、Sun Cluster サーバー上で次の条件が満たされている必要があります。
各サーバーが固有のユーザーID とグループ ID を持ち、グループ ID には固有のユーザーID のみ含まれている。メールシステムは、これらの固有の ID を使用します。Sun Cluster HA for Netscape Mail を実行するすべてのサーバー上で、名前と番号が同じである必要があります。
Sun Cluster HA for Netscape Mail を実行するすべてのサーバー上で DNS が構成され、有効になっている。すべての Sun Cluster サーバーに同じ内容の /etc/resolv.conf ファイルが存在し、/etc/nsswitch.conf ファイルの hosts エントリに dns が設定されている必要があります。
Netscape Mail は 1 つのサーバーにインストールするため、Sun Cluster HA for Netscape Mail では、デフォルトのインストールパラメータとは異なる設定がいくつか必要になります。特に次の点に注意してください。
物理ホスト名ではなく、論理ホスト名を指定する。
多重ホストディスク上に Netscape Mail ソフトウェアとスプールディレクトリをインストールする。
プロンプトに対してデフォルトのサーバーのルートディスクを使用しない。ファイルは多重ホストディスク上に存在する必要があります。
インストール先のベースディレクトリのパスとして、起動および停止スクリプトの格納場所を指定する。
この手順を開始する前に、表 8-2 に示した適切な前提作業を終了しておいてください。
この手順では、ns-setup コマンドおよび Sun Cluster のコマンドと対話しながら作業を進めます。ただし、ここで説明するのは、Sun Cluster HA for Netscape Mail に関連する部分だけです。その他の部分については、適宜デフォルト値を選択するか、変更してください。
この章の手順はすべて、スーパーユーザーで行う必要があります。
それぞれの論理ホストがそのデフォルトマスターのサービスを受けていることを確認します。
Netscape アプリケーションは、論理ホストのデフォルトマスターである物理ホストからインストールします。必要に応じて、それぞれのデフォルトマスターからサービスを受けるように、論理ホストをスイッチオーバーします。
この後の手順の Netscape アプリケーションのインストールと構成では、サーバー名として、Sun Cluster 構成内で使用している論理ホスト名を使用してください。Netscape サーバーのフェイルオーバーが正しく行われるようにするには、論理ホスト名を使用する必要があります。
CD 上の Netscape Mail のインストールディレクトリから ns-setup コマンドを実行します。
CD 上の Netscape Mail の格納場所に移動して、ns-setup コマンドを実行してください。
phys-hahost1# cd /cdrom/commerce/solaris/us/https/mail phys-hahost1# ./ns-setup |
CD 上の Netscape ディレクトリが、この例で示すディレクトリと異なることがあります。実際の場所については、Netscape のマニュアルを参照してください。
使用許諾契約書に続いて、次のような画面が表示されます。
Netscape Communications Corporation Netscape SuiteSpot Server Installation --------------------------------------------------------------- This program will extract the server files from the distribution media and install them into a directory you specify. This directory is called the server root and will contain the server programs, the Administration Server, and the server configuration files. Server root [/usr/netscape/suitespot]: To accept the default in brackets, press return. |
Netscape Web Server 用の論理ホスト名と適切な DNS ドメイン名を入力します。
完全名は、hahost1.sun.com というような hostname.domainname の形式になります。デフォルト値は使用しないでください。データサービス用のディレクトリを作成している場合は、そのディレクトリ名を入力することもできます。
Sun Cluster HA for Netscape Mail が正しくフェイルオーバーするには、この問い合わせだけでなく、他のすべての問い合わせに対しても、物理ホスト名ではなく、論理ホスト名を使用する必要があります。
たとえば、次のようになります。
Machine's name [phys-hahost1]: hahost1 |
画面に表示される指示に従って、サーバーのインストール作業を進めてください。多くの場合、デフォルト値をそのまま使用できます。
問い合わせが表示されたら、サーバーの管理者 ID とパスワードを入力します。
システムのガイドラインに従ってください。
デフォルトの管理ポートは、データサービスが待機するポートではないため、デフォルト値をそのまま使用できます。
次のようなメッセージが表示されます。
Attempting to start Netscape Admin Server... |
プロンプトが表示されたら、次に進みます。
ユーザー名とグループ名、ドメイン名を指定します。
Sun Cluster HA for Netscape Mail を実行する Sun Cluster サーバー上で、メールサーバーに設定したユーザー名を入力してください。
システムコンポーネント用のディレクトリを指定します。
システムのいろいろなコンポーネントをインストールするディレクトリの問い合わせがあります。たとえば、/hahost1/mail/mailbox や /hahost1/mail/postoffice というように論理ホスト上のディレクトリを指定してください。
サーバーの識別名を指定します。
NIS モジュールと Greeting Forms 機能を使用するかどうかを指定します。
次の例に示すように、指定した情報を確認する画面が表示されます。
Mail user name: Domain name: Mailbox directory: Post Office directory: Server Identifier: NIS lookups: Greeting forms: You may accept these choices or quit the installation. Install Netscape Messaging Server? [y]: |
Netscape Messaging Server をインストールし、表示されるプロンプトに応答します。
構成の設定方法に従い、適切に情報を指定してください。すべての変更が有効になると、次のメッセージが表示されます。
Netscape Messaging Server installation complete |
プロンプトが表示されたら Netscape Messaging Server を起動します。
まだサービスを登録していない場合は、hareg(1M) コマンドを使用して登録してください。
論理ホスト上でだけデータサービスを登録するには、-h オプションを使用して、論理ホスト名を指定します。
# hareg -s -r nsmail [-h logicalhost] |
物理ホストから hadsconfig コマンドを実行します。
[phys-hahost1]: hadsconfig |
プロンプトに対して「nsmail」のメニュー項目番号を入力します。
インストールしたサービスによって、メニューの内容が異なることがあります。
プロンプトに対して「Create a new instance」の項目番号を入力します。
Name of the instance [nsmail] [?] Logical host [?] Take over flag [y] Following are the specifications of this instance Name of the instance : Logical host : Number of times to retry : Time between retries (sec) : Configuration File : Fault probe program : Time between probes (sec) : Time out value for the probe (sec) : Take over flag : Add this instance ? (yes/no) [yes] Instance added to workfile Press enter to return to main menu |
インスタンス名を入力します。
論理ホスト名を入力します。
その他の項目については、構成に従ってデフォルト値をそのまま使用するか、変更します。
必要に応じてデフォルト値を変更できます。
このインスタンスを追加します。
「Instance added to workfile」というメッセージが表示されます。
プロンプトが表示されたら、Main Menu に進みます。
「Configuration has changed in workfile」というメッセージが表示されます。
プロンプトが表示されたら、ワークファイルの情報に基づいて構成情報を更新します。
「Quit」のメニュー項目番号を入力します。
物理ホストのルートプロンプトに戻ります。
hareg(1M) コマンドを使用して、サービスを登録し、起動します。
1 つのホスト上でだけ hareg(1M) コマンドを実行してください。
# hareg -y nsmail |
これで、Netscape Mail のインストールは完了です。
Sun Cluster HA for Netscape Mail は、Netscape Messaging Server または Netscape Mail のもとで使用できます。この節では、Netscape Messaging Server をインストールし、それを Sun Cluster HA for Netscape Mail データサービスとして実行できるようにする手順を説明します。Netscape Mail を使用する場合は、「Netscape Mail」 を参照してください。
Sun Cluster HA for Netscape Mail データサービスは非対称データサービスです。したがって、メールサービスを提供するのはクラスタ内の 1 つの論理ホストだけです。
Sun Cluster HA for Netscape Mail サービスの障害検証によって /var/log/syslog が短時間でいっぱいになることがあります。これを防ぐには、/etc/syslog.conf ファイルで mail.debug メッセージのログを無効にする必要があります。それには、mail.debug エントリをコメント化し、HUP シグナルを syslogd(1M) デーモンに送信します。
Netscape Messaging Server では、Netscape Mail とは異なる概念と特徴が新たに導入されます。次の各項では、これらの概念や特徴と、Netscape Messaging Server のインストール手順や構成手順を説明します。
Netscape Messaging Server では、サーバールートという概念が導入されます。これは、Netscape Messaging Server のシステム全体とその構成済みインスタンスを含むディレクトリです。ただし、唯一の例外として、/etc/nsserver.cfg ファイルだけがサーバールートに含まれていません。このファイルには、ノードのすべてのサーバールートが列挙されています。Sun Cluster 2.2 では、サーバールートごとに 1 つの Netscape Messaging Server インスタンスしか許可されていません。さらに、論理ホストごとに 1 つのサーバールートしか許されていないため、論理ホストごとに 1 つのインスタンスしか許可されません。
Netscape Messaging Server のインストール時には、Netscape Messaging Server から構成ディレクトリサーバーを使用できなければなりません。Netscape Messaging Server は、インストール時に構成ディレクトリサーバーに構成データを入力するためです。Netscape Messaging Server は、最初のインストール後に構成データをローカルキャッシュにコピーするため、これ以後、構成ディレクトリサーバーは必ずしも必須ではありません。構成ディレクトリサーバーが使用できなくなると、Netscape Messaging Server は、自身のローカルキャッシュにある構成データを使って起動することを示す警告メッセージを表示します。このメッセージは無視してかまいません。
Netscape Messaging Server のために Netscape Directory Server をインストールする場合は、さらに Sun Cluster HA for Netscape LDAP のインストールと構成を行ことで、Netscape Directory Server の可用性が高まります。Sun Cluster HA for Netscape LDAP の詳細は、「Netscape Directory Server (LDAP)」を参照してください。
Netscape Messaging Server には、smtpd、popd、imapd、mshttpd、stored という別個の 5 つのデーモンがあります。これらのデーモンの開始や停止は個別に行うことができます。これらのデーモンは、異常終了する場合、個別に異常終了します。
Sun Cluster HA for Netscape 障害監視では、デーモンプロセスの存在と、プロトコルサービスが使用可能かどうかを検査します。プロセスの存在検査では、障害検証によって、デーモンが存在するかどうかが周期的に確認されます。デーモンが存在しないと、アプリケーションに障害があったものとみなされ、現在の構成パラメータに従ってアクションがとられます。プロトコルの検査では、障害検証によっデーモンが周期的に検査され、タイムアウトを示すエラーコードに対してのみアクションがとられます。サーバーの応答が単に遅いだけでフェイルオーバーが不用意に起るのを防ぐため、Sun Cluster HA for Netscape では、デフォルトのタイムアウト値は 660 秒に設定されています。
この障害監視モデルでは完全にアクティブなメールサーバーが前提になるため、デーモンを停止しなければならない管理作業を行う場合は、(hareg -n を使って) Sun Cluster HA for Netscape データサービスを必ずオフにする必要があります。そうしないと、障害検証によってアクションがとられます。データサービスは、管理作業が終ってから (hareg -y を使って) オンにしてください。
Sun Cluster HA for Netscape による監視では、smtpd、popd、imapd デーモンに対しプロセスの存在検査 (ローカル検証を使用) とプロトコルの検証 (ローカル検証とリモート検証を使用)が両方とも行われます。mshttpd と stored デーモンに対しては、プロセスの存在検査 (ローカル検証を使用) だけが行われます。mshttpd と stored デーモンにはリモート検証が行われないため、mshttpd プロセスが存在し、停止していても、Sun Cluster HA for Netscape はアクションをとりません。したがって、Web メールクライアントが接続できない場合は、mshttpd プロセスを手作業で再起動する必要があります。
Sun Cluster HA for Netscape では、SNMP サブエージェントの監視は行われません。
Netscape Messaging Server では、ユーザー/グループディレクトリを使用します (Netscape Mail 3.5 ではオプションでした)。ユーザー/グループディレクトリは、メッセージングサーバーが電子メールの処理に使用する LDAP ディレクトリです。ユーザー/グループディレクトリを構成する前にメッセージングサーバーのインストールや起動を行うことはできますが、メッセージングサーバーのインストール後は、メッセージングサーバーからユーザー/グループディレクトリにアクセスできなければなりません。この前提条件があるため、ユーザー/グループディレクトリを提供するディレクトリサーバーは、多重ホストディスクか、クラスタ化された別のサーバーにインストールすべきです。それによって、可用性が高まります。
構成ディレクトリとユーザー/グループディレクトリは、同じディレクトリサーバーインスタンスで提供することも、異なるインスタンスで提供することもできます。
Sun Cluster 2.2 で動作する Netscape Messaging Server には、次の前提条件と制約事項があります。
Netscape Messaging Server のインストールでは、リスナーデーモン popd、smtpd、imapd、mshttpd、stored を構成するときに、それぞれをアクティブにし、それぞれのデフォルトポートを指定する必要があります。そうしないと、起動プログラムと障害監視プログラムは、これらのデーモンが非アクティブであるものとみなし、現在の構成パラメータに従ってアクションをとります。さらに、これら 2 つの条件が満たされないと、Netscape Messaging Server は正しく起動されません。詳細は、「障害監視動作」を参照してください。
サーバールートごとに 1 つの Netscape Messaging Server インスタンスしか構成できません。また、論理ホストごとに 1 つのサーバールートしか構成できません。したがって、論理ホストごとに 1 つの Netscape Messaging Server インスタンスしか構成できません。
Sun Cluster 2.2 では、Netscape Messaging Server の Multiplexor 機能はサポートされません。Multiplexor はサーバールートの外にあるサービスを必要とするため、Multiplexor の検証やフェイルオーバーを Sun Cluster HA for Netscape で行えないためです。
Netscape Messaging Server はその一部のプロトコルに対し SSL 対応の待機をサポートしますが、Sun Cluster HA for Netscape は、SSL を使用する個々のポートの障害検証は行いません。ただし、SSL 対応ポートで待機する Netscape Messaging Server インスタンスに対し、基本的な再起動とフェイルオーバーをサポートします。
Netscape Messaging Server は SMTP プラグインをサポートします。SMTP プラグインとは、Netscape Messaging Server で独自の SMTP 処理を行うためにインストールおよび構成する共有ライブラリです。Netscape Messaging Server の構成で SMTP プラグインの使用を指定する場合は、Sun Cluster で共有ライブラリを保護する必要があります。それには、これらのライブラリを共有ディスクに (できるだけ、Netscape Messaging Server のサーバールートツリー内に) 置くか、マスターノードになる可能性がある各ノードのローカルディスクに置きます。
Netscape Messaging Server は、TCP ベースのサービス (IMAP、POP、HTTP、SMTP) に対し、サービスごとに高度なアクセス制御をサポートします。この機能を有効にするには、サーバーへのアクセスを選別するフィルタを作成します。ただし、フィルタを作成する場合は、マスターになったノード上の root が Netscape Messaging Server プロトコルサーバーに接続するのを妨げないように注意が必要です。root がいずれかのプロトコルサーバーへの接続を妨げられると、プロトコルサービスが使用可能かどうかを検査するデータサービス検証が失敗し、Sun Cluster HA for Netscape が現在の構成パラメータに従ってアクションをとります。この動作は、問題のフィルタが削除されるか、検証が終了するまで無制限に続きます。プロトコルサーバーのマスターになる可能性があるすべてのノードからの root アクセスは常に可能でなければなりません。
次の手順に従って、Sun Cluster と共に Netscape Messaging Service をインストールします。
1 つのクラスタノードのみに Netscape Messaging Service をインストールします。 共有ディスク上にある 1 つのサーバールートすべてのコンポーネントを インストールします (「サーバールート」 を参照してください)。フェイルオーバーやスイッチオーバーの場合、このサーバールートは必要に応じて自動的に 他のノードでも使用可能になります。
クラスタに固有なガイドラインは適宜説明します。 インストールするにはスーパーユーザー特権が必要です。
この手順の各例では、論理ホスト名を hahost1、Netscape Messaging Server インスタンス名を nms、LDAP インスタンス名を ldap とします。
クラスタにユーザーアカウントを作成します。
クラスタコンソールで次のコマンドを実行します。ユーザーアカウントには任意の名前を使用できます。デフォルトは mailsrv です。
# useradd -c nms_userid -d /export/mailsrv -g nobody -m mailsrv |
scinstall(1M) コマンドを使って Netscape Messaging Server をインストールします。
scinstall(1M) の詳しい使い方については、第 3 章「Sun Cluster ソフトウェアのインストールと構成」を参照してください。
# scinstall |
1 つのクラスタノード (1 つのみ) で、インストールディレクトリから Netscape Messaging Server 設定スクリプトを起動します。
# ./setup ... Welcome to the Netscape Server Family installation program This program will install Netscape Server products and the Netscape Console on your computer. It is recommended that you have "root" privilege to install the software. During the installation: - Press "Return" to choose the default and go to the next screen - Type "Control-B" to go back to the previous screen - Type "Control-C" to cancel the installation program - Enter comma-separated list of numbers, e.g. 1, 2, 3, for selection of multiple items. Would you like to continue with setup? [Yes]: Y BY INSTALLING THIS SOFTWARE YOU ARE CONSENTING TO BE BOUND BY AND ARE BECOMING A PARTY TO THE AGREEMENT FOUND IN THE LICENCE.TXT FILE. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS AGREEMENT, PLEASE DO NOT INSTALL OR USE THIS SOFTWARE Do you agree to the license terms? [No]: Y |
「Netscape Servers」のインストールを選択します。
「Netscape Servers」は必須ですが、「Netscape Console」は任意です。
Please select what you would like to install: 1. Netscape Servers Install Netscape Servers and the integrated Netscape Console onto your computer. 2. Netscape Console This will install the Netscape Console as a stand-alone Java application on your desktop or laptop. To accept the default shown in brackets, press the Return key. Please select the component you want to install [1]: 1 |
「Custom installation」を選択します。
Please select the installation type for this installation: 1. Express installation Allow you to quickly install the servers using the most. common options and pre-defined defaults. Useful for quick evaluation of the products. 2. Typical installation Allow you to specify common defaults and options. 3. Custom installation Allow you to specify more advanced options. This is only recommended for experienced server administrators. To accept the default shown in brackets, press the Return key. Choose your installation type [2]: 3 |
論理ホスト上のインストールディレクトリを指定します。
デフォルトを使用せずに、論理ホスト上の場所を指定してください。
This program will extract the server files from the distribution media and install them into a directory you specify. This directory is called the server root and will contain the server programs, the Administration Server, and the server configuration files. To accept the default shown in brackets, press the Return key. Server root [/usr/netscape/server4]: /hahost1/nsm |
Netscape Server Family の構成要素を選択します。
必須の構成要素は「Netscape Server Family Core Components」、「Netscape Administration Services」、「Netscape Messaging Suite」です。これらの機能については、Netscape のマニュアルを参照してください。
「Netscape Directory Suite」構成要素は任意ですが、「Netscape Directory Suite」をここでインストールしない場合は、構成ディレクトリのためにディレクトリサーバーが必要です。構成ディレクトリ用のディレクトリサーバーインスタンスの指定は、手順 14 で行います。詳細は、 「構成ディレクトリサーバーの必要性」を参照してください。
Netscape Server Family components: Components with a number in () contain additional subcomponents which you can select using subsequent screens. 1. Netscape Server Family Core Components (3) 2. Netscape Directory Suite (2) 3. Administration Services (2) 4. Netscape Messaging Suite (3) Specify the components you wish to install [All]: 1, 3, 4 |
インストールする Netscape Server Family Core Components を選択します。
これらの機能については、Netscape のマニュアルを参照してください。
Netscape Server Family Core Components components: Components with a number in () contain additional subcomponents which you can select using subsequent screens. 1. Netscape Server Family Core Components 2. Netscape Core Java classes 3. Java Runtime Environment Specify the components you wish to install [1, 2, 3]: 1 |
インストールする Directory Suite の構成要素を選択します。
これらの機能については、Netscape のマニュアルを参照してください。
Netscape Directory Suite components: Components with a number in () contain additional subcomponents which you can select using subsequent screens. 1. Netscape Directory Server 2. Netscape Directory Server Console Specify the components you wish to install [1, 2]: |
インストールする Administration Services の構成要素を選択します。
これらの機能については、Netscape のマニュアルを参照してください。
Administration Services components: Components with a number in () contain additional subcomponents which you can select using subsequent screens. 1. Netscape Administration Server 2. Netscape Console Specify the components you wish to install [1, 2]: |
インストールする Netscape Messaging Suite の構成要素を選択します。
「Netscape Messaging Server」は必須ですが、「Multiplexor」と「Mailstone Tools」は任意です。これらの機能については、Netscape のマニュアルを参照してください。
Netscape Messaging Suite components: Components with a number in () contain additional subcomponents which you can select using subsequent screens. 1. Netscape Messaging Server 2. Netscape Messaging Multiplexor 3. Netscape Messaging Server Mailstone Tools Specify the components you wish to install [1]: 1 |
ノードの論理ホスト名とドメイン名を指定します。
論理ホスト名は完全指定で指定します。
Enter the fully qualified domain name of your machine. A fully qualified domain name is of the type <hostname>.<domainname> (e.g. foobar.widget.com). To accept the default shown in brackets, press the Return key. Machine's name [ ]: hahost1.eng.sun.com |
UNIX ユーザーとグループを作成します。
自由に指定できます。このステップでは、クラスタ固有の要件はありません。
Choose a UNIX user and group to run individual Netscape server as. It is recommended that this user should have no privileges in the rest of the system. The Administration Server will give this group some permissions in the server root to perform server-specific operations. You should create this user and group using your native UNIX system utilities if they do not already exist. Example for this user: nobody or nsuser or your choice... Example for this group: nobody or nsgroup or your choice... To accept the default shown in brackets, press the Return key. System User [nobody]: System Group [nobody]: |
手順 2 で構成ディレクトリサーバーを指定しなかった場合は、ここで「Netscape Configuration Directory Server」をインストールします。
詳細は、「構成ディレクトリサーバーの必要性」を参照してください。
Netscape server information is stored in the Netscape configuration directory server, which you may have already set up. If so, you should configure this server to be managed by the configuration server. To do so, the following information about the configuration server is required: the fully qualified host name of the form <hostname>.<domainname>(e.g. hostname.domain.com), the port number, the suffix, and the DN and password of a user having permission to write the configuration information, usually the Netscape configuration directory administrator. If you want to install this software as a standalone server, or if you want this instance to serve as your Netscape configuration directory server, press Enter. Do you want to register this software with an existing Netscape configuration directory server? [No]: |
データを格納するディレクトリサーバーを指定します。
この画面は、Netscape Directory Server をインストールする場合 (つまり、手順 7 で項目 2 の「Netscape Directory Suite」を選択した場合) だけ表示されます。no と答えると、ユーザー/グループディレクトリは、ここでインストールするディレクトリサーバーに格納されます。yes と答えると、代替ディレクトリの情報を要求するプロンプトが一連の画面に表示されます。
If you already have a directory server you want to use to store your data, such as user and group information, answer Yes to the following question. You will be prompted for the host, port, suffix, and bind DN to use for that directory server. If you want this directory server to store your data, answer No. Do you want to use another directory to store your data? [No]: |
リスナーポートを指定します。
LDAP リスナーポートとして使用するポートと同じものを指定します。
The directory server usually listens to network port 389. You may accept this as the default by pressing Enter. If you want the directory server to listen to a different port, enter the port number and press Enter. Only the superuser may use port numbers less than 1024. Directory server network port [389]: |
このディレクトリサーバーインスタンスの固有識別子を指定します。
Each instance of a directory server requires a unique identifier. Press Enter to accept the default, or type in another name and press Enter. Directory server identifier [phys-hahost1]: ldap-hahost1 |
管理者 ID を指定します。
Please enter the administrator ID for the Netscape configuration directory server. This is the ID typically used to log in to the console. You will also be prompted for the password. Netscape configuration directory server admin ID [admin]: root Password: Password (again): |
接尾辞 (ディレクトリツリーの root) を指定します。
The suffix is the root of your directory tree. You may have more than one suffix. Suffix [o=sun.com]: |
管理ユーザーを指定します。
Certain directory server operations require an administrative user. This user is referred to as the Directory Manager and typically has a bind Distinguished Name (DN) of cn=Directory Manager. Press Enter to accept the default value, or enter another DN. In either case, you will be prompted for the password for this user. The password must be at least 8 characters long. Directory Manager DN [cn=Directory Manager]: Password: Password (again): |
Administrative Domain 名を指定します (この機能を使用する場合)。
The Administration Domain is a part of the configuration directory server used to store information about Netscape software. If you are managing multiple software releases at the same time, or managing information about multiple domains, you may use the Administration Domain to keep them separate. If you are not using administrative domains, press Enter to select the default. Otherwise, enter some descriptive, unique name for the administration domain, such as the name of the organization responsible for managing the domain. Administration Domain [sun.com]: |
このディレクトリサーバーで複製機能を使用するかどうかを指定します。
Replication is used to duplicate all or part of a directory server to another directory server. This can be used for failsafe purposes, to ensure that the directory data is always online and up-to-date in case one server goes down. It is also useful for distributing directory data from a central main repository to remote directory servers. Do you want to configure this directory server to use replication? [No]: |
サンプルエントリをインストールします。
You may install some sample entries in this directory instance. These entries will be installed in a separate suffix and will not interfere with the normal operation of the directory server. Do you want to install the sample entries? [No]: |
ディレクトリインスタンスにデータを入力します。
You may wish to populate your new directory instance with some data. You may already have a file in LDIF format to use or some suggested entries can be added. If you want to import entries from an LDIF file, you may type in the full path and filename at the prompt. If you want the install program to add the suggested entries, type the word suggest at the prompt. The suggested entries are common container entries under your specified suffix, such as ou=People and ou=Groups, which are commonly used to hold the entries for the persons and groups in your organization. If you do not want to add any of these entries, type the word none at the prompt. Type the full path and filename, the word suggest, or the word none [suggest]: |
スキーマ検査を有効または無効にします。
If you are going to import an old database immediately after or during installation, and you think you may have problems with your old schema, you may want to turn off schema checking until after the import. If you choose to do this, schema checking will remain off until you manually turn it back on. Netscape recommends that you turn it back on as soon as possible. Do you want to disable schema checking? [No]: |
Administration Server のポート番号を指定します。
空いている任意のポートを選択します。
The Administration Server is separate from any of your application servers since it listens to a different port and access to it is restricted. Pick a port number between 1024 and 65535 to run your Administration Server on. You should NOT use a port number which you plan to run an application server on, rather, select a number which you will remember and which will not be used for anything else. The default in brackets was randomly selected from the available ports on your system. To accept the default, press return. Administration port [15956]: |
Administration Server の IP アドレスを指定します。
If you want to configure the Administration Server to bind to a specific IP address rather than the default IP address of the current host, enter the address below. To accept the default shown in brackets, press the Return key. IP address: |
Server Administrator ID として root を指定します。
Server administration is restricted to people who know the Server Administrator user ID and password, and to people who access the server from a host you specify. When you access the Administration Server, it will prompt you for the Server Administrator user ID and password. Please select a user ID and password. Server Administrator ID [admin]: root |
Administration Server のユーザーを指定します。
The Administration Server program runs as a certain user on your system. This user should be different than the one which your application servers run as. Only the user you select will be able to write to your configuration files. If you run the Administration Server as "root", you will be able to use the Server Administration screen to start and stop your application servers. Run Administration Server as [root]: |
新しいサーバーインスタンスを作成します。
This installer allows you to create a new server instance now. You will need to have the following information handy, in order to create a server instance. 1. Unix user account for the server to run as 2. User account to be notified of messages sent to 'postmaster' Do you wish to create a new server instance at this time? [yes]: yes |
Nessaging Server のデフォルトドメインを指定します。
The Messaging Server needs a default domain. This information is used by the server when performing functions like routing and serving messaging clients. Enter the default domain you wish Messaging Server to use [sunsoft.eng.sun.com]: sun.com |
デフォルトホストとして使用する完全指定の論理ホスト名を指定します。
The Messaging Server needs a default host name. This information is used by the server when performing functions like routing and serving messaging clients. Enter the host name you wish Messaging Server to use [hahost1.eng.sun.com]: <return> |
Messaging Server のこのインスタンスの名前を指定します。
The Messaging Server needs a server ID in the current server root. You will refer to the server instance you are creating using this server ID. The server administration utilities and configuration information depend on this information. Enter the server ID you wish Messaging Server to use [msg-phys-hahost1]: nms-hahost1 |
手順 2 で作成した Messaging Server ユーザーを指定します。
The Messaging Server runs as a non-privileged user. This account must exist on this system. It is recommended that this user be a member of the Netscape server group you defined earlier in this installation (i.e. nobody). Enter the user you wish Messaging Server to run as [mailsrv]: |
ポストマスターのアカウント、LDAP 識別名、電子メールアドレスを指定します。 ポストマスターアカウントに関するガイドラインについては、Netscape Messaging Server のマニュアルを参照してください。
The Messaging Server needs a postmaster account for the Users/ Groups Directory Server that you are using. ldap://hahost1.domain.sun.com:389/o=sun.com The installer will create a postmaster account now. Error and informational messages will be sent by the Messaging Server to this account. Press any key to continue: <return> ... Enter the postmaster's DN [cn=postmaster, o=sun.com]: <return> ... Enter the postmaster's e-mail address: postmaster@hahost1.domain.sun.com |
SMTP、IMAP、POP3、Webmail に対しデフォルトポートを使用することを指定します。
The Messaging Server needs a port number for the SMTP daemon to listen to. The standard network port is 25. However, you can choose other ports. Enter the SMTP port you wish Messaging Server to use [25]:<return> ... Enter the IMAP port you wish Messaging Server to use [143]:<return> ... Enter the POP3 port you wish Messaging Server to use [110]:<return> ... Enter the Webmail port you wish Messaging Server to use [80]: <return> |
メール待ち行列のディレクトリを指定します。
The Messaging Server needs a directory where mail is queued before it is delivered to individual mailboxes or other servers. This directory should be secure enough to prevent undesirable eavesdropping or tampering. Enter the queue directory you wish the Messaging Server to use [/hahost1/nms/msg-nms/queue]: |
メールボックスを作成するディレクトリを指定します。
The Messaging Server needs a directory where mailboxes are created for user accounts and e-mail messages are stored. This directory should be secure enough to prevent undesirable eavesdropping or tampering and large enough to hold the e-mail messages of all the user accounts you intend to create on this server. Enter the store directory you wish the Messaging Server to use [/hahost1/nms/msg-nms-hahost1/store/partition/primary]: |
Webmail エンドユーザー管理アカウントを作成します。
The Messaging Server requires a Webmail end user administration account. This account will exist in the Users/Groups Directory Server and must have privileges to manage the Webmail preferences of any user. Enter the name and password of the end user administrator. NOTE: If this account doesn't exist, it will be created and the required privileges will be given to the account. Webmail end user admin's uid: [webmail]: Password: Password (again): |
インストールの後にどのサーバーインスタンスを起動するかを指定します。
The server instances the installer will create are listed below. Choose the server instances you wish to start after the installation. Enter 'none' if you want none of the servers to be started. 1. msg-nms-hahost1Which server instances do you wish to start up? [All]: |
Messaging Server のパラメータを確認します。
Listed below are all the parameters you specified that create a Messaging Server instance. Please check to make sure they are correct.Press '^B' to go back to the dialogs you visited and correct them if necessary When you are done, press enter to continue. Domain : sun.com Hostname : hahost1.domain.sun.com Server ID : msg-nms-hahost1 Server User : mailsrv SMTP Port : 25 IMAP Port : 143 POP3 Port : 110 Webmail Port : 80 Queue Directory : /hahost1/nms/msg-nms-hahost1/queue Store Directory : /hahost1/nms/msg-nms-hahost1/store/part <enter> ... |
設定プログラムは、指定されたパラメータを使って、指定された Netscape Messaging Server 構成要素を設定し、起動します。
インストールキャッシュ install.inf を保持するかどうかを指定します。
... The installation cache "install.inf" generated by the setup program is located in the server root's setup directory. This file can be used as a silent installation script for installation of similar servers on other machines. It, however, may contain sensitive information such as user IDs and passwords you have entered.Would you like to remove it? [Yes]: No |
Messaging Server を手作業で停止します。
共有ディスク上のサーバールートを制御しているノードから次のコマンドを実行します。
# cd /hahost1/nms/nms_instancename # ./stop-msg |
Sun Cluster HA for Netscape LDAP は、LDAP (Lightweight Directory Assistance Protocol) を使用して、Sun Cluster の制御下で動作する Netscape Directory Server です。この節では、ns-setup コマンドを使用して Netscape Directory Server をインストールし、Sun Cluster HA for Netscape LDAP データサービスとして実行できるようにする手順を説明します。
各 Sun Cluster サーバーに SUNWscnsl パッケージをまだインストールしていない場合は、pkgadd を使用してインストールしてください。
Netscape Directory Server では、デフォルトのインストールパラメータとは異なる設定がいくつか必要になります。特に次の点に注意してください。
物理ホスト名ではなく、論理ホスト名を指定する。
プロンプトに対してデフォルトのサーバーのルートディスクを使用しない。ファイルは多重ホストディスク上に存在する必要があります。
インストール先のベースディレクトリのパスとして、起動および停止スクリプトの格納場所を指定する。
この手順を開始する前に、表 8-2 に示した適切な前提作業を終了しておいてください。
この手順では、ns-setup コマンドと対話しながら作業を進めます。ただし、ここで説明するのは、Sun Cluster HA for Netscape LDAP に関連する部分だけです。その他の部分については、適宜デフォルト値を選択するか、変更してください。ここでは基本的な手順のみ示します。詳細は、Netscape Directory Server のマニュアルを参照してください。
この章の手順はすべて、スーパーユーザーで行う必要があります。
それぞれの論理ホストがそのデフォルトマスターのサービスを受けていることを確認します。
Netscape アプリケーションは、論理ホストのデフォルトマスターである物理ホストからインストールします。必要に応じて、それぞれのデフォルトマスターからサービスを受けるように、論理ホストをスイッチオーバーします。
この後の手順の Netscape アプリケーションのインストールと構成では、サーバー名として、Sun Cluster 構成内で使用している論理ホスト名を使用してください。Netscape サーバーのフェイルオーバーが正しく行われるようにするには、論理ホスト名を使用する必要があります。
Netscape Directory Server をインストールします。
クラスタにディレクトリサービスを提供する論理ホストを選択し、その論理ホストの共有ディスクに Netscape Directory Server 製品をインストールしてください。
CD のインストールディレクトリから ns-setup コマンドを実行します。
Netscape Directory Server のインストールディレクトリから ns-setup コマンドを実行してください。完全なサーバー名の入力を求めるプロンプトが表示されたら、論理ホスト名を指定する必要があります。次の例では、hahost1 が論理ホストです。
phys-hahost1# ./ns-setup Server root [/usr/netscape/suitespot]: /hahost1/d1/ns-home Full name [phys-hahost1]: hahost1 |
Netscape 管理サーバーを使用して、Netscape Directory Server を構成し、検査します。
詳細は、Netscape のマニュアルを参照してください。
Sun Cluster HA for Netscape のパッケージと Netscape のアプリケーションをインストールすると、個々のデータサービスの構成に進むことができます。
現在 Sun Cluster は、Sun Cluster HA for Netscape News、Sun Cluster HA for Netscape HTTP、Sun Cluster HA for Netscape Mail、Sun Cluster HA for Netscape LDAP の 4 つの Netscape データサービスをサポートしています。
Sun Cluster HA for Netscape のインスタンスはそれぞれに独立しており、個別に構成可能です。たとえば、web サーバーはいくつでもインストール、構成可能であり、そうしたサーバーはそれぞれにインスタンスとみなされます。
Sun Cluster HA for Netscape のデータサービスはどれも、hadsconfig(1M) コマンドを使用して、構成します。
hareg(1M) コマンドを実行し、Sun Cluster HA for Netscape のデータサービスを登録します。
クラスタ内の全ホストではなく、マスターになる可能性のある他のすべての論理ホストにデータサービスパッケージをインストールした場合は、-h オプションを使用して、その論理ホスト名を指定してください。
表 8-3 データサービスの登録名と構文
データサービス |
構文 |
---|---|
Sun Cluster HA for Netscape HTTP |
hareg -s -r nshttp [-h logicalhost] |
Sun Cluster HA for Netscape News |
hareg -s -r nsnews [-h logicalhost] |
Sun Cluster HA for Netscape Mail (Mail および Messaging Server 用) |
hareg -s -r nsmail [-h logicalhost] |
Sun Cluster HA for Netscape LDAP |
hareg -s -r nsldap [-h logicalhost] |
hadsconfig(1M) コマンドを実行して、Sun Cluster データサービスを構成します。
Sun Cluster HA for Netscape データサービスのインスタンスを作成、編集、削除には、hadsconfig(1M) コマンドを使用します。詳細は、hadsconfig(1M) のマニュアルページを参照してください。hadsconfig(1M) コマンドに対する入力については、「Sun Cluster HA for Netscape のデータサービスに対する構成パラメータ」を参照してください。
phys-hahost1# hadsconfig |
Sun Cluster HA for Netscape News および Sun Cluster HA for Netscape HTTP は、news および http サーバーの複数インスタンスのインストールをサポートしており、それらインスタンスはクラスタ内のどこにでも配置できます。メールプロトコルは標準ポートからのみ受信するため、Sun Cluster HA for Netscape Mail のインスタンスはクラスタ内に 1 つだけ存在することができます。
hareg -Y コマンドを実行して、すべてのサービスを有効にし、クラスタの再構成を行います。
phys-hahost1# hareg -Y |
これで Sun Cluster HA for Netscape のデータサービスの構成は、完了です。
この節では、Sun Cluster HA for Netscape のデータサービス用の構成ファイルを作成するときに hadsconfig(1M) コマンドに供給する情報について説明します。hadsconfig(1M) コマンドはテンプレートを使用して、構成ファイルを作成します。このテンプレートには、デフォルト値を持つパラメータや値が明示的に指定されたパラメータ、値が指定されていないパラメータが含まれています。値が指定されていないパラメータに対しては、必ず値を指定する必要があります。
障害検証パラメータは特に、Sun Cluster HA for Netscape のデータサービスの性能に影響することがあります。検証間隔値を小さくしすぎると (障害検証の回数の増加により)、システム性能が低下することがあり、その結果として、システムが単に遅くなっただけでも、誤ったテイクオーバーが発生したり、再起動が試みられたりすることがあります。
障害検証のパラメータは、Sun Cluster HA for Netscape HTTP、Sun Cluster HA for Netscape News、Sun Cluster HA for Netscape LDAP に対して設定できます。Sun Cluster HA for Netscape Mail に障害検証のパラメータを設定することはできません。
Sun Cluster HA for Netscape のデータサービスのどれについても、テイクオーバーフラグを設定する必要があります。テイクオーバーフラグは、Sun Cluster による部分的フェイルオーバーの処理方法を指定します。このフラグに設定できる値は次の 2 つです。
y (yes) - Sun Cluster は、他のマスターへの論理ホストのスイッチオーバーを試みますが、スイッチオーバーに失敗した場合、論理ホストは元のマスターに留まります。
n (no) - Sun Cluster は、データサービスに問題を検出したときでも、別のマスターに論理ホストを移動しません。また、論理ホスト上のデータサーバーあるいはデータベースに障害が発生した場合でも、何の処置も行いません。
表 8-4 で説明しているオプションを指定することによって、hadsconfig(1M) の入力書式に列挙されている Sun Cluster HA for Netscape News 用のパラメータを設定してください。
表 8-4 Sun Cluster HA for Netscape News に対する構成パラメータ
パラメータ |
説明 |
---|---|
インスタンス名 |
インスタンスの識別子として使用される名前タグ。Sun Cluster HA for Netscape News が生成するログメッセージでは、この名前タグが参照される。hadsconfig(1M) コマンドは、ここで指定された値の前にパッケージ名を付ける。たとえば nsnews_119 を指定すると、SUNWscnew_nsnews_119 が生成される。 |
論理ホスト |
Sun Cluster HA for Netscape News のこのインスタンスにサービスを提供する論理ホスト名 |
製品をインストールしたベースディレクトリ |
Netscape News をインストールした、多重ホストディスク上の位置を示すルート付きのパス名。このパスは、インスタンスのパスである (例: /hahost1/news-hahost1)。 |
検証間隔 |
障害検証を行う時間間隔 (秒単位)。デフォルトの間隔は 60 秒。 |
検証タイムアウト |
障害検証をタイムアウトにする時間 (秒単位)。デフォルトのタイムアウト値は 20 秒。 |
Sun Cluster HA for Netscape News のこのインスタンス専用のポート。ns-setup コマンドに指定した「Server Port」値を指定する。 |
|
テイクオーバーフラグ |
このデータサービスインスタンスで障害が発生した場合に、関連付けられている論理ホストのテイクオーバーまたはフェイルオーバーのどちらを行うかを指定する。指定できる値は、y (yes) または n (no) のいずれかである。 |
Sun Cluster HA for Netscape HTTP のインストールのベースディレクトリに HA 管理ファイルシステムを使用しないでください。vfstab.logicalhost ファイルを参照して、選択したベースディレクトリが HA 管理ファイルシステムではないことを確認してください。
表 8-5 で説明しているオプションを指定することによって、hadsconfig(1M) 入力書式に列挙されている Sun Cluster HA for Netscape HTTP 用のパラメータを設定してください。
表 8-5 Sun Cluster HA for Netscape HTTP に対する構成パラメータ (Netscape Mail の場合)
パラメータ |
説明 |
---|---|
インスタンス名 |
インスタンスの識別子として使用される名前タグ。Sun Cluster が生成するログメッセージでは、この名前タグが参照される。hadsconfig(1M) コマンドは、ここで指定された値の前にパッケージ名を付ける。たとえば nshttp_80 を指定すると、SUNWschtt_nshttp_80 が生成される。 |
論理ホスト |
Sun Cluster HA for Netscape HTTP のこのインスタンスにサービスを提供する論理ホスト名 |
製品をインストールしたベースディレクトリ |
製品をインストールしたベースディレクトリに、サーバーの種類とサーバーポート番号を加えたもの (例: /hahost1/https-hahost)。 |
検証間隔 |
障害検証を行う時間間隔 (秒単位)。デフォルトの間隔は 60 秒。 |
検証タイムアウト |
障害検証をタイムアウトにする時間 (秒単位)。デフォルトのタイムアウト値は 20 秒。 |
サーバーポート番号 |
Sun Cluster HA for Netscape HTTP のこのインスタンス専用のポート。ns-setup コマンドに指定した「Server Port」値を指定する。 |
テイクオーバーフラグ |
このデータサービスインスタンスで障害が発生した場合に、関連付けられている論理ホストのテイクオーバーまたはフェイルオーバーのどちらを行うかを指定する。指定できる値は、y (yes) または n (no) のいずれかである。 |
Sun Cluster HA for Netscape HTTP のインストール先のベースディレクトリに HA 管理ファイルシステムを使用しないでください。vfstab.logicalhost ファイルを参照して、選択したベースディレクトリが HA 管理ファイルシステムではないことを確認してください。
表 8-6 で説明しているオプションを指定することによって、hadsconfig(1M) 入力書式に列挙されている Sun Cluster HA for Netscape Mail 用のパラメータを設定してください。
表 8-6 Sun Cluster HA for Netscape Mail に対する構成パラメータ (Netscape Mail の場合)
パラメータ |
説明 |
---|---|
インスタンス名 |
インスタンスの識別子として使用される名前タグ。Sun Cluster が生成するログメッセージでは、この名前タグが参照される。hadsconfig(1M) コマンドは、ここで指定された値の前にパッケージ名を付ける。たとえば nsmail を指定すると、SUNWscnsm_nsmail が生成される。 |
論理ホスト |
Sun Cluster HA for Netscape Mail のこのインスタンスにサービスを提供する論理ホスト名 |
テイクオーバーフラグ |
このデータサービスインスタンスで障害が発生した場合に、関連付けられている論理ホストのテイクオーバーまたはフェイルオーバーのどちらを行うかを指定する。指定できる値は、y (yes) または n (no) のいずれかである。 |
表 8-7 に示すパラメータを使って Sun Cluster HA for Netscape Mail を構成します。
表 8-7 Sun Cluster HA for Netscape Mail (Netscape Messaging Server の場合) に対する構成パラメータ
パラメータ |
説明 |
---|---|
インスタンス名 |
インスタンスの識別子として使用される名前タグ。Sun Cluster が生成するログメッセージでは、この名前タグが参照される。hadsconfig(1M) コマンドは、ここで指定された値の前にパッケージ名を付ける。たとえば nsmail を指定すると、SUNWscnsm_nsmail が生成される。 |
論理ホスト |
Sun Cluster HA for Netscape Mail のこのインスタンスにサービスを提供する論理ホスト名 |
製品をインストールしたベースディレクトリ |
Netscape Messaging Server をインストールした多重ホスト上の場所を示すルートパス名。たとえば、/hahost1/nms-hahost1 といった「インスタンスパス」。 |
テイクオーバーフラグ |
このデータサービスインスタンスで障害が発生した場合に、関連付けられている論理ホストのテイクオーバーまたはフェイルオーバーのどちらを行うかを指定する。指定できる値は、y (yes) または n (no) のいずれかである。 |
表 8-8 で説明しているオプションを指定することによって、hadsconfig(1M) 入力書式に列挙されている Sun Cluster HA for Netscape LDAP 用のパラメータを設定してください。
表 8-8 Sun Cluster HA for Netscape LDAP に対する構成パラメータ
パラメータ |
説明 |
---|---|
インスタンス名 |
インスタンスの識別子として使用される名前タグ。Sun Cluster が生成するログメッセージでは、この名前タグが参照される。hadsconfig(1M) コマンドは、ここで指定された値の前にパッケージ名を付ける。たとえば nsldap を指定すると、SUNWhansm_nsldap が生成される。 |
論理ホスト |
Sun Cluster HA for Netscape LDAP のこのインスタンスにサービスを提供する論理ホスト名 |
製品をインストールしたベースディレクトリ |
製品をインストールしたベースディレクトリ。論理ホスト名の前に ns-slapd__を付けて指定する (例: /hahost1/d1/ns-home/ns-slapd_hahost1/)。指定したディレクトリに start スクリプトが含まれていることを確認すること。 |
サーバーポート番号 |
Sun Cluster HA for Netscape LDAP のこのインスタンス専用のポート。ns-setup コマンドに指定した「Server Port」値を指定する。デフォルト値は 389。 |
テイクオーバーフラグ |
このデータサービスインスタンスで障害が発生した場合に、関連付けられている論理ホストのテイクオーバーまたはフェイルオーバーのどちらを行うかを指定する。指定できる値は、y (yes) または n (no) のいずれかである。 |
検証間隔 |
障害検証を行う時間間隔 (秒単位)。デフォルトの間隔は 60 秒。 |
検証タイムアウト |
障害検証をタイムアウトにする時間 (秒単位)。デフォルトのタイムアウト値は 30 秒。 |