本附錄包含有關使用指令行安裝、設定與移除 Solaris Container Manager 1.1 (Container Manager) 軟體的程序。指令行安裝是使用安裝精靈的替代方法。
關於安裝、設定和使用軟體的最新資訊,請參閱「Solaris Container Manager 1.1 版本說明」。
如需使用安裝精靈的資訊,請參閱第 2 章, Container Manager 安裝和設定。
在指令行安裝 Container Manager 應依照標準的 Sun Management Center 附加軟體安裝程序。如需關於在指令行安裝附加軟體的更多資訊,請參閱「Sun Management Center 3.5 Installation and Configuration Guide」中的附錄 B「Using the Command Line for Uninstall, Install, and Setup」。
Container Manager 必須安裝在 Sun Management Center 3.5 Update 1b 的下列層上:
伺服器層
代理程式層,位於您要為其產生報告的所有主機上
互動式 es-inst 安裝程序檔會安裝正確的 Container Manager 軟體套裝模組在伺服器和代理程式層。對於所有層,套裝軟體、模組配置檔和程式庫均安裝在 Sun Management Center 3.5 Update 1 的標準位置。如需更多關於支援的平台和安裝需求,請參閱Container Manager 軟體說明。
Container Manager 軟體可在下列時間安裝:
在您安裝 Sun Management Center 3.5 Update 1b 軟體的同時。
做為升級程序之一部分,您同時將現有 Sun Management Center 3.5 安裝升級到 Update 1b。
在您完成安裝或升級到 Sun Management Center 3.5 Update 1 後。在此情況中,您可以個別安裝 Container Manager 軟體。
若您想要使用 Container Manager 效能和計算資料的功能,必須安裝性能報告管理程式軟體。如需關於在指令行安裝和設定此軟體的更多資訊,請參閱「Sun Management Center 3.5 性能報告管理程式使用者指南」中的附錄 B「使用指令行安裝」。若您不要使用這些功能,便不需要安裝此附加軟體。
如需關於使用指令行的更多資訊和詳細步驟,請參閱「Sun Management Center 3.5 Installation and Configuration Guide」中的附錄 B「Using the Command Line for Uninstall, Install, and Setup」。您也可以同時安裝附加軟體,例如性能報告管理程式。
如需更多資訊和詳細步驟,請參閱「Sun Management Center 3.5 Installation and Configuration Guide」中的第 5 章「Upgrading Previous Versions of SyMON and Sun Management Center on the Solaris Platform」。您也可以同時安裝附加軟體,例如性能報告管理程式。
以超級使用者的身分 (su -),輸入下列指令執行 Sun Management Center 3.5 Update 1b 安裝程序檔:
# /opt/SUNWsymon/sbin/es-inst |
其中 /opt 是 Sun Management Center 3.5 Update 1b 的安裝目錄。如果它與您系統上的名稱不同,請用實際目錄取代。
當系統提示您提供 Container Manager 檔案的來源目錄時,請依提示動作。
請輸入來源目錄: |
若要安裝 Container Manager,請在系統提示時回答 [是]。
es-inst 程序檔會安裝 Container Manager。然後 es-inst 程序檔會自動顯示 setup 提示。
決定您想要現在設定還是稍後設定 Container Manager。
下列為您可能看見的輸出範例:
You must perform setup before using Sun Management Center 3.5 Update 1. Do you want to run setup now (y|n|q) |
若要稍後設定軟體,請回答 n 表示「否」。若您已準備好要執行設定程序檔,請參閱個別設定 Container Manager。
若要立即設定軟體,請回答 y 表示「是」。
安裝完成後,您必須執行 Container Manager setup 程序檔來配置伺服器層與代理程式層。在安裝軟體時,您可以在設定 Sun Management Center 3.5 Update 1b 安裝或升級的同時,執行設定程序。您也可以稍後個別設定軟體。
從指令行初使化時,在設定程序期間發生的配置檔案變更,與使用設定精靈時發生的配置檔案變更相同。如需更多資訊,請參閱設定 Container Manager 軟體。
如需更多資訊和詳細步驟,請參閱「Sun Management Center 3.5 Installation and Configuration Guide」中的附錄 B「Using the Command Line for Uninstall, Install, and Setup」。
此程序假設您在安裝結束時選擇的是不設 定Container Manager。
以超級使用者 (su -) 的身分執行 Sun Management Center 3.5 Update 1b setup 程序檔。選擇下列選項之一:
若要對所有尚未設定的組件執行設定,請鍵入:
# /opt/SUNWsymon/sbin/es-setup |
若要僅對 Container Manager 附加軟體執行設定,請鍵入:
# /opt/SUNWsymon/sbin/es-setup -p SCM |
其中 /opt 是 Sun Management Center 3.5 Update 1 的安裝目錄。如果它與您系統上的名稱不同,請用實際目錄取代。
檢閱必須停止以讓設定程序繼續進行之元件清單。
確認 Container Manager 為要設定的產品。
設定代理程式層時,若在未與資源儲存池相關聯的系統上偵測到處理器組,請選擇下列選項:
是 - 這些特別的處理器組會從系統中刪除。若要 Container Manager 正常運作,須移除未與資源儲存池關聯的處理器組,因為該處理器組可能會導致儲存池管理發生問題。選擇此選項後,會自動刪除處理器組,且會繼續設定程序。
否 - 這些特別的處理器組不會從系統中刪除。選擇此選項後,設定程序檔會結束且不會在系統中設定 Container Manager 軟體。您無法在其處理器組未與資源儲存池關聯的主機上使用 Container Manager 軟體。
取消 - 設定程序檔會結束。不會在系統中設定 Container Manager。
輸入多個有效的使用者名稱,並以將其逗號分隔。這些使用者必須已存在伺服器機器的 /var/opt/SUNWsymon/cfg/esusers 檔案中,且必須被指定為 esadm 或 esdomadm 群組。
若使用者和設定檔如預期的呈現,這些使用者將會被新增至所需的設定檔 (專案管理、儲存池管理、區域管理)。設定檔是以 Solaris 版本為基礎。
在每個代理程式機器,執行 /opt/SUNWsymon/addons/SCM/sbin/scm-poolprof-script.sh 程序檔以建立設定檔。/opt 為安裝 Container Manager 的目錄。要執行此程序檔,必須將 JAVA_HOME 環境變數設定到 /usr/j2se,或必須將 Java 安裝在 /usr/java。
此程序檔不會在 S9 和 S10 建立區域管理或專案管理設定檔。此程序檔僅會在 S9 和 S10 建立儲存池管理設定檔;在 S8 建立專案管理設定檔。
若任何預先定義的 Solaris 設定檔被移除,則 Container Manager 可能無法如預期運作。
僅有在此步驟新增的使用者可以在 S10 管理區域、在 S9 和 S10 管理資源儲存池,以及在 S8、S9 和 S10 管理專案。
若您先前已完成其他 Sun Management Center 產品的設定程序,表示您可能要為所有軟體再次執行設定或只執行最新的附加軟體。
設定伺服器層安裝時,請提供到其資料庫至少有 300 MB 未使用空間之目錄的完整路徑。
藉由回答 Y 或 N 來表示您是否要啟動 Sun Management Center 代理程式和伺服器元件。
軟體設定完成時您會收到確認提示。
設定程序完成後,您可以選擇啟動 Sun Management Center 程序。如需更多資訊,請參閱「Sun Management Center 3.5 Installation and Configuration Guide」中的第 8 章「Starting and Stopping Sun Management Center」。
在設定完成後且 Sun Management Center 代理程式和伺服器層已啟動,您將看見下列輸出範例:
Do you want to start Sun Management Center agent and server components now (y|n|q) y Java server started successfully. Grouping service started successfully. Agent started successfully. Topology service started successfully. Trap-handler service started successfully. Configuration service started successfully. Event-handler service started successfully. Metadata Service started successfully. Hardware service started successfully. Web server started successfully. Setup of Sun Management Center is complete. Setup logfile is : /var/opt/SUNWsymon/install/setup_host_name.040408141450.12822 Install logfile is : /var/opt/SUNWsymon/install/install_host_name.040408140547.10929 End of Installation Exiting Sun Management Center installation. # |
es-uninst 程序檔會移除 Container Manager 附加軟體。此程序檔會移除 Container Manager 套裝模組以及設定過程中所作的所有資料變更和配置變更。除了軟體套裝模組之外,也會移除下列項目:base-modules-d.dat 中的模組項目以及 Java Web Console 中的應用程式登錄。在移除程序中,將提示您是否要維持將系統資料儲存在資料庫中。解除安裝 Container Manager 軟體時,在安裝期間所做的系統資源配置變更將不會被移除。
以超級使用者身分 (su —) 輸入:
# /opt/SUNWsymon/sbin/es-uninst |
其中 /opt 是 Sun Management Center 3.5 Update 1b 的安裝目錄。如果它與您系統上的名稱不同,請用實際目錄取代。
從附加軟體清單中選擇 Container Manager。
指出是否要保留資料檔。
會出現下列輸出範例:
Select Save Data to save all user and configuration data. Your data is saved and can be restored when you re-install Sun Management Center. Do you want to preserve data (y|n|q) |
es-uninst 程序檔完成後,會移除 Container Manager 套裝模組和配置檔案。如果您選擇不保留資料檔,這些資料檔也會移除。