透過 scinstall 指令執行此作業,在單一節點上安裝 Sun Cluster 軟體並建立叢集。 請參閱 scinstall(1M) 線上援助頁,以取得詳細資訊。
您無法使用 SunPlex Manager 或者 scinstall 公用程式的互動式方式在單一叢集節點上安裝 Sun Cluster 軟體。
scinstall -iFo 指令在安裝期間建立下列預設值︰
建立需要的裝置 ID
使用預設的 /globaldevices 檔案系統,除非已使用 -G 選項指定了整體裝置檔案系統名稱
建立預設的叢集名稱,該名稱與被安裝的節點名稱相同,除非已使用 -C 選項指定了 clustername
安裝多節點叢集所需的某些步驟對於安裝單一節點叢集來說是不必要的。 當您安裝單一節點叢集時,無需執行以下步驟:
無需配置法定票數。
無需配置交互連接配接卡或接點。
如果您預期最後在叢集內加入第二個節點,則可以在初次安裝叢集期間配置傳輸交互連接。 以後就可以使用傳輸交互連接。 請參閱 scinstall(1M) 線上說明手冊,以取得詳細資訊。
您可以依照如何在附加叢集節點上配置 Sun Cluster 軟體 (scinstall) 中提供的適當程序,稍後將包含單一節點的叢集展開為包含多個節點的叢集。
確定已安裝 Solaris 作業環境,以支援 Sun Cluster 軟體。
如果節點上已安裝了 Solaris 軟體,那麼您必須確定 Solaris 的安裝符合 Sun Cluster 軟體以及您要安裝到叢集上的任何其他軟體的需求。 請參閱如何安裝 Solaris 軟體 ,以取得有關安裝 Solaris 軟體的詳細資訊以滿足 Sun Cluster 軟體需求。
成為要安裝之叢集節點的超級使用者。
將 Sun Java Enterprise System 2004Q2 2 of 2 CD-ROM 插入要安裝和配置的節點之 CD-ROM 光碟機。
如果容體管理常駐程式 vold(1M) 正在執行,並已配置為管理 CD-ROM 裝置,則該常駐程式會自動將 CD-ROM 掛載於 /cdrom/cdrom0 目錄中。
從 /cdrom/cdrom0 目錄切換至 Solaris_arch/Product/sun_cluster/Solaris_ver/Tools 目錄,其中 arch 為 sparc 或 x86,ver 為 8 (對於 Solaris 8) 或 9 (對於 Solaris 9) 。
下列範例使用 SPARC Solaris 8 版 Sun Cluster 軟體的路徑。
# cd /cdrom/cdrom0/Solaris_sparc/Product/sun_cluster/Solaris_8/Tools |
使用 scinstall 指令安裝 Sun Cluster 軟體與必要的修補程式。
# ./scinstall -iFo [-M patchdir=dirname] |
指定 scinstall 指令的安裝形式。 scinstall 指令安裝 Sun Cluster 軟體,並將節點初始化為新的叢集。
建立該節點,使其成為新叢集的第一個節點。 安裝單一節點叢集時,可以使用所有 -F 選項。
指定僅對單一節點叢集安裝一個節點。 -o 選項僅在同時與指令的 -i 與 -F 形式配合使用時 才合法。 使用 -o 選項時,叢集安裝模式預設為停用狀態。
指定修補程式資訊的路徑,以便可以使用 scinstall 指令安裝指定的修補程式。 如果您不指定修補程式清單檔案,scinstall 指令將安裝目錄 dirname 中的所有修補程式。 這包括 tar 修補程式、jar 修補程式以及 zip 修補程式。
使用 scinstall -iFo 指令時,不需要 -M 選項。 -M 選項會顯示在此程序中,因為該選項是安裝包含單一節點的叢集期間安裝修補程式最有效率的方法。 然而,您可以使用您喜歡的任何方法來安裝修補程式。
重新啟動節點。
安裝 Sun Cluster 軟體之後,重新開機會建立節點作為叢集。
(選擇性的) 變更叢集名稱。
建立包含單一節點叢集的名稱與叢集節點的名稱相同。 如果您願意,可以變更叢集名稱。 使用 scsetup 公用程式或使用下列 scconf 指令︰
# /usr/cluster/bin/scconf -c -C cluster=newclustername |
使用 scstat 指令確認安裝。
# /usr/cluster/bin/scstat -n |
請參閱 scstat(1M) 線上援助頁,以取得詳細資訊。
請確定已停用叢集安裝模式。
# /usr/cluster/bin/scconf -pv | grep "install mode" |
SPARC: 您是否要安裝 VERITAS File System?
如果否,請設定名稱服務尋找順序。 移至如何配置名稱服務切換 。
以下範例顯示如何使用 scinstall 和 scstat 指令安裝與確認單一節點叢集。 此範例包括安裝所有修補程式。 請參閱 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 |