I want to create an VMFS partition on a disk using GPT. I know using esxi cli we can create it easily using partedUtil with command
partedUtil setptbl /dev/disks/t10.ATA_____SAMSUNG_MZ7LM480HMHQ2D00005 gpt "3 1547328 937703040 AA31E02A400F11DB9590000C2911D1B8 0"
but I need to create it using a rescue disk. I tried fdisk but VMFS partition type (AA31E02A400F11DB9590000C2911D1B8) is unavailable. Which tool can I use in a standard linux distribution to create VMFS partition?
Thank you
Best Answer
There's nothing special about it being a VMFS partition: you would create it the same as any other partition, but with the VMFS GUID. Note that you must format the VMFS volume from within ESXi (or using a VMWare tool). This can be destructive if you don't know what you're doing: you should read the manual first. Make sure you back up your data before manipulating or formatting partitions.
For example, using
gdisk
:Note that
gdisk
uses filesystem codefb00
to refer to the VMWare VMFS GUID, but you can also type the full GUID if you wish. Make sure to change the partition location if your disk already has data on it.You can verify that the partition has the correct GUID using the same family of utilities: