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

Procedure如何升级 Solaris OS 和卷管理器软件(标准)

请在群集中的每个节点上执行以下过程来升级 Solaris OS。在 Solaris 10 OS 上,所有步骤只应在全局区域中执行。如果群集已经是在支持 Sun Cluster 3.2 软件的 Solaris OS 版本上运行,则进一步升级 Solaris OS 为可选操作。如果不打算升级 Solaris OS,请继续执行如何升级 Sun Cluster 3.2 软件(标准)


注 –

为了支持到 Sun Cluster 3.2 软件的升级,群集已运行的或将升级到的 Solaris OS 版本决不能低于所要求的最低级别。有关更多信息,请参见《Sun Cluster 3.2 发行说明(适用于 Solaris OS)》中的 "Supported Products"。


开始之前

确保已完成了如何为群集做好升级(标准)准备包含的所有步骤。

  1. 成为要进行升级的群集节点上的超级用户。

    如果进行的是双分区升级,则此节点必须是处于非群集模式的那个分区中的成员。

  2. 如果安装了 Sun Cluster Geographic Edition 软件,请将其卸载。

    有关卸载过程,请参见您的 Sun Cluster Geographic Edition 软件版本所对应的文档。

  3. 确定以下 Apache 运行控制脚本是否存在,以及如果存在,是处于启用状态还是禁用状态:


    /etc/rc0.d/K16apache
    /etc/rc1.d/K16apache
    /etc/rc2.d/K16apache
    /etc/rc3.d/S50apache
    /etc/rcS.d/K16apache

    某些应用程序(例如 Sun Cluster HA for Apache)要求禁用 Apache 运行控制脚本。

    • 如果这些脚本存在,并且文件名中包含一个大写的 KS,则说明它们已启用。不需要对这些脚本进行进一步的操作。

    • 如果这些脚本不存在,在步骤 8 中必须确保禁用在 Solaris 操作系统升级期间安装的所有 Apache 运行控制脚本。

    • 如果这些脚本存在,但文件名中包含一个小写的 ks,则说明它们已禁用。在步骤 8 中必须确保禁用在 Solaris 操作系统升级期间安装的所有 Apache 运行控制脚本。

  4. 在节点的 /etc/vfstab 文件中注释掉全局挂载文件系统的所有条目。

    1. 为供以后参考,请记录已注释掉的所有条目。

    2. 暂时将 /etc/vfstab 文件中有关全局挂载文件系统的所有条目注释掉。

      全局装载的文件系统的条目包括 global 装载选项。注释掉这些条目可防止 Solaris 升级程序装载全局设备。

  5. 确定升级 Solaris OS 要遵循的过程。

    卷管理器 

    过程 

    说明的位置 

    Solaris Volume Manager 

    动态升级方法之外的任一 Solaris 升级方法

    Solaris 安装文档 

    VERITAS Volume Manager 

    “升级 VxVM 和 Solaris” 

    VERITAS Volume Manager 安装文档 


    注 –

    如果群集中安装了 VxVM,则作为 Solaris 升级过程的一部分,必须重新安装现有的 VxVM 软件或升级到 Solaris 9 或 10 版本的 VxVM 软件。


  6. 升级 Solaris 软件,按照步骤 5 中所选的过程执行。


    注 –

    请勿在 Solaris 软件升级时执行最终重新引导指令。而是可以按照下述步骤进行操作:

    1. 返回至该过程以执行步骤 7步骤 8

    2. 步骤 9 中重新引导为非群集模式以完成 Solaris 软件升级。


    • 出现提示时,选择手动重新引导选项。

    • 当升级过程指示您重新引导节点时,务必要将其重新引导到非群集模式下。运行 bootreboot 命令时,请在命令中添加 -x 选项。-x 选项确保节点重新引导到非群集模式。例如,以下两条命令中的任意一条都可以将节点引导到单用户非群集模式:

    • 在基于 SPARC 的系统上,执行以下命令中的任何一个:


      phys-schost# reboot -- -xs
      
      ok boot -xs
      

      如果指示您运行 init S 命令,请使用 reboot -- -xs 命令。

    • 在运行 Solaris 9 OS 的基于 x86 的系统上,执行以下任一命令:


      phys-schost# reboot -- -xs
      
      ...
                            <<< Current Boot Parameters >>>
      Boot path: /pci@0,0/pci-ide@7,1/ata@1/cmdk@0,0:b
      Boot args:
      
      Type  b [file-name] [boot-flags] <ENTER>  to boot with options
      or    i <ENTER>                           to enter boot interpreter
      or    <ENTER>                             to boot with defaults
      
                        <<< timeout in 5 seconds >>>
      Select (b)oot or (i)nterpreter: b -xs
      
    • 在运行 Solaris 10 OS 的基于 x86 的系统上,执行以下命令:


      phys-schost# shutdown -g -y -i0Press any key to continue
      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 进行引导的更多信息,请参见《System Administration Guide: Basic Administration》中的第 11  章 “GRUB Based Booting (Tasks)”

      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 选项添加到 kernel 引导参数命令中。


      如果指示您运行 init S 命令,请关闭系统,然后将 GRUB kernel 引导命令改为 /platform/i86pc/multiboot -sx

  7. /a/etc/vfstab 文件中,取消注释您在步骤 4 中注释出的全局安装文件系统的那些条目。

  8. 如果升级 Solaris OS 之前 Apache 运行控制脚本已禁用或者根本不存在,请确保禁用在 Solaris 升级过程中安装的所有脚本。

    要禁用 Apache 运行控制脚本,请运行以下命令用小写的 ks 来重命名各文件。


    phys-schost# mv /a/etc/rc0.d/K16apache /a/etc/rc0.d/k16apache 
    phys-schost# mv /a/etc/rc1.d/K16apache /a/etc/rc1.d/k16apache
    phys-schost# mv /a/etc/rc2.d/K16apache /a/etc/rc2.d/k16apache
    phys-schost# mv /a/etc/rc3.d/S50apache /a/etc/rc3.d/s50apache
    phys-schost# mv /a/etc/rcS.d/K16apache /a/etc/rcS.d/k16apache
    

    或者,可以按照正常的管理做法重命名这些脚本以使其一致。

  9. 将节点重新引导为非群集模式。

    在以下命令中加入双破折号 (--):


    phys-schost# reboot -- -x
    
  10. 如果群集运行 VxVM,请执行“升级 VxVM 和 Solaris”过程中的其余步骤来重新安装或升级 VxVM。

    对该过程进行以下更改:

    • 在完成 VxVM 升级之后、重新引导之前,请检验 /etc/vfstab 文件中的条目。

      如果在步骤 7 中取消注释的任何条目又注释出来,请再次取消对这些条目的注释。

    • 当 VxVM 过程提示您执行最终重新配置重新引导时,请勿使用 -r 选项。请使用 -rx 选项重新引导为非群集模式。

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


        phys-schost# reboot -- -rx
        
      • 在基于 x86 的系统上,执行步骤 6 中介绍的关机过程和引导过程,但要在 kernel 引导命令中添加 -rx,而不是 -sx


    注 –

    如果您看到类似以下内容的消息,请键入 root 用户口令来继续执行升级进程。不要运行 fsck 命令,也不要按 Ctrl-D


    WARNING - Unable to repair the /global/.devices/node@1 filesystem. 
    Run fsck manually (fsck -F ufs /dev/vx/rdsk/rootdisk_13vol). Exit the 
    shell when done to continue the boot process.
    
    Type control-d to proceed with normal startup,
    (or give root password for system maintenance):  Type the root password
    

  11. (可选的)SPARC:升级 VxFS。

    按照 VxFS 文档中提供的过程进行操作。

  12. 安装任何所需的 Solaris 软件修补程序和与硬件相关的修补程序,并下载硬件修补程序中所包含的任何所需固件。


    注 –

    在添加了修补程序之后不要重新引导。等待到升级 Sun Cluster 软件之后重新引导节点。


    有关修补程序和安装说明所在的位置,请参见《Sun Cluster 3.2 发行说明(适用于 Solaris OS)》中的“修补程序和所需的固件级别”

接下来的操作

升级到 Sun Cluster 3.2 软件。请转至如何升级 Sun Cluster 3.2 软件(标准)


注 –

要完成到新的 Solaris OS 销售发行版的升级(如从 Solaris 8 升级到 Solaris 10 软件),还必须将 Sun Cluster 软件和从属软件升级到与新版 Solaris OS 兼容的版本。