1. Create the quorum disk
Enter the VMware Workstation Software installation directory
CD e:\software\vmware>
Vmware-vdiskmanager.exe-c-S 500mb-a lsilogic-t 2 F:\SOFTWARE\SHAREDISK\ZONGCAI01.VMDK
2. Create a shared disk
CD e:\software\vmware>
Vmware-vdiskmanager.exe-c-S 10gb-a lsilogic-t 0 F:\SOFTWARE\SHAREDISK\SHAREDISK01.VMDK
Vmware-vdiskmanager.exe-c-S 10gb-a lsilogic-t 0 F:\SOFTWARE\SHAREDISK\SHAREDISK02.VMDK
Vmware-vdiskmanager.exe-c-S 10gb-a lsilogic-t 0 F:\SOFTWARE\SHAREDISK\SHAREDISK03.VMDK
3. Attaching a shared disk
With the previous actions, we have successfully created the shared disks required by the cluster. Next, you attach the virtual disk file to ha and HB.
Edit the CentOS 6.5.vmx (VMware Config file) for both machines, open with Notepad and add the following records:
Disk.locking = "false"
Disklib.datacachemaxsize = "0"
Scsi1.present = "TRUE"
Scsi1.virtualdev = "Lsilogic"
Scsi1:1.present = "TRUE"
Scsi1:1.filename = "F:\SOFTWARE\SHAREDISK\ZONGCAI01.VMDK"
Scsi1:2.present = "TRUE"
Scsi1:2.filename = "F:\SOFTWARE\SHAREDISK\SHAREDISK01.VMDK"
Scsi1:3.present = "TRUE"
Scsi1:3.filename = "F:\SOFTWARE\SHAREDISK\SHAREDISK02.VMDK"
Scsi1:4.present = "TRUE"
Scsi1:4.filename = "F:\SOFTWARE\SHAREDISK\SHAREDISK03.VMDK"
When you turn off the VMware Workstation software again, you'll see that the shared disks you created previously are attached to HA and HB.
4. How to use Vmware-vdiskmanager:
Vmware-vdiskmanager
Command syntax:
Vmware-vdiskmanager [Options] < disk name >
VMware Virtual Disk manager-build 44356.
Usage:vmware-vdiskmanager [Options] < disk name >
<diskname>
The name of the virtual disk file.
#虚拟磁盘文件必须是. VMDK is an extension. You can specify a path to the virtual disk file that you want to store. If you have mapped a network share in your host, you can also provide the exact path information for the virtual disk file to create the virtual disk in this network share.
-C
Create a virtual disk.
#你必须用-A,-s and-t and specify the option parameters, then you need to specify the file name of the virtual disk file you want to create.
-R <sourcediskname>
Converts the type of virtual disk that has the specified type.
#结果会输出创建一个新的虚拟磁盘. You must specify the type of disk you want to convert to by using the-t option, and specify the file name of the target vdisk.
#一旦转换完成, you can test the vdisk first to make sure it works as you want, and then delete the original Vdisk file.
#为了让虚拟机重新认识转换后的虚拟磁盘, you should use the Virtual machine settings editor to first remove the previously existing virtual disk from the virtual machine, and then add the converted virtual disk to the virtual machine.
-X <n>[gb| MB] <diskname>
Increase the virtual disk to the specified capacity. You must specify a new larger size virtual disk in GB or MB units. You cannot change the size of the physical disk.
#在你运行虚拟磁盘管理软件前, you should back up the virtual disk files first. Because Vmware-vdiskmanager will write a new configuration to your virtual machine configuration file
-D <diskname>
Defragment the specified virtual disk.
#你只能磁盘碎片整理可增长的虚拟磁盘. You cannot defragment a pre-allocated virtual disk.
-P <mountpoint>
Prepare for shrinking the disk.
#如果虚拟磁盘被分成多个分区, each partition must be prepared separately. partitions (such as/email or/storage) must be mapped with the VMware Diskmount tool.
#在你对分区准备处理后, the mapping for this partition is unblocked. Continue mapping each additional partition of the virtual disk to prepare the shrink disk for processing until all partitions on the virtual disk are ready to complete.
#你在同一时刻只能用VMware diskmount Map A partition of the virtual disk. You can only perform shrink partition preparation for virtual disks on the host.
-K <diskname>
Shrinks the specified virtual disk. You can only shrink the growth disk. You can only shrink the virtual disk in this way in the host.
#你不能够收缩有虚拟机快照的虚拟磁盘. You can keep the status of the existing virtual disk and delete all snapshots with the snapshot manager. You can also discard changes made to the vdisk since the snapshot and revert to the snapshot state.
-A [IDE | buslogic | lsilogic]
Specifies the type of disk adapter. When you create a new virtual disk, you must specify its type.
#选择以下类型之一:
#ide--ide Interface Adapter
#buslogic--buslogic SCSI Interface Adapter
#lsilogic--LSI Logic SCSI Interface Adapter
-S <n> [gb| MB]
Specifies the size of the virtual disk. Determine the size in GB or MB units. You must specify the size of the disk when you create it.
#尽管你必须指定虚拟磁盘的大小, but when you increase its size, you cannot use the-s option.
#可以指定的磁盘大小规定: The IDE and SCSI adapters are both minimum 100MB and 950GB maximum.
-T [0|1|2|3]
You must specify the type of virtual disk when you create a new virtual disk or reconfigure a virtual disk.
#指定以下类型之一:
#0-Create an extensible virtual disk that is contained in a single virtual file
#1-Create a scalable virtual disk that is split into 2GB size per file
#2-Create a pre-allocated virtual disk that is contained in a single virtual file
#3-Create a pre-allocated virtual disk that is divided into 2GB size per file
-Q
Disable the Virtual Disk Management program from writing logs
#如果你允许记录日志, the log will be generated and stored by the Virtual Disk Management program. After the virtual Disk Management program runs, the name and location of the log will appear in the command line or terminal.
-N <source-disk>
Renames the specified virtual disk. You need to specify the name of the virtual disk after naming.
This article is from the "Travel Life" blog, please be sure to keep this source http://felixgzf.blog.51cto.com/4108324/1794541
VMware Workstation 10 Create a shared disk group