Open HA Cluster 安装指南

Procedure如何卸载 Open HA Cluster 软件

执行此过程可从节点中卸载 Open HA Cluster 2009.06 软件。如果该节点是群集的已配置成员,则此过程还会从群集配置中删除该节点。


注 –

请勿使用 pkg uninstall 命令从群集节点中删除 Open HA Cluster 2009.06 软件。请仅使用 scinstall -r 命令,以确保从节点中完全删除所有群集软件包,包括通过显式命令安装的任何软件包以及任何群集配置信息。


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

    如果要从不是群集的已配置成员的节点中删除软件,请跳至步骤 2

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

      或者,如果为您的用户帐户指定了主管理员 (Primary Administrator) 配置文件,则可通过配置文件 shell 以非超级用户身份执行命令,或者在命令的前面加上 pfexec 命令。

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

      • 要添加单个节点,请使用以下命令:


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

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

      • 要添加所有节点,请使用以下命令:


        phys-schost# /usr/cluster/bin/claccess allow-all
        

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

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

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

    或者,如果为您的用户帐户指定了主管理员 (Primary Administrator) 配置文件,则可通过配置文件 shell 以非超级用户身份执行命令,或者在命令的前面加上 pfexec 命令。

  3. 关闭该节点。


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

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


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

      1. 在 GRUB 菜单中,使用方向键选择适当的 Solaris 条目,然后键入 e 编辑其命令。

        GRUB 菜单显示如下内容:


        GNU GRUB version 0.97 (639K lower / 1047488K upper memory)
        +----------------------------------------------------------------------+
        | OpenSolaris 2009.06                                                  |
        | OHAC-2009-06                                                         |
        |                                                                      |
        +----------------------------------------------------------------------+
        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.97 (639K lower / 1047488K upper memory)
        +----------------------------------------------------------------------+
        |…                                                                   |
        | kernel /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=gr>|
        |…                                                                   |
        +----------------------------------------------------------------------+
        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/kernel/$ISADIR/unix \
        -B $ZFS-BOOTFS,console=graphics -x
        
      4. 按 Enter 键接受更改,并返回到引导参数屏幕。

        屏幕将显示编辑后的命令。

      5. 键入 b 将节点引导至非群集模式。


        注 –

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


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


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


    phys-schost# /usr/cluster/bin/scinstall -r
    

    节点将从群集配置中删除,且 Open HA Cluster 软件会从节点中删除。有关更多信息,请参见 scinstall(1M) 手册页。

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

接下来的操作

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