Sun Cluster 軟體安裝指南 (適用於 Solaris 作業系統)

如何在單一節點叢集上安裝 Sun Cluster 軟體

透過 scinstall 指令執行此作業,在單一節點上安裝 Sun Cluster 軟體並建立叢集。 請參閱 scinstall(1M) 線上援助頁,以取得詳細資訊。


註解 –

您無法使用 SunPlex Manager 或者 scinstall 公用程式的互動式方式在單一叢集節點上安裝 Sun Cluster 軟體。


scinstall -iFo 指令在安裝期間建立下列預設值︰

安裝多節點叢集所需的某些步驟對於安裝單一節點叢集來說是不必要的。 當您安裝單一節點叢集時,無需執行以下步驟:


提示 –

如果您預期最後在叢集內加入第二個節點,則可以在初次安裝叢集期間配置傳輸交互連接。 以後就可以使用傳輸交互連接。 請參閱 scinstall(1M) 線上說明手冊,以取得詳細資訊。

您可以依照如何在附加叢集節點上配置 Sun Cluster 軟體 (scinstall) 中提供的適當程序,稍後將包含單一節點的叢集展開為包含多個節點的叢集。


  1. 確定已安裝 Solaris 作業環境,以支援 Sun Cluster 軟體。

    如果節點上已安裝了 Solaris 軟體,那麼您必須確定 Solaris 的安裝符合 Sun Cluster 軟體以及您要安裝到叢集上的任何其他軟體的需求。 請參閱如何安裝 Solaris 軟體 ,以取得有關安裝 Solaris 軟體的詳細資訊以滿足 Sun Cluster 軟體需求。

  2. 成為要安裝之叢集節點的超級使用者。

  3. 將 Sun Java Enterprise System 2004Q2 2 of 2 CD-ROM 插入要安裝和配置的節點之 CD-ROM 光碟機。

    如果容體管理常駐程式 vold(1M) 正在執行,並已配置為管理 CD-ROM 裝置,則該常駐程式會自動將 CD-ROM 掛載於 /cdrom/cdrom0 目錄中。

  4. /cdrom/cdrom0 目錄切換至 Solaris_arch/Product/sun_cluster/Solaris_ver/Tools 目錄,其中 archsparcx86ver8 (對於 Solaris 8) 或 9 (對於 Solaris 9) 。

    下列範例使用 SPARC Solaris 8 版 Sun Cluster 軟體的路徑。


    # cd /cdrom/cdrom0/Solaris_sparc/Product/sun_cluster/Solaris_8/Tools
    

  5. 使用 scinstall 指令安裝 Sun Cluster 軟體與必要的修補程式。


    ./scinstall -iFo [-M patchdir=dirname]
    -i

    指定 scinstall 指令的安裝形式。 scinstall 指令安裝 Sun Cluster 軟體,並將節點初始化為新的叢集。

    -F

    建立該節點,使其成為新叢集的第一個節點。 安裝單一節點叢集時,可以使用所有 -F 選項。

    -o

    指定僅對單一節點叢集安裝一個節點。 -o 選項僅在同時與指令的 -i-F 形式配合使用時 才合法。 使用 -o 選項時,叢集安裝模式預設為停用狀態。

    -M patchdir=dirname[[,patchlistfile=filename]]

    指定修補程式資訊的路徑,以便可以使用 scinstall 指令安裝指定的修補程式。 如果您不指定修補程式清單檔案,scinstall 指令將安裝目錄 dirname 中的所有修補程式。 這包括 tar 修補程式、jar 修補程式以及 zip 修補程式。

    使用 scinstall -iFo 指令時,不需要 -M 選項。 -M 選項會顯示在此程序中,因為該選項是安裝包含單一節點的叢集期間安裝修補程式最有效率的方法。 然而,您可以使用您喜歡的任何方法來安裝修補程式。

  6. 重新啟動節點。

    安裝 Sun Cluster 軟體之後,重新開機會建立節點作為叢集。

  7. (選擇性的) 變更叢集名稱。

    建立包含單一節點叢集的名稱與叢集節點的名稱相同。 如果您願意,可以變更叢集名稱。 使用 scsetup 公用程式或使用下列 scconf 指令︰


    # /usr/cluster/bin/scconf -c -C cluster=newclustername
    

  8. 使用 scstat 指令確認安裝。


    # /usr/cluster/bin/scstat -n
    

    請參閱 scstat(1M) 線上援助頁,以取得詳細資訊。

  9. 請確定已停用叢集安裝模式。


    # /usr/cluster/bin/scconf -pv | grep "install mode"
    
  10. SPARC: 您是否要安裝 VERITAS File System?

範例—在單一節點叢集上安裝 Sun Cluster 軟體

以下範例顯示如何使用 scinstallscstat 指令安裝與確認單一節點叢集。 此範例包括安裝所有修補程式。 請參閱 scinstall(1M)scstat(1M) 線上說明手冊,以取得詳細資訊。


# scinstall -iFo -M patchdir=/var/cluster/patches 

Checking device to use for global devices file system ... done
** Installing SunCluster 3.1 framework **
...
Installing patches ... done

Initializing cluster name to "phys-schost-1" ... done
Initializing authentication options ... done

Setting the node ID for "phys-schost-1" ... done (id=1)

Checking for global devices global file system ... done
Updating vfstab ... done

Verifying that "cluster" is set for "hosts" in nsswitch.conf ... done
Adding the "cluster" switch to "hosts" in nsswitch.conf ... done

Verifying that "cluster" is set for "netmasks" in nsswitch.conf ... done
Adding the "cluster" switch to "netmasks" in nsswitch.conf ... done

Verifying that power management is NOT configured ... done

Ensure that the EEPROM parameter "local-mac-address?" is set to "true" ... done

Ensure network routing is disabled ... done

Please reboot this machine.

# reboot
# scstat -n
-- Cluster Nodes --

                    Node name           Status
                    ---------           ------
  Cluster node:     phys-schost-1       Online
# scconf -pv | grep "install mode"
Cluster install mode:                   disabled