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

如何在单节点群集上安装 Sun Cluster 软件

执行此任务以使用 scinstall 命令在单个节点上安装 Sun Cluster 软件并建立群集。有关详细信息,请参阅 scinstall(1M) 手册页。


注意 –

在单节点群集上,不能使用 SunPlex Installer 或 scinstall 实用程序的交互方式来安装 Sun Cluster 软件。


在安装过程中,scinstall -iFo 命令会建立以下缺省设置:

多节点群集安装中所需的某些步骤在单节点群集安装中可以省去。安装单节点群集时,不需要执行以下步骤:


提示 –

如果希望最终将第二个节点添加到群集,可以在初始群集安装中配置传输互连。这样传输互连就可供以后使用。有关详细信息,请参见 scinstall(1M) 手册页。

您可以日后按照如何在附加群集节点上配置 Sun Cluster 软件 (scinstall)中提供的相应步骤将单节点群集扩展为多节点群集。


  1. 确保已安装支持 Sun Cluster 软件的 Solaris OS。

    如果节点上已安装了 Solaris 软件,必须确保 Solaris 安装满足 Sun Cluster 软件和任何其他要在群集中安装的软件的要求。有关安装 Solaris 软件需要满足 Sun Cluster 软件要求方面的信息,请参阅如何安装 Solaris 软件

  2. 成为要进行安装的群集节点的超级用户。

  3. 安装 Sun Web Console 软件包。

    Sun Cluster 软件需要这些软件包,即使您不使用 Sun Web Console。

    1. 将 Sun Cluster 3.1 9/04 CD-ROM 放入 CD-ROM 驱动器。

    2. 切换到 /cdrom/cdrom0/Solaris_arch/Product/sun_web_console/2.1/ 目录,其中 archsparcx86

    3. 运行 setup 命令。


      # ./setup
      

      setup 命令用于安装支持 Sun Web Console 的所有软件包。

  4. 在 Sun Cluster 3.1 9/04 CD-ROM 上,转到 Solaris_arch/Product/sun_cluster/Solaris_ver/Tools/ 目录,其中 archsparcx86,其中 ver8(对于 Solaris 8)或 9(对于 Solaris 9) 。


    # cd /cdrom/cdrom0/Solaris_arch/Product/sun_cluster/Solaris_ver/Tools/
    

  5. 使用 scinstall 命令安装 Sun Cluster 软件和所需修补程序。


    ./scinstall -iFo [-M patchdir=dirname]
    -i

    指定 scinstall 命令的安装形式。scinstall 命令将安装 Sun Cluster 软件并将节点初始化为新群集。

    -F

    将节点建立为新群集中的第一个节点。安装单节点群集时,可以使用所有 -F 选项。

    -o

    指定要为单节点群集安装的唯一一个节点。仅当与命令的 -i-F 形式一起使用时,-o 选项才合法。使用 -o 选项时,群集安装模式预设为禁用状态。

    -M patchdir=dirname[[,patchlistfile=filename]]

    指定修补程序的路径信息,以便可以使用 scinstall 命令安装指定的修补程序。如果不指定修补程序列表文件,scinstall 命令将安装 dirname 目录中的所有修补程序。包括 ZAR 格式、JAR 格式和 ZIP 格式的压缩修补程序。

    使用 scinstall -iFo 命令时,不需要使用 -M 选项。此过程中出现 -M 选项是因为使用此选项是单节点群集安装中安装修补程序时最有效的方法。您可以使用任何所需的方法安装修补程序。

  6. 切换到 CD-ROM 中的目录,然后弹出 CD-ROM。


    # eject cdrom
    

  7. 重新引导该节点。

    安装 Sun Cluster 软件后进行重新引导会将该节点建立为群集。

  8. (可选的) 更改群集名称。

    以与群集节点相同的名称创建单节点群集。如果需要,可以更改群集名称。使用 scsetup 实用程序或以下 scconf 命令:


    # /usr/cluster/bin/scconf -c -C cluster=newclustername
    

  9. 使用 scstat 命令检验安装。


    # /usr/cluster/bin/scstat -n
    

    命令输出应列出状态为联机的群集节点。有关详细信息,请参见 scstat(1M) 手册页。

  10. 确保禁用了群集安装模式。


    # /usr/cluster/bin/scconf -pv | grep "install mode"
    
  11. (可选的) SPARC:要安装 VERITAS 文件系统,请转至SPARC: 如何安装 VERITAS 文件系统 软件?

  12. 设置名称服务的查找顺序。

    转到如何配置名称服务开关

示例—在单节点群集上安装 Sun Cluster 软件

以下示例显示如何使用 scinstallscstat 命令来安装和检验单节点群集。此示例中说明了所有修补程序的安装。有关详细信息,请参见 scinstall(1M)scstat(1M) 手册页。


# scinstall -iFo -M patchdir=/var/cluster/patches/

Checking device to use for global devices file system ... done
** Installing SunCluster 3.1 framework **
...
Installing patches ... done

Initializing cluster name to "phys-schost-1" ... done
Initializing authentication options ... done

Setting the node ID for "phys-schost-1" ... done (id=1)

Checking for global devices global file system ... done
Updating vfstab ... done

Verifying that "cluster" is set for "hosts" in nsswitch.conf ... done
Adding the "cluster" switch to "hosts" in nsswitch.conf ... done

Verifying that "cluster" is set for "netmasks" in nsswitch.conf ... done
Adding the "cluster" switch to "netmasks" in nsswitch.conf ... done

Verifying that power management is NOT configured ... done

Ensure that the EEPROM parameter "local-mac-address?" is set to "true" ... done

Ensure network routing is disabled ... done

Please reboot this machine.

# reboot
# scstat -n
-- Cluster Nodes --

                    Node name           Status
                    ---------           ------
  Cluster node:     phys-schost-1       Online
# scconf -pv | grep "install mode"
Cluster install mode:                   disabled