VMware resize VMFS partition and datastore

Resize VMFS Partition ESXi

Also see https://kb.vmware.com/s/article/2002461

Get Datastore:

vmkfstools -P /vmfs/volumes/DATASTORE/

VMFS-6.82 (Raw Major Version: 24) file system spanning 1 partitions.
File system label (if any): DATASTORE
Mode: public
Capacity 1920118816768 (1831168 file blocks * 1048576), 813595361280 (775905 blocks) avail, max supported file size 70368744177664
Disk Block Size: 512/512/0
UUID: 5d6e2640-3368bb72-b4c4-8030e039ac8c
Partitions spanned (on "lvm"):
Is Native Snapshot Capable: NO

Get Disk:

partedUtil get "/vmfs/devices/disks/naa.600508b1001xxxxxxxxxxxxxxxxxxxxx"

583666 255 63 9376594600
1 2048 3750635520 0 0

First row is disk geometry
Second row, fields are: partition number, starting sector, ending sector, type, attribute

Get Sectors available:
partedUtil getUsableSectors "/vmfs/devices/disks/naa.600508b1001xxxxxxxxxxxxxxxxxxxxx"

34 9376594566

Resize the partition:

partedUtil resize "/vmfs/devices/disks/naa.600508b1001xxxxxxxxxxxxxxxxxxxxx" 1 2048 9376594566

partedUtil cmd disk partition start-sector end-sector

Fix the GPT:

partedUtil fixGpt "/vmfs/devices/disks/naa.600508b1001xxxxxxxxxxxxxxxxxxxxx"

FixGpt tries to fix any problems detected in GPT table.
Please ensure that you don't run this on any RDM (Raw Device Mapping) disk.
Are you sure you want to continue (Y/N): Y
583666 255 63 9376594600
1 2048 9376594566 AA31E02A400F11DB9590000C2911D1B8 vmfs 0




Hope this helps you.


This entry was posted in ESXi, partedUtil, partition, VMFS, vmkfstools, VMware. Bookmark the permalink.