示例一 – 安装和配置和示例二 – 管理命令说明了如何安装、配置和管理 Sun Cluster HA for BroadVision One-To-One Enterprise。 下表列出了群集信息和 BroadVision One-To-One Enterprise 配置信息。 此信息适用于以下两个示例。
表 1–5 示例 – 群集信息
节点名称 |
phys-schost-1、phys-schost-2 |
逻辑主机名 |
schost-1、schost-2 |
资源组 |
root-host-resource-group(用于根主机资源)、back-end-resource-group(用于后端资源)、im-resource-group(用于 Interaction Manager 资源) |
资源 |
root-host-resource(BroadVision 根主机资源)、back-end-resource(BroadVision 后端资源)、im-resource(BroadVision Interaction Manager 资源) |
表 1–6 示例 – BroadVision 配置信息
BV 用户 |
BVUSER(在所有群集节点上) |
BV1TO1_VAR 目录 |
/global/broadvision/bvuser/bv1to1_var |
根主机 |
schost-1 |
后端主机 |
schost-2 |
Interaction Manager 1 |
phys-schost-1 |
Interaction Manager 2 |
phys-schost-2 |
此例说明了如何安装和配置数据服务。
(注册 BroadVision 资源类型。)phys-schost-1:> scrgadm -a -t SUNW.bv (为后端和根主机进程创建故障转移资源组。) phys-schost-1:> scrgadm -a -g root-host-resource-group phys-schost-1:> scrgadm -a -g back-end-resource-group (为 Interaction Manager 进程创建可缩放资源组。) phys-schost-1:> scrgadm -a -g im-resource-group -y Maximum_primaries=2 / -y Desired_primaries=2 (将逻辑主机名添加到故障转移资源组。) phys-schost-1:> scrgadm -a -L -g root-host-resource-group -l schost-1 phys-schost-1:> scrgadm -a -L -g back-end-resource-group -l schost-2 (创建根主机、后端和 Interaction Manager 资源。) phys-schost-1:> scrgadm -a -j root-host-resource -g root-host-resource-group / -t SUNW.bv -x BVUSER=bvuser -x BV1TO1_VAR=/global/broadvision/bvuser/bt1to1_var phys-schost-1:> scrgadm -a -j back-end-resource -g back-end-resource-group / -t SUNW.bv -x BVUSER=bvuser -x BV1TO1_VAR=/global/broadvision/bvuser/bt1to1_var phys-schost-1:> scrgadm -a -j im-resource -g im-resource-group -t SUNW.bv / -x BVUSER=bvuser -x BV1TO1_VAR=/global/broadvision/bvuser/bt1to1_var (将所有资源组联机。) phys-schost-1:> scswitch -Z -g root-host-resource-group phys-schost-1:> scswitch -Z -g back-end-resource-group phys-schost-1:> scswitch -Z -g im-resource-group |
此例列出了您可能要运行的某些常用管理命令。
(检查资源组的状态。) phys-schost-1:> scstat -g (注意:所有 BroadVision Interaction Manager 1、根主机和后端进程均应在 phys-schost-1 上运行。 Interaction Manager 2 进程必须在 phys-schost-2上运行。) (测试故障转移。将根主机资源组和后端资源组切换到另一个节点。) phys-schost-1:> scswitch -z -g root-host-resource-group -h phys-schost-2 phys-schost-1:> scswitch -z -g back-end-resource-group -h phys-schost-2 (注意:所有 BroadVision 根主机和后端进程现在都应在 phys-schost-2 上运行。) (因为将最大和所需的主节点设置为 2,因此 Interaction Manager 在两个群集节点上运行。 关闭在 phys-schost-2 上运行的 Interaction Manager 2。) phys-schost-1:> scswitch -z -g im-resource-group -h phys-schost-1 (关闭所有资源组。) phys-schost-1:> scswitch -F -g root-host-resource-group phys-schost-1:> scswitch -F -g back-end-resource-group phys-schost-1:> scswitch -F -g im-resource-group (删除和禁用所有 BroadVision 资源和资源组。) phys-schost-1:> scswitch -n -j root-host-resource phys-schost-1:> scswitch -n -j back-end-resource phys-schost-1:> scswitch -n -j im-resource phys-schost-1:> scswitch -n -j schost-1 phys-schost-1:> scswitch -n -j schost-2 phys-schost-1:> scrgadm -r -j root-host-resource phys-schost-1:> scrgadm -r -j back-end-resource phys-schost-1:> scrgadm -r -j im-resource phys-schost-1:> scrgadm -r -j schost-1 phys-schost-1:> scrgadm -r -j schost-2 phys-schost-1:> scrgadm -r -j root-host-resource-group phys-schost-1:> scrgadm -r -j back-end-resource-group phys-schost-1:> scrgadm -r -j im-resource-group (删除资源类型。) phys-schost-1:> scrgadm -r -t SUNW.bv |