VMwareESX4.0HA实验手册CompanyConfidential-ForinformationalpurposesonlyVmwareESX4.0HA实验手册Author:刘道义CreationDate:Aug4,2011LastUpdated:Aug4,2011DocumentRef:DocumentReferenceNumberVersion:DRAFT1AApprovals:Approver1Approver2SMTElectronicTechnologyLimitedCopyNumberVMwareESX4.0HA实验手册CompanyConfidential-ForinformationalpurposesonlyDocumentControlChangeRecordDateAuthorVersionChangeReference4-Aug-11刘道义Draft1aNoPreviousDocumentReviewersNamePositionDistributionCopyNo.NameLocation1234NoteToHolders:Ifyoureceiveanelectroniccopyofthisdocumentandprintitout,pleasewriteyournameontheequivalentofthecoverpage,fordocumentcontrolpurposes.Ifyoureceiveahardcopyofthisdocument,pleasewriteyournameonthefrontcover,fordocumentcontrolpurposes.VMwareESX4.0HA实验手册CompanyConfidential-ForinformationalpurposesonlyContentsDocumentControl..................................................................................................................21.VMwareESXHA.....................................................................................................41.1.总体说明..............................................................................................................41.2.硬件环境...........................................................................................................41.3.OS安装.............................................................................................................41.4.环境准备.........................................................................................................51.5.验证HA.............................................................................................................321.8.后续说明............................................................................................................37OpenIssues......................................................................................................................37ClosedIssues...................................................................................................................37VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly1.VMwareESXHA应用:任意职责:任意1.1.总体说明VMwareHighAvailability可为VMwareESX主机上的虚拟机提供独立于硬件的故障转移,比传统的物理系统解决方案成本更低,部署更简单1.2.硬件环境1.一台物理主机+五台虚拟机物理主机配置主板CPU硬盘内存华硕P7P550DI5-570SeagateSATA500GKingstonDDR38GBOSsoftwareWin2008R2VMwareworkstation72.虚拟机配置机器名IP地址OS应用HA1192.168.1.2VMwareESX4.0ESX集群节点1HA2192.168.1.3VMwareESX4.0ESX集群节点2Win192.168.1.4windows2008R2VMwareVCDC192.168.1.1WinStorage2008ISCSI+DCWinGuest192.168.1.10Windows2003HA测试1.3.OS安装OS安装部份略,可参考网上相关教程VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly1.4.环境准备1.WindowsStorage2008a)选windowsstorage2008是因为wss2008有ISCSI,可以为ESX提供公共存储需要安装一个叫《MicrosoftiSCSISoftwareTarget》的软件,微软有下载安装比较简单,基本上下一步下一步就完事了安装好了如下图创建ISCSI目标VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly创建ISCSI名称添加标识符,点击“高级”“添加”“IP地址”“192.168.1.2”“192.168.1.3”把HA目标IP地址添加进去VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly完成后为ISCSI添加磁盘选择虚拟磁盘路径,文件名后缀为.vhd设置CHAP,用户名/机密随你喜欢VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly记得关闭防火墙或打开3260端口b)这台我还兼做域控,域名为daoyi.com,做域是因为方便架设DNS,在管理工具里面打开DNS创建正向查找区域创建A记录VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly把另外一台也加进来(192.168.1.3)创建反向查找区域VMwareESX4.0HA实验手册CompanyConfidential-ForinformationalpurposesonlyVMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly创建好后如下图VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly2ESX配置a)设置ESX网络用VC打开HA1,在配置里面的DNS和路由里修改属性在ESX主机里面修改hosts信息,Root帐号登陆到ESX#vi/etc/hosts添加以下信息B)添加ISCSI存储配置-网络-添加网络添加ISCSI网络VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly最好选择专用的网卡提高效率VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly修改标签以便管理VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly设置IP(注:此IP跟上面ISCSI目标IP对应)VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly完成后为这个样子在存储适配器里面找到vmhba33的设备VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly在属性里配置ISCSI目标,输入上面设好的CHAP用户名和密码在动态发现里输入ISCSI目标的IP地址VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly配置完成后会在静态发现里面看到ISCSI目标信息在存储器里面添加存储器找到刚才的ISCSI目标盘初始化添加VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly3添加网卡用于VMotion和容错日志记录VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly记得勾选“将此端口组用于vMotion”和“将此端口组用于容错日志记录”VMwareESX4.0HA实验手册CompanyConfidential-ForinformationalpurposesonlyHA2重复同样的动作4创建HA在VC里面新建群集VMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurposesonly打开HA与DRSVMwareESX4.0HA实验手册CompanyConfidential-ForinformationalpurposesonlyVMwareESX4.0HA实验手册CompanyConfidential-ForinformationalpurposesonlyVMwareESX4.0HA实验手册CompanyConfidential-ForinformationalpurposesonlyVMwareESX4.0HA实验手册CompanyConfidential-ForinformationalpurposesonlyVMwareESX4.0HA实验手册CompanyConfidential-ForinformationalpurposesonlyVMwareESX4.0HA实验手册CompanyConfidential-ForinformationalpurposesonlyVMwareESX4.0HA实验手册CompanyConfidential-ForinformationalpurposesonlyVMwareESX4.0HA实验手册CompanyConfidential-Forinformationalpurp