Sun Cluster 软件安装指南(适用于 Solaris OS)

Procedure如何取消 Sun Cluster 软件的配置以更正安装问题

如果已安装的节点无法加入群集或者需要更正配置信息时,请执行此过程。例如,可在所有节点上执行此过程以重新配置传输适配器或专用网络地址。


注 –

如果此节点已加入群集并且不再处于安装模式(如如何检验定额配置和安装模式中的步骤 2 所述),请勿执行此过程,而应转至《Sun Cluster 系统管理指南(适用于 Solaris OS)》中的“如何从群集节点中卸载 Sun Cluster 软件”


开始之前

尝试重复进行节点的群集配置。通过在节点上重复进行 Sun Cluster 软件的配置,您可以更正某些群集节点的配置故障。

  1. 将打算取消其配置的每个节点添加到群集的节点验证列表中。

    如果要取消单节点群集的配置,请跳至步骤 2

    1. 在要取消配置的节点以外的某个活动群集成员上,成为超级用户。

    2. 指定要添加到验证列表中的节点名称。


      phys-schost# /usr/cluster/bin/claccess allow -h nodename
      
      -h nodename

      指定要添加到验证列表中的节点的名称。

      您还可以使用 clsetup 实用程序来执行此任务。有关过程,请参见《Sun Cluster 系统管理指南(适用于 Solaris OS)》中的“如何向授权节点列表添加节点”

  2. 在要取消配置的节点上成为超级用户。

  3. 关闭该节点。


    phys-schost# shutdown -g0 -y -i0
    
  4. 将节点重新引导到非群集模式。

    • 在基于 SPARC 的系统中,执行以下命令:


      ok boot -x
      
    • 在基于 x86 的系统中,执行以下命令:

      1. 在 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 的系统(任务图)”

      2. 在引导参数屏幕中,使用方向键选择 kernel 条目,然后键入 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.
      3. 在命令中添加 -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
        
      4. 按 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.-
      5. 键入 b 将节点引导至非群集模式。


        注 –

        对内核引导参数命令所做的这一更改在系统引导后将失效。下次重新引导节点时,系统将引导至群集模式。如果希望引导至非群集模式,请重新执行上述步骤,并将 -x 选项添加到内核引导参数命令中。


  5. 转到不包含 Sun Cluster 软件包提供的任何文件的目录,如根 (/) 目录。


    phys-schost# cd /
    
  6. 从群集配置中删除节点。


    phys-schost# /usr/cluster/bin/clnode remove
    

    节点将从群集配置中删除,但 Sun Cluster 软件不会从节点中删除。

    有关更多信息,请参见 clnode(1CL) 手册页。

  7. 对要取消配置的其他各节点,重复执行步骤 2步骤 6

  8. (可选的)卸载 Sun Cluster 框架软件包和数据服务软件包。


    注 –

    如果不需要删除或卸载 Sun Cluster 软件,可跳过此步骤。


    此步骤还会从 Sun Java Enterprise System (Java ES) 产品注册项中删除 Sun Cluster 条目。如果 Java ES 产品注册项中包含 Sun Cluster 软件已安装的记录,则 Java ES 安装程序将把 Sun Cluster 组件显示成灰色,从而不允许此组件的重新安装。

    1. 启动 uninstall 程序。

      运行以下命令,其中 ver 是您从中安装 Sun Cluster 软件的 Java ES 分发版本。


      phys-schost# /var/sadm/prod/SUNWentsysver/uninstall
      
    2. 按照屏幕上的说明来选择要卸载的 Sun Cluster 组件。


      注 –

      如果安装了 Sun Cluster Geographic Edition 软件,还必须卸载该软件。


      有关使用 uninstall 程序的更多信息,请参见《适用于 UNIX 的 Sun Java Enterprise System 5 安装指南》中的第 8  章 “卸载”

接下来的操作

要在节点上重新安装或重新配置 Sun Cluster 软件,请参阅表 2–1。该表列出了所有安装任务以及这些任务的执行顺序。

要从群集中物理移除节点,请参见《Sun Cluster 3.1 - 3.2 Hardware Administration Manual for Solaris OS》中的“How to Remove an Interconnect Component”以及 Sun Cluster Hardware Administration Collection 中适用于您的存储阵列的手册中介绍的移除过程。