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

Procedurex86: 如何从只完成了一部分的双分区升级中恢复

当双分区升级失败且群集状态符合下列所有条件时,请执行以下过程:

当您成功升级了第一个分区却希望撤消升级时,也可以执行此过程。


注 –

对第二个分区开始执行双分区升级过程后,请不要执行此过程,而应执行如何从失败的双分区升级中恢复


开始之前

开始之前,请确保第二分区的所有节点均已停止运行。第一分区的节点可以处于停止运行的状态,也可以是在非群集模式下运行。

请以超级用户的身份执行所有步骤。

  1. 通过执行以下步骤,将第二分区中的每个节点引导至非群集模式。

  2. 在 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 的引导过程的更多信息,请参见《System Administration Guide: Basic Administration》中的第 11  章 “GRUB Based Booting (Tasks)”

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


    注 –

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


  7. 在第二分区中的每个节点上运行 scinstall -u recover 命令。


    # /usr/cluster/bin/scinstall -u recover
    

    此命令可恢复原始 CCR 信息,恢复原始 /etc/vfstab 文件并删除修改,然后再启动节点。

  8. 将第二分区中的每个节点引导至群集模式。


    # shutdown -g0 -y -i6
    

    当第二分区中的节点均启动后,第二分区将恢复对群集数据服务的支持,同时使用原始配置来运行旧软件。

  9. 从备份介质中将原始软件和配置数据恢复到第一分区中的各节点上。

  10. 将第一分区中的每个节点引导至群集模式。


    # shutdown -g0 -y -i6
    

    这些节点将重新加入群集。