Sun Cluster 系统管理指南(适用于 Solaris OS)

Procedure如何重新引导节点

要关闭或重新引导全局群集或区域群集中的其他活动节点,请等到要重新引导的节点至少达到以下状态:

否则,该节点将无法从群集中要关闭或重新引导的其他节点那里接管服务。有关重新引导非全局区域的信息,请参见《系统管理指南:Solaris Containers-资源管理和 Solaris Zones》中的第 20  章 “安装、引导、停止、卸载和克隆非全局区域(任务)”

phys-schost# 提示符表示全局群集提示符。此操作过程适用于全局群集。

此过程提供了 Sun Cluster 命令的长格式。此外,大多数命令还有简短格式。这些命令除了名称长短的不同以外,其功能都是相同的。有关命令及其简短格式的列表,请参见附录 B

  1. 如果全局群集或区域群集节点正在运行 Oracle RAC,请关闭您要关闭的节点上的所有数据库实例。

    有关关闭过程,请参阅 Oracle RAC 产品文档。

  2. 在要关闭的节点上,成为超级用户或使用一个可提供 solaris.cluster.admin RBAC 授权的角色。从全局群集中的某个节点执行此过程中的所有步骤。

  3. 使用 clnode evacuateshutdown 命令关闭全局群集节点。使用在全局群集的某个节点上执行的 clzonecluster halt 命令关闭区域群集。(clnode evacuateshutdown 命令也可用于区域群集。)

    对于全局群集,请在节点上键入以下命令将其关闭。clnode evacuate 命令可将指定节点上的所有设备组切换到下一个首选节点。此外,该命令还可将所有资源组从指定节点的全局或非全局区域切换到位于其他节点的下一个首选全局或非全局区域。

    • 在基于 SPARC 的系统上,运行以下命令。


      phys-schost# clnode evacuate node
      

      phys-schost# shutdown -g0 -y -i6
      
    • 在基于 x86 的系统上,运行以下命令。


      phys-schost# clnode evacuate node
      

      phys-schost# shutdown -g0 -y -i6
      

      显示 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.
    • 指定要关闭和重新引导的区域群集节点。


      phys-schost# clzonecluster reboot - node zoneclustername
      

    注 –

    节点必须具有到群集互连的有效连接才能获得群集成员的身份。


  4. 确认引导该节点时未发生错误,而且该节点现在处于联机状态。

    • 确认全局群集节点处于联机状态。


      phys-schost# cluster status -t node
      
    • 确认区域群集节点处于联机状态。


      phys-schost# clzonecluster status
      

示例 3–11 SPARC: 重新引导全局群集节点

以下示例显示了当节点 phys-schost-1 重新引导时的控制台输出。有关该节点的消息(例如关闭和启动通知)出现在全局群集中其他节点的控制台上。


phys-schost# clnode evacuate phys-schost-1
phys-schost# 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: 


示例 3–12 x86: 重新引导全局群集节点

以下示例显示了重新引导节点 phys-schost-1 时的控制台输出。有关该节点的消息(例如关闭和启动通知)出现在全局群集中其他节点的控制台上。


phys-schost# clnode evacuate phys-schost-1
phys-schost # shutdown -y -g0 -i6

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.
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: 


示例 3–13 重新引导区域群集节点

以下示例显示了如何重新引导区域群集中的节点。


phys-schost# clzonecluster reboot -n schost-4 sparse-sczone
Waiting for zone reboot commands to complete on all the nodes of the zone cluster "sparse-sczone"...
Sep  5 19:40:59 schost-4 cl_runtime: NOTICE: Membership : Node 3 of cluster 'sparse-sczone' died.
phys-schost# Sep  5 19:41:27 schost-4 cl_runtime: NOTICE: Membership : Node 3 of cluster 'sparse-sczone' joined.

phys-schost#
phys-schost# clzonecluster status

=== Zone Clusters ===

--- Zone Cluster Status ---
Name            Node Name   Zone HostName   Status   Zone Status
----            ---------   -------------   ------   -----------
sparse-sczone   schost-1    sczone-1        Online   Running
                schost-2    sczone-2        Online   Running
                schost-3    sczone-3        Online   Running
                schost-4    sczone-4        Online   Running

phys-schost#