本附录介绍有关使用命令行安装、设置和删除 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 完成之后或升级到 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 文件的源目录。
Please enter the source directory: |
要安装 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 软件包和配置文件。如果您选择不保留数据文件,这些数据文件也将被一并删除。