十六、删除和Unlinking系统、服务组和资源
删除一个系统:# hasys -delete system_name
删除一个服务组:# hagrp -delete service_group 删除一个资源:
# hares -delete resource_name 解除服务组之间的依赖关系:
# hagrp -unlink parent_group child_group 解除资源之间的依赖关系:
# hares -unlink parent_res child_res 只有在服务组的所有资源被删除后才能删除服务组。
十七、配置举例
main.cf文件例子:
include \
// this will include all of the types information
cluster vcs
haclus -modify ClusterName vcs
system sysa
hasys -add sysa
system sysb
hasys -add sysb
snmp vcs
hasnmp -modify SnmpName vcs
group groupx (
hagrp -add groupx
SystemList = { sysa, sysb }
hagrp -modify groupx SystemList sysa 0 sysb 1
AutoStartList = { sysa }
hagrp -modify groupx AutoStartList sysa
)
Disk c1t1d0s3 (
hares -add c1t1d0s3 Disk groupx
Partition = { c1t1d0s3 }
hares -modify c1t1d0s3 Partition c1t1d0s3
)
IP nfssrvx (
第 31 页 共 33 页
hares -add nfssrvx IP groupx
Device = hme0
hares -modify nfssrvx Device hme0
Address = \
hares -modify nfssrvx Address \
)
Mount export1 (
hares -add export1 Mount groupx
MountPoint = \
hares -modify export1 MountPoint \
BlockDevice = \
hares -modify export1 BlockDevice \
Type = vxfs
hares -modify export1 Type ufs
MountOpt = rw
hares -modify export1 MountOpt rw
)
NFS NFS_groupx_16 (
hares -add NFS_groupx_16 NFS groupx
Nservers = 16
hares -modify NFS_groupx_16 Nservers 16
)
NIC groupx_hme0 (
hares -add groupx_hme0 NIC groupx
Device = hme0
hares -modify groupx_hme0 Device hme0
Type = ether
hares -modify groupx_hme0 Type ether
)
Share nfs_export1 (
hares -add nfs_export1 Share groupx
PathName = \
hares -modify nfs_export1 PathName \
)
export1 requires c1t1d0s3
hares -link export1 c1t1d0s3
nfs_export1 requires export1
hares -link nfs_export1 export1
nfs_export1 requires NFS_groupx_16
hares -link nfs_export1 NFS_groupx_16
nfssrvx requires groupx_hme0
hares -link nfssrvx groupx_hme0
nfssrvx requires nfs_export1
hares -link nfssrvx nfs_export1
第 32 页 共 33 页
第三章 用GUI界面管理VCS
本章描述如何使用VCS图形界面“Cluster Manager”监视和管理VCS。 在使用“Cluster Manager”之前必须完成: ? 在配置文件中建立一个用户帐号
Cluster Manager有三种类型的用户: VCSGuest:用户名为(VCSGuestuser_name) VCSOperator:用户名为(VCSOpuser_name) Superuser:用户名为user_name
? 设置GUI显示
# xhost +
# export DISPLAY=myws:0
启动Cluster Manager: # hagui
Cluster Manager有四个窗口: ? Cluster Monitor: ? Cluster Explorer: ? Log Desk:
? Command Center:
第 33 页 共 33 页