VMware 虚拟化平台规划设计方案
三种方式各有利弊:
建议将I/O负载较重的虚拟机分别驻留在不同的VMFS(LUN)上。 8.4 虚拟机文件系统选择 VMFS 数据存储是VMkernel处理磁盘的默认方式;VMkernel对磁盘分区并进行格式化,创建了VMFS文件系统的磁盘在vSphere中称为数据存 储,而且VMkernel能够读取磁盘,VMFS的优势是单个磁盘(在SAN中术语为LUN)能够承载多个虚拟机。 有关每个LUN应该承载 多少个虚拟机,平均数应该是12(生产系统推荐8个,测试类系统可用16个)个虚拟机共享一个数据存储。一个数据存储能够承载多个虚拟机及构成虚拟机的所有文件。这些文件包括VMX文 件(该文件列出了虚拟机的硬件配置)和VMDK文件(虚拟机的硬盘以及构成虚拟机的其他零散文件)。 使用RDM,VMkernel不会对LUN进行格式化,而是由虚拟机客户操作系统对LUN执行格式化。每个RDM是一块单独的虚拟机硬盘,而且通常只关联到单个虚拟机。RDM存储虚拟机的磁盘内容而非虚拟机文件,构成虚拟机的文件需要存放在RDM之外的数据存储上。 部署RDM通常基于RDM能够提供更好的性能这一理念,因为其开销要比VMFS上的VMDK文件低。但是在某些情况下,RDM要比VMFS的性能还要差一些。 关于RDM配置,请参考官方文档《vSphere 存储》第18章“裸设备映射”一节。 注:除非软件应用有要求使用RDM,VMWare官方推荐客户使用VMFS文件系统,可用充分利用虚拟化的一切特性。 8.5 虚拟机集群共享存储配置 Virtual SCSI 适配器 集群的成员虚拟机必须选择专用的SCSI适配器。参考官方文档KB1037959 For example, if the system disk (drive C:) is attached to SCSI0:0, the first shared disk would be attached to SCSI1:0, and the data disk attached to SCSI1:1. The shared storage SCSI adapter for Windows Server 2008 and higher must be the LSI Logic SAS type, while earlier Windows versions must use the LSI Logic Parallel type. Disk configurations •RDM: Configurations using shared storage for Quorum and/or Data must be on Fibre Channel (FC) based RDMs (physical mode for cluster across boxes "CAB", virtual mode for cluster in a box "CIB") in vSphere 5.1 and earlier. RDMs on storage other than FC (iSCSI and FCoE) are only supported in vSphere 5.5.. •VMFS: Virtual disks used as shared storage for clustered virtual machines must reside on VMFS datastores and must be created using the EagerZeroedThick option. This can be done using the vmkfstools command from the console, the vSphere CLI, or from the user interface. To create EagerZeroedThick storage with the vmkfstools command: 1.Log into the console of the host or launch the VMware vSphere CLI. 2.For example, to create a 10 GB file in datastore1 named myVMData.vmdk, run the command: ▪Using the console:vmkfstools –d eagerzeroedthick –c 10g /vmfs/volumes/datastore1/myVM/myVMData.vmdkNote: Replace 10g with the desired size. ▪Using the vSphere CLI:vmkfstools.pl –-server ESXHost –-username username --password passwd –d eagerzeroedthick –c 10g /vmfs/volumes/datastore1/myVM/myVMData.vmdk •To create EagerZeroedThick storage with the user interface: 1.Using the vSphere Client, select the virtual machine for which you want to create the new virtual disk. 2.Right-click the virtual machine and click Edit Settings. 3.From the virtual machine properties dialog box, click Add to add new hardware. 4.In the Add Hardware dialog box, select Hard Disk from the device list. 5.Select Create a new virtual disk and click Next. 6.Select the disk size you want to create. 7.Select the datastore with the virtual machine or select a different datastore by clicking Specify a datastore and browsing to find the desired datastore. 8.To create an EagerZeroedThick disk, select Support clustering features such as Fault Tolerance.Note: Step 8 must be the last configuration step. Changes to datastores after selecting Support clustering features such as Fault Tolerance cause it to become deselected. Complete the wizard to create the virtual disk. 根据以往经验,如果数据库的大小<800G,建议使用VMFS格式,如果数据库大小>800G,可以考虑使用RDM方式。 需要设置的共享盘:心跳盘,数据库用到的磁盘(NEC Cluster设置需要磁盘多宿主)。 在使用NEC Cluster时候,主应用虚拟机允许迁移,但不设置回切。在主备虚拟机之间设置关联规则:互斥,避免应用双机同时迁移到同一台ESXi主机上。 设置NEC Cluster共享盘时, 心跳磁盘大小大于200M以上即可,使用VMFS方式。 设置集群IP时:分为Service IP(对外),public IP(管理),private IP(心跳)。Service IP与public IP在同一网段内,private IP单独规划出一个网段,做到网络隔离。 (编辑:衢州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |