VERITAS ? Cluster Server
Version 3.5
用户指南
东软公司 2003年1月
第 1 页 共 33 页
目 录
第一章 Veritas Cluster Server安装指南 ............................................ 3
一、概述 ................................................................................................................................ 3 二、安装步骤 ....................................................................................................................... 3 三、VCS资源类型和代理(VCS Resource Types and Agents) ........................... 7
第二章 用命令行命令管理VCS .......................................................................... 17
一、启动VCS ...................................................................................................................... 17 二、增加、修改、删除用户 .......................................................................................... 18 三、查询VCS ...................................................................................................................... 18
⒈ ⒉ ⒊ ⒋ ⒌ ⒍ ⒎ ⒈ ⒉ ⒊ ⒋ ⒌
资源(Resources) ................................................................................................... 18 服务组(Service Groups): ................................................................................. 19 系统(Systems) ....................................................................................................... 21 资源类型(Resouce Types) ................................................................................... 22 资源类型代理(Resource Type Agents) .................................................................. 23 集群(Clusters) ..................................................................................................... 24 其它(Additional Queries) ................................................................................. 24 集群(Cluster)操作 ............................................................................................... 25 系统(System)操作 ................................................................................................. 25 服务组(Service Group)操作 ............................................................................... 25 资源(Resource)操作 ............................................................................................. 26 代理(Agent)操作 ................................................................................................... 26
四、基本操作 ..................................................................................................................... 25
五、停止VCS ...................................................................................................................... 27 六、重新配置VCS ............................................................................................................. 27 七、高级语言和低级命令 .............................................................................................. 27 八、增加、修改、删除属性 .......................................................................................... 28 九、在集群中增加一个系统 .......................................................................................... 29 十、增加服务组 ................................................................................................................. 29 十一、绑定服务组(Linking Service Groups) ...................................................... 29 十二、修改服务组系统列表 .......................................................................................... 29 十三、增加、修改、删除资源类型 ............................................................................ 30 十四、增加资源 ................................................................................................................. 30 十五、绑定资源(Linking Resources) ..................................................................... 30 十六、删除和Unlinking系统、服务组和资源 ...................................................... 31 十七、配置举例 ................................................................................................................. 31
第三章 用GUI界面管理VCS ................................................................................ 33
第 2 页 共 33 页
第一章 Veritas Cluster Server安装指南
一、概述
VCS通信有两种类型的通道:networks和communication disks (disk指物理硬盘分区的一个区域)。每一个Cluster配置至少需要2个通信通道,其中一个必须是网络通道,另一个可以是网络通道,也可以是communication disks。
VCS最多支持8个网络通道和4个communication disks,VCS communication disks必须连接到Cluster中的每一个系统上。建议在系统之间的每个I/O链上至少配置一个硬盘。对于使用communication disks的配置,目前Cluster中最多只能有8个系统。
VCS还提供另一种类型的硬盘监视功能,即service group heartbeat disks。heartbeat disks与service groups相关联,能够被运行该service group的每一个系统存取。
VCS安装步骤: ⒈ 设置硬件
⒉ 安装VCS软件包 ⒊ 配置VCS通信服务
⒋ 为communication disks和service group heartbeat disks分配存储空间 ⒌ 启动VCS
⒍ 检查LLT、GAB和Cluster操作
⒎ 在共享存储设备上初始化文件系统和硬盘组 ⒏ 准备NFS服务
在上面这些步骤完成之后,就可以开始配置VCS了。
二、安装步骤
⒈ 设置硬件:
硬件配置:
项目 VCS主机服务器 CD-ROM驱动器 硬盘 Ethernet控制器 SCSI适配器 硬盘空间 RAM 描述 运行Solaris 2.5.1或更高版本的SPARC系统 每个主机有一个,或者通过其它方式可以存取的CD-ROM驱动器 需要共享硬盘 除了内置的Ethernet控制器外,每个主机至少需要一个Ethernet控制器 除了内置的SCSI适配器外,每个主机至少需要一个SCSI适配器 每个VCS系统在/opt文件系统下至少需要35M自由空间 每个VCS系统至少需要128M
修改每个主机上的共享SCSI驱动程序的配置文件:为了设置共享SCSI总线的SCSI ID,需要在每个主机上修改/kernel/drv/driver_name.conf文件。文件格式如下:
name=”driver_name” parent=”parent_name” reg=register_property_values scsi-initiator-id=scsi_id;
第 3 页 共 33 页
例如/kernel/drv/isp.conf:
name=”isp” parent=”/sbus@1f,0” reg=0x0,0x10000,1c2 scsi-initiator-id=5;
其中:
# ls -l /dev/dsk/c1t0d0s3
lrwxrwxrwx 1 root root 53 Dec 03 11:10 /dev/dsk/c1t0d0s3 -> ../../ \\ devices/sbus@1f,0/QLGC,isp@0,10000/sd@0,0:d,raw
# prtconf -v
QLGC,isp, instance #0
...
Register Specifications:
Bus Type=0x0, Address=0x10000, Size=1c2 ...
⒉ 安装VCS软件包:
在VCS中的每一个主机上执行如下步骤:
# mount -F hsfs -o ro /dev/dsk/c0t6d0s2 /cdrom/cdrom0 # cd /cdrom/cdrom0 # ./InstallVCS
Please enter the unique Cluster Name : 输入名字
Please enter the unique Cluster ID(a number from 0-255) :
Enter the systems on which you want to install. (system names separated by spaces) : 。。。 安装示例: #./InstallVCS
lease enter the unique Cluster Name : vcs
Please enter the unique Cluster ID(a number from 0-255) : 0
Enter the systems on which you want to install. (system names separated by spaces) : e351 e352
Analyzing the system for install. e351 ..... OK.
SunOS e351.sw.asiainfo.com 5.7 Generic_106541-04 sun4u sparc SUNW,Ultra-Enterprise e352 ..... OK.
SunOS e352.sw.asiainfo.com 5.7 Generic_106541-06 sun4u sparc SUNW,Ultra-Enterprise
Installing on e351.
Copying VRTSperl binaries. Installing VRTSperl Done. Copying VRTSllt binaries. Installing VRTSllt Done.
第 4 页 共 33 页
Copying VRTSgab binaries. Installing VRTSgab Done. Copying VRTSvcs binaries. Installing VRTSvcs Done.
Installing on e352.
Copying VRTSperl binaries. Installing VRTSperl Done. Copying VRTSllt binaries. Installing VRTSllt Done. Copying VRTSgab binaries. Installing VRTSgab Done. Copying VRTSvcs binaries. Installing VRTSvcs Done.
Discovering NICs for setting up private network links on e351. This may take some time.
Following is the list of discovered NICs: Sr. No. NIC Device 1. /dev/hme:0 2. /dev/hme:1 3. Other
From the list above, please enter the serial number (the number appearing in the Sr. No. column) of the NIC for
First PRIVATE network link: 1
From the list above, please enter the serial number (the number appearing in the Sr. No. column) of the NIC for
Second PRIVATE network link: 2
Do you have the same network cards set up on all systems (Y/N)? y
Copied llt & gab configuration files.
Loading GAB and LLT modules and starting VCS on e351: Starting LLT Start GAB
Loading GAB and LLT modules and starting VCS on e352: Starting LLT Start GAB
Installation successful on all systems.
第 5 页 共 33 页