Manually Create VMWare vSphere ESXi Datastore Partition
#VMware #ESXi #Datastore
Full steps can be found at https://i12bretro.github.io/tutorials/0638.html
01. Log into the ESXi web UI
02. Enable the SSH service if it is not already enabled by selecting Actions ≫ Services ≫ Enable Secure Shell (SSH)
03. Connect to the ESXi host via SSH
04. Run the following commands
# list connected disks
ls /dev/disks/
# using one of the partition ids from the above output
# list the partition table
partedUtil getptbl /dev/disks/≪%partition id%≫
# add the new partition to the partition table
partedUtil add /dev/disks/≪%partition id%≫ gpt "≪%partition number%≫ ≪%starting sector%≫ ≪%ending sector%≫ AA31E02A400F11DB9590000C2911D1B8 0"
# create vmfs volume
vmkfstools -C vmfs6 -S ≪%custom label%≫ /dev/disks/≪%partition id%≫:≪%partition number%≫
05. Back in the ESXi web UI, select Storage from the left navigation menu
06. The new Datastore should be listed and available for use
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro