Solaris10下VCS 51安装指南.docx
《Solaris10下VCS 51安装指南.docx》由会员分享,可在线阅读,更多相关《Solaris10下VCS 51安装指南.docx(19页珍藏版)》请在冰豆网上搜索。
Solaris10下VCS51安装指南
Solaris10下VCS5.1安装指南
服务工程师:
杨宏伟
文档版本:
B01
2010年04月28日
华为赛门铁克科技有限公司
2010年4月
Solaris下VCS5.1安装指南
系统需求...3
软件环境...3
硬件环境...3
操作系统环境...3
组网环境...3
安装准备...4
方案的软件清单...4
方案的网络规划...4
方案实施指导...5
设置系统环境变量...5
配置Solaris网卡...5
设置共享存储...5
设置集群节点信任关系...6
获取License.7
加载软件光盘...7
安装VCS软件包...7
启动VCS安装程序...7
配置集群节点和安装特性...10
验证集群节点VCS服务...16
系统需求
软件环境
在本例中,搭建系统的软件选用VERITASStorageFoundationEnterpriseHA
硬件环境
在本例中,搭建系统的硬件选用SUN小机和FCSAN存储系统等.
设备
数量
SUN小机
V880
1台
V890
1台
存储系统
OceanstorS5500
1台
硬件环境表
操作系统环境
VCS5.1支持SPARC和X86_64平台,支持Solaris8、Solaris9、Solaris10等操作系统。
安装双机高可用软件的两台服务器本地磁盘要预留412MB空间安装该软件包的空间,要求两台主机系统最低内存大小配置至少为1GB.
安装包
/
/opt
/usr
/var
Totals
必需
10MB
550MB
300MB
20MB
880MB
可选
-
15MB
-
-
15MB
所需空间
10MB
565MB
300MB
20MB
895MB
VCS硬盘空间要求
组网环境
双机高可用的拓扑图如下:
双机系统网络拓扑图
安装准备
方案的软件清单
在本方案中,搭建双机系统需要用到的软件包为:
•VERITASStorageFoundationEnterpriseHAforSolaris软件
方案的网络规划
本双机系统主备服务器为:
主服务器V890(主节点),备服务器V880(备节点).双机系统的IP规划如下:
服务器名称
网口名
IP地址
网口类型
V890
Eri0
192.168.0.1
心跳网口
Eri1
192.168.1.1
心跳网口
Ge0
202.203.208.11
业务网口
V880
Eri0
192.168.0.2
心跳网口
Eri1
192.168.1.2
心跳网口
Ge0
202.203.208.12
业务网口
CLUSTER
Ge0
202.203.208.10
浮动IP
双机系统IP设置表
方案实施指导
设置系统环境变量
修改/etc/profile文件,在/etc/profile文件后面增加下面PATH和MANPATH环境设置:
PATH=/usr/sbin:
/sbin:
/usr/bin:
/bin:
/opt/VRTS/bin:
/opt/VRTSvcs/bin:
$PATH
exportPATH
MANPATH=/usr/share/man:
/opt/VRTS/man
exportMANPATH
配置Solaris网卡
为每台Solaris服务器的网口设置主机名和IP地址,以修改网卡Ge0为例:
#More/etc/hostname.Ge0
V890
#More/etc/hosts
127.0.0.1localhost
202.203.208.11v890
202.203.208.12v880
202.203.208.10CLUSTER
设置共享存储
连接磁盘阵列和两台服务器,并映射一组LUN给两服务器。
S5500存储设备配置请参考《OceanStorS5500开局指导书》
设置集群节点信任关系
在安装VCS软件时,需要对两台主机设置ssh信任关系,以下操作务必在root用户下执行。
检查两台主机的/etc/hosts文件
确认两台服务器的hosts文件已经正确配置:
127.0.0.1localhost
202.203.208.11v890
202.203.208.12v880
202.203.208.10CLUSTER
创建.ssh目录
分别在两台主机上执行如下命令:
#mkdir/.ssh
#chmodgo-w/
#chmod700/.ssh
#chmodgo-rwx/.ssh
生成dsa密钥
使用ssh-keygen命令生成密钥,接受默认的配置文件:
#ssh-keygen-tdsa
将id_dsa.pub文件追加到/.ssh/authorized_keys文件:
#cat/.ssh/id_dsa.pub>>/.ssh/authorized_keys
互传id_dsa.pub文件
把本地的id_dsa.pub文件传到另一台服务器
#sftpv880
sftp>put/.ssh/id_dsa.pub
附加到授权文件
将id_dsa.pub文件追加到/.ssh/authorized_keys文件:
#cat/id_dsa.pub>>/.ssh/authorized_keys
验证ssh功能
分别在两台服务器上执行如下命令,如能正常完成,则表明信任关系设置正确
#ssh-lrootv880uname-a
获取License
可以从Symantec厂商获取测试License。
加载软件光盘
将包含VERITASClusterServer5.1安装包的安装光盘放入光驱中,以root用户登录,挂载光驱,命令如下:
#mount-Fhsfs-oro/dev/dsk/c0t6d0s2/cdrom
安装VCS软件包
VCS安装可以通过脚本安装或网页方式安装,本文采用脚本方式安装:
启动VCS安装程序
下面以运行installer程序为例描述安装过程:
StorageFoundationandHighAvailabilitySolutions5.1InstallProgram
Copyright(c)2009SymantecCorporation.Allrightsreserved.Symantec,theSymantecLogoaretrademarksorregisteredtrademarksofSymantecCorporationoritsaffiliatesintheU.S.andothercountries.Othernamesmaybetrademarksoftheir
respectiveowners.TheLicensedSoftwareandDocumentationaredeemedtobe"commercialcomputersoftware"and"commercialcomputersoftware
documentation"asdefinedinFARSections12.212andDFARSSection227.7202.Logsarebeingwrittento/var/tmp/installer-201004232343zfrwhileinstallerisinprogress.
StorageFoundationandHighAvailabilitySolutions5.1InstallProgram
SymantecProductVersionInstalledLicensed
=============================================================
SymantecLicensingUtilities(VRTSvlic)arenotinstalledduetowhichproductsandlicensesarenotdiscovered.Usethemenubelowtocontinue.
TaskMenu:
P)PerformaPre-InstallationCheckI)InstallaProduct
C)ConfigureanInstalledProductG)UpgradeaProduct
L)LicenseaProductU)UninstallaProduct
D)ViewaProductDescriptionS)StartaProduct
R)ViewProductRequirementsX)StopaProduct
Q)Quit?
)Help
EnteraTask:
[P,I,C,G,L,U,D,S,R,X,Q,?
]p
步骤1选择”p”执行安装前检查
StorageFoundationandHighAvailabilitySolutions5.1PrecheckProgram
1)VeritasClusterServer(VCS)
2)StorageFoundation(SF)
3)StorageFoundationandHighAvailability(SFHA)
4)StorageFoundationforClusterFileSystem(SFCFS)
5)StorageFoundationforClusterFileSystem/HA(SFCFSHA)
6)VeritasStorageFoundationforOracleRAC(SFOracleRAC)
7)SymantecProductAuthenticationService(AT)
b)Backtopreviousmenu
Selectaproducttoperformpre-installationcheckfor:
[1-7,b,q]1
EntertheSolarisSparcsystemnamesseparatedbyspaces:
[q,?
]v880v890
步骤2选择1,执行VCS安装前检查,输入SolarisSparc系统名称
VeritasClusterServer5.1PrecheckProgram
v880v890
Logsarebeingwrittento/var/tmp/installer-201004232343zfrwhileinstallerisinprogress
Verifyingsystems:
0%________________________________________________________
Estimatedtimeremaining:
0of8
Verifyingsystems:
12%________________________________________________________
Estimatedtimeremaining:
0:
008of8
Checkingsystemcommunication..........................................................................................Done
Checkingreleasecompatibility.........................................................................................Done
Checkinginstalledproduct.............................................................................................Done
Checkinginstalledpatches.............................................................................................Done
Checkingplatformversion..............................................................................................Done
Checkingfilespace....................................................................................................Done
Performingproductlicensechecks......................................................................................Done
Performingproductprechecks...........................................................................................Done
Precheckreportcompleted
Systemverificationcheckscompletedsuccessfully
Noissuesfoundinprechecks
WouldyouliketoinstallVCSonv880v890[y,n,q](n)y
DoyouagreewiththetermsoftheEndUserLicenseAgreementasspecifiedintheEULA.pdffilepresentonmedia?
[y,n,q,?
]y
步骤3输入‘y’开始安装VCS
配置集群节点和安装特性
VeritasClusterServer5.1PrecheckProgram
v880v890
1)InstallminimalrequiredVeritasClusterServerpackages-297MBrequired
2)InstallrecommendedVeritasClusterServerpackages-319MBrequired
3)InstallallVeritasClusterServerpackages-364MBrequired
4)Displaypackagestobeinstalledforeachoption
Selectthepackagestobeinstalledonallsystems?
[1-4,q,?
]
(2)3
步骤4选择安装包,输入‘3’选择全部安装。
VeritasClusterServer5.1PrecheckProgram
v880v890
ThefollowingVeritasClusterServerpackageswillbeinstalledonallsystems:
VRTSvlicVeritasLicensing
VRTSperlVeritasPerl5.10.0Redistribution
VRTSsptVeritasSoftwareSupportToolsbySymantec
VRTSlltVeritasLowLatencyTransport
VRTSgabVeritasGroupMembershipandAtomicBroadcast
VRTSvxfenVeritasI/OFencingbySymantec
VRTSvcsVeritasClusterServer
VRTScpsVeritasClusterServer-CoordinatedPointServer
VRTSvcsagVeritasClusterServerBundledAgentsbySymantec
VRTScutilVeritasClusterUtilitybySymantec
VRTSatSymantecProductAuthenticationService
VRTSvcseaVeritasDBEDagents
Press[Enter]tocontinue:
步骤5按回车开始安装
VeritasClusterServer5.1PrecheckProgram
v880v890
Logsarebeingwrittento/var/tmp/installer-201004232343zfrwhileinstallerisinprogress
VeritasClusterServer5.1PrecheckProgram
v880v890
TocomplywiththetermsofSymantec'sEndUserLicenseAgreement,youhave60daystoeither:
*Enteravalidlicensekeymatchingthefunctionalityinuseonthesystems
*EnablekeylesslicensingandmanagethesystemswithaManagementServer.Formoredetailsvisit
Theproductisfullyfunctionalduringthese60days.
1)Enteravalidlicensekey
2)Enablekeylesslicensingandcompletesystemlicensinglater
Howwouldyouliketolicensethesystems?
[1-2,q]
(2)1
步骤6输入‘1’,为集群节点输入license
EnteraVCSlicensekey:
[b,q,?
]xxxx-xxxx-xxxx-xxxx-xxxx
ClusterServersuccessfullyregisteredonv880
ClusterServersuccessfullyregisteredonv890
Doyouwishtoenteradditionallicenses?
[y,n,q,b](n)
VeritasClusterServerInstallcompletedsuccessfully
WouldyouliketoconfigureVCSonv880v890[y,n,q](n)Y
步骤7License注册成功,输入‘y’继续配置VCS
VeritasClusterServer5.1PrecheckProgram
v880v890
ToconfigureVCS,answerthesetofquestionsonthenextscreen.
When[b]ispresentedafteraquestion,'b'maybeenteredtogobacktothefirstquestionoftheconfigurationset.When[?
]ispresentedafteraquestion,'?
'maybeenteredforhelporadditionalinformationaboutthequestion.Followingeachsetofquestions,theinformationyouhaveenteredwillbepresentedforconfirmation.Torepeatthesetofquestionsandcorrectanypreviouserrors,enter'n'attheconfirmationprompt.Noconfigurationchangesaremadetothesystemsuntilallconfigurationquestionsarecompletedandconfirmed.
Press[Enter]tocontinue:
步骤8输入回车,开始配置VCS
VeritasClusterServer5.1PrecheckProgram
v880v890
ToconfigureVCSthefollowinginformationisrequired:
AuniqueClustername
AuniqueClusterIDnumberbetween0-65535
TwoormoreNICcardspersystemusedforheartbeatlinks
Oneormoreheartbeatlinksareconfiguredasprivatelinks
Oneheartbeatlinkmaybeconfiguredasalowprioritylink
Allsystemsarebeingconfiguredtocreateonecluster
Entertheuniqueclustername:
[q,?
]CLUSTER
Enteraun