Monday, December 27, 2010

How to Create VMFS Volume from Vmware ESX Console

How to Create VMFS Volume from Vmware ESX Console

Using FDISK to Create Partition
Generally we create one VMFS partition per disk/LUN
Logon to the Service Console as root type:
fdisk /vmfs/device/disks/vmhba40:0:0:0
Type N, to create a New Partition.
Type P, for Primary Partition
Choose 1 for the Partition Number.
Accept the defaults for First Cylinder and Last Cylinder
Type P, to print out the partition table (make a mental note of the partition number here)
Type T, to change the File System Type
Type the Hex Code of fb: (the code for a VMFS partition)
Type W, to write your partition table changes to the hard drive – it will give you this status information:
Format & Label the VMFS Partition
Logon to the Service Console as root
To format the new partition with the VMFS file system type:
vmkfstools -C vmfs2 vmhbaA:T:L:VExample:
In my case the hard disk partition is located on the Adapter 40, TARGET 0, LUN 0 on Volume/Partition 1.
vmkfstools -C vmfs3 -S iscsi-lun0 /vmfs/devices/disks/vmhba40:0:0:1

No comments:

Post a Comment