要更改群集的专用 IP 地址范围以容纳增加的节点或非全局区域的数量、增加的专用网络数量或者它们同时增加的数量,请执行以下任务。此过程也可以用来缩小专用 IP 地址范围。
此过程要求关闭整个群集。
成为群集中一个节点上的超级用户。
从一个节点上启动 clsetup 实用程序。
# clsetup |
屏幕上将显示 clsetup 主菜单。
使每个资源组脱机。
如果节点包含非全局区域,还应将这些区域内的所有资源组切换到脱机状态下。
禁用群集中的所有资源。
退出 clsetup 实用程序。
检验所有节点上的所有资源是否都处于脱机状态,所有资源组是否都处于不受管理状态。
# cluster status -t resource,resourcegroup |
限定为仅输出指定的群集对象
指定资源
指定资源组
从一个节点,关闭群集。
# cluster shutdown -g0 -y |
指定等待时间(以秒为单位)
禁止发出用于询问您是否确认要关闭的提示
将各个节点都引导成非群集模式。
在基于 SPARC 的系统中,执行以下命令:
ok boot -x |
在基于 x86 的系统中,执行以下命令:
在 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)”。
在引导参数屏幕中,使用方向键选择 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. |
在命令中添加 -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 |
按 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.- |
键入 b 将节点引导至非群集模式。
对内核引导参数命令所做的这一更改在系统引导后将失效。下次重新引导节点时,系统将引导至群集模式。如果希望引导至非群集模式,请再次执行上述步骤,将 -x 选项添加到 kernel 引导参数命令中。
从一个节点启动 clsetup 实用程序。
在非群集模式下运行时,clsetup 实用程序会为非群集模式操作显示“主菜单”。
键入“更改 IP 地址范围”选项所对应的编号,然后按 Return 键。
clsetup 实用程序显示当前专用网络配置,然后询问您是否要更改此配置。
要更改专用网络 IP 地址或 IP 地址范围,请键入 yes,然后按 Return 键。
clsetup 实用程序将显示默认专用网络 IP 地址 172.16.0.0,并询问您是否接受此默认值。
更改或接受此专用网络 IP 地址。
更改或接受默认专用网络 IP 地址范围。
默认网络掩码为 255.255.248.0。此默认 IP 地址范围支持在群集中包含最多 64 个节点和最多 10 个专用网络。
对于 clsetup 实用程序询问的是否继续进行更新的问题,键入 yes 作为响应。
完成后,退出 clsetup 实用程序。
将每个节点重新引导回群集模式。
关闭各个节点。
# shutdown -g0 -y |
将每个节点都引导到群集模式下。
在基于 SPARC 的系统中执行以下操作:
ok boot |
在基于 x86 的系统中执行以下操作:
显示 GRUB 菜单后,选择相应的 Solaris 条目,然后按 Enter 键。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)”。
从一个节点启动 clsetup 实用程序。
# clsetup |
屏幕上将显示 clsetup 主菜单。
重新启用所有禁用的资源。
使每个资源组重新联机。
如果节点包含非全局区域,还应使这些区域内的所有资源组联机。
所有资源组重新联机之后,退出 clsetup 实用程序。
键入 q 退出每个子菜单,或按 Ctrl-C。
要向现有的群集中添加节点,请转至以下过程之一:
要在群集节点上创建非全局区域,请转至在群集节点上配置非全局区域。