これらの要件は、Sun Cluster HA for Samba にのみ適用されます。Sun Cluster HA for Samba のインストールと構成を始める前に、次の要件を満たしておく必要があります。
次の要件を満たさないと、データサービスの構成がサポートされない場合があります。
ADS をサポートする Windows 200x サーバーのメンバーとして Samba をセットアップする必要がある場合、クラスタノードで kerberos を構成し、Ldap と kerberos 両方のサポートを指定して Samba をコンパイルする必要があります。この作業については、Samba のマニュアルを参照してください。
Samba コンポーネントと依存関係 — Sun Cluster HA for Samba データサービスは、Samba インスタンスとそれぞれのコンポーネントを保護するように構成できます。表 1–3 で、各コンポーネントとコンポーネント間の依存関係について簡単に説明します。
表 3 Samba と依存関係 (-> 記号で示す)
コンポーネント |
説明 |
---|---|
Samba (必須) |
-> Winbind リソース (Winbind と単一の Samba インスタンスを配備する場合)。詳細は、以下の説明を参照してください。 -> Winbind リソースグループ (Winbind と複数の Samba インスタンスを配備する場合)。詳細は、以下の説明を参照してください。 -> SUNW.HAStoragePlus リソース SUNW.HAStoragePlus リソースは、Samba のファイルシステムのマウントポイントを管理し、ファイルシステムがマウントされるまでは Samba が起動しないようにします。 |
Winbind(任意) |
-> SUNW.HAStoragePlus リソース SUNW.HAStoragePlus リソースは、Winbind のファイルシステムのマウントポイントを管理し、ファイルシステムがマウントされるまでは Winbind が起動しないようにします。 |
Samba コンポーネントの詳細は、smbd(8)、nmbd(8)、winbindd(8)、および smb.conf(5) のマニュアルページを参照してください。
Winbind を使用する Samba のインスタンスが 1 つだけ構成に含まれる場合、Winbind リソースを Samba リソースと同じリソースグループに登録する必要があります。また、Winbind リソースが Samba リソースと同じ構成ディレクトリを使用するようにしなければなりません。Samba リソースの起動は Winbind リソースに依存するようにしなければなりません。Resource_dependencies については、r_properties(5) のマニュアルページを参照してください。
Winbind を使用する Samba のインスタンスが構成に複数含まれる場合は、Winbind リソースをスケーラブルリソースにして、個別の構成ディレクトリを与え、すべての Samba リソースの起動が Winbind スケーラブルリソースグループに依存するようにしなければなりません。RG_dependencies については、rg_properties(5) のマニュアルページを参照してください。Winbind の構成ディレクトリを広域ファイルシステムとしてマウントする必要があります。
各 Samba コンポーネントは、/opt/SUNWscsmb/xxx/util に構成/登録ファイルがあります。xxx は個々の Samba コンポーネントを表す 3 文字の略語です。これらのファイルによって、Sun Cluster に Samba コンポーネントを登録できます。
これらのファイル内では、適切な依存関係が適用されます。
# cd /opt/SUNWscsmb # # ls -l samba/util total 6 -rwxr-xr-x 1 root sys 1526 Dec 20 14:44 samba_config -rwxr-xr-x 1 root sys 736 Dec 20 14:44 samba_register # # ls -l winbind/util total 4 -rwxr-xr-x 1 root sys 1006 Dec 20 14:44 winbind_config -rwxr-xr-x 1 root sys 613 Dec 20 14:44 winbind_register # # more samba/util/samba_config :::::::::::::: samba/util/samba_config :::::::::::::: # # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # This file will be sourced in by samba_register and the parameters # listed below will be used. # # These parameters can be customized in (key=value) form # # RS - name of the resource for the application # RG - name of the resource group containing RS # SMB_BIN - name of the Samba bin directory # SMB_SBIN - name of the Samba sbin directory # (If no sbin then specify the bin directory) # SMB_INST - name of the Samba configuration directory # SMB_LOG - name of the Samba log directory # for log.smbd and log.nmbd # (If not specified will default # to $SMB_INST/logs) #SMB_LIB_PATH - name of library paths to LD_LIBRARY_PATH # FMUSER - name of the Samba fault monitor user # FMPASS - name of the Samba fault monitor user password # FMDOMAIN - name of the NT-domain faultmonitor user is configured on. # ( This should be used if faultmonitor user is not configured # on the same NT-domain Samba is member to ) # LH - name of the LogicalHostname SC resource # HAS_RS - name of the Samba HAStoragePlus SC resource # # The following two examples illustrate sample parameters # for Samba packaged with Solaris 9 and Samba downloaded # from http://www.samba.org. # # Please be aware that /global/samba, /global/samba/SAMBA1 and # uid/pwd of samba are used just as examples. You will need # change this if your values are different. # # SUNWsmb* packaged with Solaris 9 # # SMB_BIN=/usr/sfw/bin # SMB_SBIN=/usr/sfw/sbin # SMB_INST=/local/samba/SMB1 # SMB_LOG=/local/samba/SMB1/logs # FMUSER=samba # FMPASS=samba # FMDOMAIN= # # Latest production release from http://www.samba.org # # SMB_BIN=/global/samba/bin # SMB_SBIN=/global/samba/sbin or /global/samba/bin # SMB_INST=/global/samba/SAMBA1 # SMB_LOG=/global/samba/SAMBA1/logs # FMUSER=samba # FMPASS=samba # FMDOMAIN= # RS= RG= SMB_BIN= SMB_SBIN= SMB_INST= SMB_LOG= SMB_LIB_PATH=/usr/lib:/usr/local/lib FMUSER= FMPASS= FMDOMAIN= LH= HAS_RS= :::::::::::::: # more winbind/util/winbind_config :::::::::::::: winbind/util/winbind_config :::::::::::::: # # # Copyright 2003 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # This file will be sourced in by samba_register and the parameters # listed below will be used. # # These parameters can be customized in (key=value) form # # RS - name of the resource for the application # RG - name of the resource group containing RS # WB_BIN - name of the Winbind bin directory # WB_SBIN - name of the Winbind sbin directory. Used in Samba 3. # WB_INST - name of the Winbind configuration directory # NTUSER - name of the NT fault monitor user #WB_LIB_PATH- name of library paths to LD_LIBRARY_PATH #WB_DISCACHE - Should winbind cache be disabled. Used in Samba 3. #WB_SINGLEMODE - Should winbind run in single mode. Used in Samba 3. # LH - name of the LogicalHostname SC resource # HAS_RS - name of the Winbind HAStoragePlus SC resource # # The following example illustrates sample parameters # for the latest production release of Samba downloaded # from http://www.samba.org. # # # Latest production release from http://www.samba.org # # WB_BIN=/global/samba/bin # WB_SBIN=/global/samba/sbin # WB_INST=/global/samba/winbind # NTUSER=samba # RS= RG= WB_BIN= WB_SBIN= WB_INST= NTUSER= WB_LIB_PATH=/usr/lib:/usr/local/lib WB_DISCACHE=FALSE WB_SINGLEMODE=FALSE LH= HAS_RS= |
ADS をサポートする Windows 200x サーバーのメンバーとして Samba を設定する必要があり、Samba バイナリが Ldap および kerberos ライブラリと静的にリンクしていない場合、/opt/SUNWscsmb/samba/utils/samba_config の SMB_LIB_PATH パラメータと、/opt/SUNWscsmb/winbind/utils/winbind_config の WB_LIB_PATH を構成して、これらのバイナリが存在するディレクトリを指定する必要があります。
smb.conf ファイル — Sun Cluster HA for Samba データサービスには、サンプルの smb.conf ファイルがあります。以下のパラメータが設定されていることを確認してください。
smb.conf ファイルは Samba で最も重要なファイルと言えます。smb.conf(5) のマニュアルページを参照し、以下のパラメータの構成に関する詳細を確認してください。Solaris 9 に含まれる Samba のマニュアルページを参照するには SUNWsfman パッケージがインストールされている必要があります。
2.2.x 用および Samba 3.0.x 用の smb.conf ファイルにある Samba のパラメータ。
bind interfaces only を True に設定する必要があります。
interface を論理ホスト名に対して定義する必要があります。
netbios name は、Samba サーバーを識別する NetBIOS 名に設定する必要があります。
security では、Samba インスタンスがどのセキュリティーモードで稼働するかを指定します。
2.2.x 用の smb.conf ファイルにある Winbind パラメータ。
workgroup は、Samba の smb.conf エントリと同じ値に設定する必要があります。
password server は、Samba の smb.conf エントリと同じ値に設定する必要があります。
template homedir は、Samba の smb.conf エントリと同じ値に設定する必要があります。
template shell は、Samba の smb.conf エントリと同じ値に設定する必要があります。
winbind uid は、Samba の smb.conf エントリと同じ値に設定する必要があります。
winbind gid は、Samba の smb.conf エントリと同じ値に設定する必要があります。
winbind enum users は、Samba の smb.conf エントリと同じ値に設定する必要があります。
winbind use default domain は、Samba の smb.conf エントリと同じ値に設定する必要があります。
3.0.x 用の smb.conf ファイルにある Winbind パラメータ。
workgroup は、Samba の smb.conf エントリと同じ値に設定する必要があります。
password server は、Samba の smb.conf エントリと同じ値に設定する必要があります。
template homedir は、Samba の smb.conf エントリと同じ値に設定する必要があります。
template shell は、Samba の smb.conf エントリと同じ値に設定する必要があります。
idmap uid は、Samba の smb.conf エントリと同じ値に設定する必要があります。
idmap gid は、Samba の smb.conf エントリと同じ値に設定する必要があります。
winbind enum users は、Samba の smb.conf エントリと同じ値に設定する必要があります。
winbind use default domain は True に設定する必要があります。
ほかの smb.conf エントリを作成し、それらのエントリにパス変数が必要な場合、以後のパス名が関連する Samba または Winbind インスタンスの構成ディレクトリ内で作成されていることを確認する必要があります。