Skip to main content

How to Create VMFS atastore on Vmware OS bootdrive

Normally a vmfs partition is already created by ESXi on the boot drive. You can verify by going logging into the ESX Web GUI and navigating to Storage --> Devices --> Boot disk (Figure 1).

Figure 1

image-1606487954617.png

Clicking on the drive will show the Partition diagram of the boot drive and the vmfs partition is usually partition 3 (Figure 2)

Figure 2

image-1606488071382.png

Login to the ESXi SSH shell and run the following command:

esxcli storage nmp device list

This will output all the drives in your system similar to the output below:

t10.ATA_____HGST_HUS724040ALA640__________________________PN1334PEGU9TMX
   Device Display Name: Local ATA Disk (t10.ATA_____HGST_HUS724040ALA640________                              __________________PN1334PEGU9TMX)
   Storage Array Type: VMW_SATP_LOCAL
   Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device                               configuration.
   Path Selection Policy: VMW_PSP_FIXED
   Path Selection Policy Device Config: {preferred=vmhba0:C0:T2:L0;current=vmhba                              0:C0:T2:L0}
   Path Selection Policy Device Custom Config:
   Working Paths: vmhba0:C0:T2:L0
   Is USB: false

t10.ATA_____HGST_HUS724040ALA640__________________________PN2331PAKJD02T
   Device Display Name: Local ATA Disk (t10.ATA_____HGST_HUS724040ALA640________                              __________________PN2331PAKJD02T)
   Storage Array Type: VMW_SATP_LOCAL
   Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device                               configuration.
   Path Selection Policy: VMW_PSP_FIXED
   Path Selection Policy Device Config: {preferred=vmhba0:C0:T1:L0;current=vmhba                              0:C0:T1:L0}
   Path Selection Policy Device Custom Config:
   Working Paths: vmhba0:C0:T1:L0
   Is USB: false

t10.ATA_____HGST_HUS726T4TALA6L1____________________V6JEEXLS____________
   Device Display Name: Local ATA Disk (t10.ATA_____HGST_HUS726T4TALA6L1________                              ____________V6JEEXLS____________)
   Storage Array Type: VMW_SATP_LOCAL
   Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device                               configuration.
   Path Selection Policy: VMW_PSP_FIXED
   Path Selection Policy Device Config: {preferred=vmhba0:C0:T3:L0;current=vmhba                              0:C0:T3:L0}
   Path Selection Policy Device Custom Config:
   Working Paths: vmhba0:C0:T3:L0
   Is USB: false

t10.ATA_____HGST_HUS724040ALA640__________________________PN1334PCGY2DLS
   Device Display Name: Local ATA Disk (t10.ATA_____HGST_HUS724040ALA640________                              __________________PN1334PCGY2DLS)
   Storage Array Type: VMW_SATP_LOCAL
   Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device                               configuration.
   Path Selection Policy: VMW_PSP_FIXED
   Path Selection Policy Device Config: {preferred=vmhba0:C0:T0:L0;current=vmhba                              0:C0:T0:L0}
   Path Selection Policy Device Custom Config:
   Working Paths: vmhba0:C0:T0:L0
   Is USB: false

t10.NVMe____WDC_CL_SN720_SDAQNTW2D512G2D2000__________E50F1F444A441B00
   Device Display Name: Local NVMe Disk (t10.NVMe____WDC_CL_SN720_SDAQNTW2D512G2                              D2000__________E50F1F444A441B00)
   Storage Array Type: VMW_SATP_LOCAL
   Storage Array Type Device Config: SATP VMW_SATP_LOCAL does not support device                               configuration.
   Path Selection Policy: VMW_PSP_FIXED
   Path Selection Policy Device Config: {preferred=vmhba1:C0:T0:L0;current=vmhba                              1:C0:T0:L0}
   Path Selection Policy Device Custom Config:
   Working Paths: vmhba1:C0:T0:L0
   Is USB: false

Create a vmkfsvmfs datastore named datastore 1 datastore-ssd on the partition 3 of the boot device using the commnd below (Don't use the values below):

vmkfstools --createfs vmfs6 -S datastore1datastore-ssd /vmfs/devices/disks/vml.0100000000453530465f314634345f344134345f314230300057444320434c:3