Linux下Veritas Cluster Sever安装配置手册Word文档下载推荐.docx
《Linux下Veritas Cluster Sever安装配置手册Word文档下载推荐.docx》由会员分享,可在线阅读,更多相关《Linux下Veritas Cluster Sever安装配置手册Word文档下载推荐.docx(14页珍藏版)》请在冰点文库上搜索。
Rhel6_x86_64(需要license)
3.软硬件检查:
A)确保主机与磁盘阵列,网卡物理连接正确无误
B)确保两台主机均能访问到相同的共享磁盘设备
4.所需的系统RPM包
ksh-200110202-14.el5.x86_64.rpm
5.IP规划
序号
网卡
地址
1
生产(eth0)
H0030:
10.217.5.78
H0031:
10.217.5.79
2
心跳(eth1)
192.168.1.78
二、安装步骤
1.安装前检查
2.修改/etc/hosts文件
#vi/etc/hosts添加如下:
10.217.5.78H0030
10.217.5.79H0031
192.168.1.78H0030-priv
192.168.1.79H0031-priv
3.建立双机信任机制(分别在两个节点执行)
#ssh-keygen-trsa
#chmod755~/.ssh
#scp~/.ssh/id_rsa.pubH0031:
/root/.ssh/authorized_keys
#exec/usr/bin/ssh-agent$SHELL
#ssh-add
4.安装配置
1)安装前检查
#./installer–precheck
2)vcs安装配置
#./installer
3)安装完成以后,在root用户的.bash_profile文件中增加如下PATH:
PATH=$PATH:
$HOME/bin:
/opt/VRTS/bin:
/opt/VRTSvcs/bin:
/opt/VRTSvlic/bin
exportPATH
注:
查看确认/etc/VRTSvcs/conf/types.cf和/etc/VRTSvcs/conf/config/types.cf文件大小相同
4)安装完成查看VCS进程是否存在
[root@H0030rhel6_x86_64]#ps-ef|grepvcs
root102821018:
26?
00:
00:
00/opt/VRTSvcs/bin/had
root102881018:
00/opt/VRTSvcs/bin/CmdServer
root102921018:
00/opt/VRTSvcs/bin/hashadow
root103131018:
00/opt/VRTSvcs/bin/HostMonitor-typeHostMonitor-agdir/
root104306395018:
28pts/800:
00grepvcs
三、VG和逻辑卷创建
1.使用fdisk-l查看所有存储分配的lun
#fdisk-l|grepDisk
2.创建PV查看pv状态(在共享存储上)
本例共享存储有两个/dev/sddlmaa、/dev/sddlmab
#pvcreate-f/dev/sddlmaa
3.创建VG查看VG状态
#vgcreate-s128datavg/dev/sddlmaa
#vgextenddatavg/dev/sddlmab
#vgdisplay-v/dev/datavg
在另一系统上激活vg
#vgscan
#vgchange-ay/dev/datavg
4.创建lv查看lv状态
#lvcreate-L200G-ndatalvdatavg
#lvdisplay
在另一系统上激活lv
#lvscan
#lvchange-ay/dev/datavg/datalv
#lvdisplay
5.建立挂载点
#mkdir/data
四、JAVAConsole客户端配置Mount资源组
1.右键AddServiceGroup,添加系统,设置优先级和服务组类型。
2.右键AddResource(注:
黑色为必填项)
3.右键EnableResource
4.右键选择online的系统
五、切换测试
1.将系统H0030服务切换到系统H0031
[root@H0030~]#hagrp-switchmail-toH0031
[root@H0030~]#df-h--H0030上挂载点已切换到H0031
[root@H0031~]#df-h--可以查看到挂载点/data
2.将系统H0031服务再切换到系统H0030
[root@H0031~]#hagrp-switchmail-toH0030
[root@H0031~]#df-h--H0031上挂载点已切换到H0030
[root@H0030~]#df-h--可以查看到挂载点/data
3.Reboot系统H0030查看是否自动切换到H0031
六、VCS卸载
1.删除资源组
2.停止VCS服务
#hastop
-all
–force
3.卸载VCS
#/opt/VRTS/install/uninstallvcs601
4.重启主机
#shutdown
-r
now
七、VCS常用命令