Sun Cluster 3.0 12/01 軟體安裝手冊

如何配置名稱服務轉換

在叢集的每一個節點上執行此作業。

  1. 成為叢集節點的超級使用者。

  2. 編輯 /etc/nsswitch.conf 檔案。

    1. 確認 clusterhostsnetmasks 資料庫項目的第一個尋找來源。

      Sun Cluster 軟體需要此順序才能正確運作。scinstall(1M) 指令會於安裝期間在這些項目中新增 cluster

    2. (選擇性的) 萬一名稱服務無法使用時,為了提高資料服務的可用性,請將查詢順序改成以下所示:

      • 對於 hostsnetmasks 資料庫項目,請將 files 列於 cluster 之後。

      • 對於所有其它的資料庫項目,請將 files 放在第一尋找順序中。

      If the [NOTFOUND=return] criterion becomes the last item of an entry after you modify the lookup order, the criterion is no longer necessary. You can either delete the [NOTFOUND=return] criterion from the entry or leave it in, in which case it is ignored.

    下列範例顯示 /etc/nsswitch.conf 檔案的部份內容。 hostsnetmasks 資料庫項目的尋找順序先是 cluster 而後是 files。其它項目的尋找順序是自 files 開始。[NOTFOUND=return] 準則已被移除。


    # vi /etc/nsswitch.conf
    ...
    passwd:     files nis
    group:      files nis
    ...
    hosts:      cluster files nis
    ...
    netmasks:   cluster files nis
    ...

    請參閱 nsswitch.conf(4),以取得關於 nsswitch.conf 項目的詳細資訊。

  3. 設定 root 使用者環境。

    請至"如何設定 Root 使用者環境"