联合使用 scswitch 命令 和 Solaris shutdown 命令来关闭单个节点。仅在关闭整个群集时使 用 scshutdown 命令。
任务 |
有关说明,请转到... |
---|---|
停止群集节点 - 使用 scswitch(1M) 和 shutdown(1M) | |
通过引导 节点来启动节点。 节点必须有到群集互联的工作连接,才能获得群集成员的身份。 | |
停止和重新启动(重新引导)群集节点 - 使用 scswitch 和 shutdown 节点必须有到群集互联的工作连接,才能获得群集成员的身份。 | |
引导一个节点,使之不成为群集成员 - 使用 scswitch 和 shutdown,然后引导 -x |
(可选)。对于运行 Oracle Parallel Server (OPS) 的群集节点,请关闭所有 OPS 数据库 实例。
有关关闭过程,请参阅 Oracle Parallel Server 产品文档。
成为要关闭的群集节点上的超级用户。
使用 scswitch 和 shutdown 两个命令关闭群集节点。
在要关闭的节点上,输入以下命令。
# scswitch -S -h node # shutdown -g 0 -y |
检验群集节点是否已在 ok PROM 提示符下。
如有必要,请关闭节点电源。
以下示例展示关闭节点 phys-schost-1 时的控制台输出。-g 0 选项将宽延期设置为 零,-y 自动提供对确认问题的 yes 响应。群集中其他节点的 控制台上也显示此节点的关闭消息。
# scswitch -S -h phys-schost-1 # shutdown -g 0 -y Sep 2 10:08:46 phys-schost-1 cl_runtime: WARNING: CMM monitoring disabled.phys-schost-1# INIT: New run level: 0 The system is coming down. Please wait. 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 Program terminated ok |
要重新启动已关闭的群集节点,请参见"2.2.2 如何引导群集节点"。
群集节点的启动可能受定额配置的影响。在由两个节点组成的群集中,配置定额设备时 必须使定额总计数为 3(两个节点各用 1 个,定额设备用 1 个)。在这种情况下,当第一个节点 关闭后,第二个节点仍然有定额设备,并以唯一群集成员的身份运行。如果第一个节点要作为一个群集 节点返回到群集中,则第二个节点必须处于打开状态并运行,并且必须有所需要的群集定额计数 (2)。
要启动已关闭的群集节点,请引导该节点。
ok boot |
当群集组件被激活时,所引导的节点的控制台上和各成员节点的控制台上将显示消息。
群集节点必须有到群集互联的工作连接,才能获得群集成员的身份。
检验节点是否已引导且没有错误,并且处于联机状态。
scstat(1M) 命令报告一个节点的状态。
# scstat -n |
以下示例展示将节点 phys-schost-1 引导到群集中时的控制台 输出。
ok boot Rebooting with command: boot ... Hostname: phys-schost-1 Booting as part of a cluster ... NOTICE: Node 1: attempting to join cluster ... NOTICE: Node 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: |
(可选)。对于运行 Oracle Parallel Server (OPS) 的群集节点,请关闭所有 OPS 数据库 实例。
有关关闭过程,请参阅 Oracle Parallel Server 产品文档。
成为要关闭的群集节点上的超级用户。
使用 scswitch 和 shutdown 两个命令关闭群集节点。
在要关闭的节点上,输入以下命令。
# scswitch -S -h node # shutdown -g 0 -y -i 6 |
shutdown 的 -i 6 选项使节点 在 ok PROM 提示符下关闭后又重新引导。
群集节点必须有到群集互联的工作连接,才能获得群 集成员的身份。
检验节点是否已引导且没有错误,并且处于联机状态。
scstat(1M) 命令报告一个节点的状态。
# scstat -n |
以下示例展示关闭并重新启动节点 phys-schost-1 时的控制台 输出。-g 0 选项将宽延期设置为 零,-y 自动提供对确认问题的 yes 响应。群集中其他节点的 控制台上也显示此节点的关闭和启动消息。
# scswitch -S -h phys-schost-1 # shutdown -g 0 -y -i 6 Sep 2 10:08:46 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 #7982421. Ethernet address 8:0:20:79:cd:55, Host ID: 8079cd55. ... Rebooting with command: boot ... Hostname: phys-schost-1 Booting as part of a cluster ... NOTICE: Node 1: attempting to join cluster ... NOTICE: Node 1: joined cluster ... The system is coming up. Please wait. The system is ready. phys-schost-1 console login: |
可以引导一个节点,使之不充当群集成员,即以非群集模式引导。这在安装群集 软件或执行某些管理过程(如修补一个节点)时有用。
成员要在非群集模式下启动的节点上的超级用户。
使用 scswitch 和 shutdown 两个命令关闭节点。
# scswitch -S -h node # shutdown -g 0 -y |
检验群集节点是否已在 ok PROM 提示符下。
使用 boot(1M) 命令加上 -x 选项来在非群集模式下引导节点。
ok boot -x |
该节点的控制台上显示的消息称该节点不是群集的一部分。
以下示例展示关闭节点 phys-schost-1、然后在非群集模式下重新启动时的控制台 输出。-g -0 选项将宽延期设置为 零,-y 自动提供对确认问题的 yes 响应。群集中其他节点的 控制台上也显示此节点的关闭消息。
# scswitch -S -h phys-schost-1 # shutdown -g 0 -y Sep 2 10:08:46 phys-schost-1 cl_runtime: WARNING: CMM monitoring disabled. phys-schost-1# ... rg_name = schost-sa-1 ... offline node = phys-schost-2 ... num of node = 0 ... phys-schost-1# INIT: New run level: 0 The system is coming down. Please wait. System services are now being stopped. Print services stopped. syslogd: going down on signal 15 ... The system is down. syncing file systems... done WARNING: node 1 is being shut down. Program terminated ok boot -x ... Not booting as part of cluster ... The system is ready. phys-schost-1 console login: |