用于 BroadVision One-To-One Enterprise 的 Sun Cluster 数据服务指南(适用于 Solaris OS)

示例二 – 管理命令

此例列出了您可能要运行的某些常用管理命令。


(检查资源组的状态。)
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