phys-schost# 提示符表示全局群集提示符。此操作过程适用于全局群集。
此过程提供了 Sun Cluster 命令的长格式。此外,大多数命令还有简短格式。这些命令除了名称长短的不同以外,其功能都是相同的。有关命令及其简短格式的列表,请参见附录 B。
继续执行此过程之前,请确保已将节点从所有资源组、设备组和法定设备配置中删除,并将该节点置于维护状态。
在要删除的节点上,成为超级用户或使用一个可提供 solaris.cluster.modify RBAC 授权的角色。从全局群集中的某个节点执行此过程中的所有步骤。
将您要删除的全局群集节点引导到非群集模式下。对于区域群集节点,在执行此步骤之前,请按照如何从区域群集中删除节点中的说明操作。
在基于 SPARC 的系统上,运行以下命令。
ok boot -x |
在基于 x86 的系统上,运行以下命令。
shutdown -g -y -i0 Press any key to continue |
在 GRUB 菜单中,使用方向键选择适当的 Solaris 条目,然后键入 e 编辑其命令。
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. |
有关基于 GRUB 的引导的更多信息,请参见《系统管理指南:基本管理》中的“使用 GRUB 引导基于 x86 的系统(任务图)”。
在引导参数屏幕中,使用方向键选择内核条目,然后键入 e 编辑该条目。
GRUB 引导参数屏幕的显示与以下内容类似:
GNU GRUB version 0.95 (615K lower / 2095552K upper memory) +----------------------------------------------------------------------+ | root (hd0,0,a) | | kernel /platform/i86pc/multiboot | | module /platform/i86pc/boot_archive | +----------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press 'b' to boot, 'e' to edit the selected command in the boot sequence, 'c' for a command-line, 'o' to open a new line after ('O' for before) the selected line, 'd' to remove the selected line, or escape to go back to the main menu. |
在命令中添加 -x 以指定将系统引导至非群集模式。
[ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename. ESC at any time exits. ] grub edit> kernel /platform/i86pc/multiboot -x |
按 Enter 键接受所做更改,并返回到引导参数屏幕。
屏幕将显示编辑后的命令。
GNU GRUB version 0.95 (615K lower / 2095552K upper memory) +----------------------------------------------------------------------+ | root (hd0,0,a) | | kernel /platform/i86pc/multiboot -x | | module /platform/i86pc/boot_archive | +----------------------------------------------------------------------+ Use the ^ and v keys to select which entry is highlighted. Press 'b' to boot, 'e' to edit the selected command in the boot sequence, 'c' for a command-line, 'o' to open a new line after ('O' for before) the selected line, 'd' to remove the selected line, or escape to go back to the main menu.- |
键入 b 将节点引导至非群集模式。
对内核引导参数命令所做的这一更改在系统引导后将失效。下次重新引导节点时,系统将引导至群集模式。如果希望引导至非群集模式,请重新执行上述步骤,并将 --x 选项添加到内核引导参数命令中。
如果要删除的节点不可用或者不再能够被引导,请在任何活动的群集节点上运行以下命令:clnode clear -F <node-to-be-removed>。通过运行 clnode status <nodename> 检验该节点是否已删除。
在要删除的节点上,从群集中删除该节点。
phys-schost# clnode remove -F |
如果 clnode remove 命令失败,并且存在过时的节点引用,请在活动节点上运行 clnode clear -F nodename。
如果您要删除群集中的最后一个节点,则该节点必须处于非群集模式下并且该群集中未剩下任何活动节点。
通过另一个群集节点检验是否已删除该节点。
phys-schost# clnode status nodename |
完成节点删除操作。
如果打算从已删除的节点中卸载 Sun Cluster 软件,请转至如何从群集节点中卸载 Sun Cluster 软件。
如果不打算从已删除的节点中卸载 Sun Cluster 软件,可以通过移除硬件连接(如《Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS》中所述)以物理方式从群集中移除该节点。
此示例说明了如何从群集中删除节点 phys-schost-2。应当在您要从群集中删除的节点 (phys-schost-2) 上以非群集模式运行 clnode remove 命令。
[Remove the node from the cluster:] phys-schost-2# clnode remove phys-schost-1# clnode clear -F phys-schost-2 [Verify node removal:] phys-schost-1# clnode status -- Cluster Nodes -- Node name Status --------- ------ Cluster node: phys-schost-1 Online |
要从已删除的节点中卸载 Sun Cluster 软件,请参见如何从群集节点中卸载 Sun Cluster 软件。
有关硬件操作过程,请参见《Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS》。
有关删除群集节点的完整任务列表,请参见表 8–2。
要向现有的群集添加节点,请参见如何向授权节点列表添加节点。