如果打算关闭或重新引导群集中的其他活动节点,请至少等正在引导的节点处于以下状态之后:
SPARC:如果运行 Solaris 9 OS,等屏幕上出现登录提示符。
如果运行 Solaris 10 OS,等 multi-user-server 里程碑进入联机状态。
否则,该节点将无法从群集中要关闭或重新引导的其他节点那里接管服务。有关重新引导非全局区域的信息,请参见《System Administration Guide: Solaris Containers-Resource Management and Solaris Zones》中的第 20 章 “Installing, Booting, Halting, Uninstalling, and Cloning Non-Global Zones (Tasks)”。
此过程提供了 Sun Cluster 命令的长格式。此外,大多数命令还有简短格式。这些命令除了名称长短的不同以外,其功能都是相同的。有关命令及其简短格式的列表,请参见附录 A,Sun Cluster 面向对象的命令。
SPARC:如果群集节点运行的是 Oracle Parallel Server 或 Oracle RAC,则应关闭数据库的所有实例。
有关关闭过程,请参阅 Oracle Parallel Server 或 Oracle RAC 产品文档。
在要关闭的群集节点上,成为超级用户或使用一个可提供 solaris.cluster.admin RBAC 授权的角色。
使用 clnode evacuate 和 shutdown 命令关闭群集节点。
在要关闭的节点上输入以下命令。clnode evacuate 命令可将指定节点上的所有设备组都切换到下一个首选节点。此外,该命令还可将所有资源组从指定节点的全局或非全局区域切换到位于其他节点的下一个首选全局或非全局区域。
在基于 SPARC 的系统中,执行以下命令:
# clnode evacuate node # shutdown -g0 -y -i6 |
在基于 x86 的系统中执行以下操作:
# clnode evacuate node |
显示 GRUB 菜单后,选择相应的 Solaris 条目,然后按 Enter 键。GRUB 菜单显示如下内容:
GNU GRUB version 0.95 (631K lower / 2095488K upper memory) +-------------------------------------------------------------------------+ | Solaris 10 /sol_10_x86 | | Solaris failsafe | | | +-------------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, or 'c' for a command-line. |
群集节点必须具有到群集互连的有效连接才能获得群集成员的身份。
验证引导节点时未发生错误,而且节点现在处于联机状态。
# cluster status -t node |
以下示例显示了当系统重新引导节点 phys-schost-1 时控制台的输出。有关该节点的消息(例如关闭和启动通知)会出现在群集中其他节点的控制台上。
# clnode evacuate phys-schost-1 # shutdown -g0 -y -i6 Shutdown started. Wed Mar 10 13:47:32 phys-schost-1 cl_runtime: WARNING: CMM monitoring disabled. phys-schost-1# INIT: New run level: 6 The system is coming down. Please wait. System services are now being stopped. Notice: rgmd is being stopped. Notice: rpc.pmfd is being stopped. Notice: rpc.fed is being stopped. umount: /global/.devices/node@1 busy umount: /global/phys-schost-1 busy The system is down. syncing file systems... done rebooting... Resetting ... ,,, Sun Ultra 1 SBus (UltraSPARC 143MHz), No Keyboard OpenBoot 3.11, 128 MB memory installed, Serial #5932401. Ethernet address 8:8:20:99:ab:77, Host ID: 8899ab77. ... Rebooting with command: boot ... Hostname: phys-schost-1 Booting as part of a cluster ... NOTICE: Node phys-schost-1: attempting to join cluster ... NOTICE: Node phys-schost-1: joined cluster ... The system is coming up. Please wait. The system is ready. phys-schost-1 console login: |
以下示例显示了重新引导节点 phys-schost-1 时控制台所输出的内容。有关该节点的消息(例如关闭和启动通知)会出现在群集中其他节点的控制台上。
# clnode evacuate phys-schost-1 ok boot Rebooting with command: boot ... Hostname: phys-schost-1 Booting as part of a cluster ... NOTICE: Node phys-schost-1: attempting to join cluster ... NOTICE: Node phys-schost-1: joined cluster ... The system is coming up. Please wait. checking ufs filesystems ... reservation program successfully exiting Print services started. volume management starting. The system is ready. phys-schost-1 console login: |