vSphere FT advanced features and configuration management

 

Preview:

  1. Fault Tolerance works

  2. 5.X vLockstep version of FT technology used

  Fast Checkpointing 3. 6.X version of the technology used by FT

  4. FT is not supported vSphere features 

  The virtual machine configuration basic conditions of FT

  6. Configure virtual machines using FT

 

1. Fault Tolerance works

                         

  1.1  vSphere Fault Tolerance (FT)

  FT by creating and maintaining the same with such virtual machine and other virtual machines can be replaced at any time such virtual machines on failover occurs, to ensure continuous availability of such virtual machines.

  1.2 protected virtual machine called the master virtual machine

  Repeat virtual machine (VM aid) to create and run on other hosts. Since the same way assist the implementation of the virtual machine and the host virtual machine, and the secondary virtual machine can execute without interruption to take over at any point, it can provide fault tolerance protection.

  1.3 Primary VM and Secondary VM continuously monitors the status of each other to ensure the maintenance Fault Tolerance

  If you are running the Primary VM host fails, the system will perform transparent fail-over, then immediately enable the auxiliary virtual machine to replace the primary virtual machine, start a new secondary virtual machine, and automatically re-establish Fault Tolerance redundancy. If the host running the Secondary VM fails, then the host will immediately be replaced. In either case, users experience no service interruption and loss of data.

  1.4 Fault Tolerance uses anti-affinity rules

  These rules ensure that the two instances of the fault tolerant virtual machines will never be on the same host. This ensures that a host failure can not lead to two virtual machines are missing 

 

2. 5.X vLockstep version of FT technology used

                                                             

  2.1) VMware vSphere 5.X versions FT vlockstep use technology to achieve fault-tolerance, the nature of the recording / playback.

  2.2) When a virtual machine is enabled FT, a virtual machine from a master to run simultaneously on two ESXi hosts, virtual machines do any of the main operation will be immediately passed through to the record player from the virtual machine, that two virtual All machine operations are the same.

                         

                                                                                                                                vLockstep technology


  2.3)   但由于采用的是录制/播放,主从虚拟机会存在一定瞬时间差(基本可忽略),这个时间差称之为vlockstep Interval,其时间差取决于ESXi主机的整体性能。

  2.4)   当主虚拟机所在的ESXi主机发生故障时,从虚拟机立即接替工作,同时提升为主虚拟机。这个接替工作瞬间完成,用户基本感觉不到。

 

3. 6.X版本FT使用的Fast Checkpointing技术

                                                   

  3.1)   VMware vSphere 6.0版本中FT使用新的Fast Checkpointing技术来实现容错、监控网络带宽,检验点的传输时间间隔(2毫秒~500毫秒)

  3.2)   取代了5.X版本FT使用的vLockstep技术

  3.3)   支持并要求10GB网

  3.4)   分开的VMDK文件

  3.5)   支持虚拟机最多4个vCPU,以及最大64GB内存

 

4.  FT不支持的vSphere功能 

  FT提供了最大限度的虚拟机容错,但是由于其自身原因,FT不支持某些vSphere功能:

  4.1) 快照
    在虚拟机启用FT前,必须移除或提交快照,同时不可能对已经启用FT的虚拟机执行快照。

  4.2) Storage vMotion
    FT不支持已启用FT技术的虚拟机使用Storage vMotion。如果必须是使用Storage vMotion,应该先暂时关闭FT,然后执行Storage vMotion操作,执行完成后,再重新打开FT。

  4.3) 链接克隆
    FT不支持在链接克隆的虚拟机上使用FT,也不能从启用了FT技术虚拟机创建链接克隆。

  4.4)  Virtual SAN
    很遗憾的是,在VMware vSphere 6.0版本中FT不能使用VSAN,据VMware官方发布的消息,VMware vSphere 6.1版本将支持在VSAN上使用FT技术。

  4.5) 虚拟机组件保护
    如果群集已启用虚拟机组件保护,则会为关闭此功能的容错虚拟机创建替代项。

  4.6) FT不支持基于VVOL(虚拟卷)的数据存储

  4.7) FT不支持基于存储的策略管理
    FT不支持I/O筛选器

 

5.配置虚拟机FT的基础条件

  在群集中配置使用虚拟机FT,需要了解一下实施FT的基础条件,否则在启用过程中会出现若干错误:

  5.1)  ESXi主机必须使用受支持的CPU

  ► 虚拟机FT技术的启用与ESXi主机所使用的CPU有很大关系,目前市面上主流服务器CPU几乎都支持FT技术

  ► 对于Intel系统CPU,Intel Sandy Bridge或更高版本都可以很好的支持FT技术,Intel Avoton系统不支持FT技术

  ► 对于AMD系统CPU,AMD Bulldozer或更高版本都可以支持FT技术  

 

  5.2)  ESXi主机网络

  ► 在vSphere 6.0版本中使用FT,强烈推荐使用专用的10GB网络承载FT,在1GB网络下使用会出现错误提示

 

  5.3)  限制:在已配置为使用FT的群集中,分别强制执行两个限制

  ► 群集中的主机上允许的最大容错虚拟机数量,主虚拟机和辅助虚拟机计入此限制,默认值为4
  ► das.maxftvmsperhost
  ► 跨主机上所有容错虚拟机聚合的最大vCPU数量,主虚拟机和辅助虚拟机中的vCPU均计入此限制,默认值为8
  ► das.maxftvcpusperhost


  5.4) vSphere版本影响vCPU数量,需要购买许可
  ► vSphere版本直接影响虚拟机使用FT技术后的vCPU数量。
  ► vSphere Standard和Enterprise版本最多可支持2个vCPU
  ► vSphere Enterprise Plus版本最多可运行4个vCPU


  5.5) 其他配置建议
  ► 在开启FT功能后,容错虚拟机的保留内存设置为虚拟机的内存大小,确保包含容错虚拟机的资源池拥有大于虚拟机内存大小的内存资源。如果资源池中没有额外内存,则可能没有内存可用作开销内存
  ► 每个容错虚拟机最多使用16个虚拟磁盘
  ► 为确保冗余和最大FT保护,群集中应至少有三台主机。如果发生故障切换情况,这可确保有主机可容纳所创建的新辅助虚拟机。


  5.6) 不与 Fault Tolerance 兼容的功能和设备以及纠正操作
  ► 建议CD/DVD ROM、软驱在不使用时删除掉,对于CD/DVD ROM如果需要使用,建议打到数据存储ISO文件位置
  ► 建议不启用RDM
  ► 如果在虚拟机上存在USB设备或声音设备,建议删除
  ► 启用FT之后,热插拔功能将失效,如果想启用热插拔功能,建先关闭掉FT功能
  ► 串行和并行设备不支持FT
  ► 如果启用了3D视频支持,建议关闭
  ► 虚拟EFI固件,建议在设置时选择BIOS固件

  ► 建议虚拟磁盘在2TB以下

 

6.配置使用虚拟机FT

  6.1)   确认各ESXi主机是否启用了ESXi FT日志记录,未启用ESXi主机FT日志记录功能将无法配置使用FT

  6.2)   启用EVC

  6.3)   由于6.0版本的虚拟机FT技术推荐使用2个存储,确认存储是否正常

  6.4)   选择要配置FT技术的虚拟机,确认虚拟机处于关机状态,未使用VSAN等FT不支持的技术

  6.5)   选中虚拟机,右击,打开FT功能

 

Guess you like

Origin www.cnblogs.com/reachos/p/11221671.html