I noticed the capacity allocated for the second ESXi host is not fully available. Even if I’ve created a separate HDD (Hard disk 2 = 100 GB) the capacity shows 59.25 GB.
![](https://bogdanburuiana.com/wp-content/uploads/2020/06/Screenshot-2020-06-13-at-14.01.01-1024x593.png)
![](https://bogdanburuiana.com/wp-content/uploads/2020/06/Screenshot-2020-06-13-at-14.02.16-1024x171.png)
I tried to expend the VMFS datastore – Go to New Datastore (1), choose Expand an existing VMFS datastore extent (2) and then Next (3).
![](https://bogdanburuiana.com/wp-content/uploads/2020/06/Screenshot-2020-06-13-at-14.02.37-1024x547.png)
Select datastore (DS) for which you want to increase capacity.
![](https://bogdanburuiana.com/wp-content/uploads/2020/06/Screenshot-2020-06-13-at-14.03.01-1024x650.png)
Select device – here I can see 100 GB capacity with 40.58 GB free.
![](https://bogdanburuiana.com/wp-content/uploads/2020/06/Screenshot-2020-06-13-at-14.03.24-1024x645.png)
Select partition to be added but I got Failed to extend an existing VMFS datastore – “Cannot change the host configuration” error.
![](https://bogdanburuiana.com/wp-content/uploads/2020/06/Screenshot-2020-06-13-at-14.04.09-1024x651.png)
![](https://bogdanburuiana.com/wp-content/uploads/2020/06/Screenshot-2020-06-13-at-14.05.13-1024x459.png)
First step to resolve this issue was to enable SSH client for this ESXi host.
![](https://bogdanburuiana.com/wp-content/uploads/2020/06/Screenshot-2020-06-13-at-14.05.38-1024x318.png)
Start a SSH session to the ESXi server. To find the disk id I’ve used the command below (show connected disks):
ls -lha /vmfs/devices/disks/
![](https://bogdanburuiana.com/wp-content/uploads/2020/06/Screenshot-2020-06-13-at-14.06.41-1024x447.png)
Check the error on disk by running
partedUtil getptbl /vmfs/devices/disks/<disk ID>
It seems the GPT is located beyond the end of the disk.
Reset the partition table to msdos type:
partedUtil setptbl /vmfs/devices/disks/<diskID> msdos
![](http://bogdanburuiana.com/wp-content/uploads/2020/06/Screenshot-2020-06-13-at-14.07.31-1024x481.png)
I tried again to expend the VMFS datastore, following the steps described above, and this time there was no error and I was able to see full capacity ( 100 GB).
![](https://bogdanburuiana.com/wp-content/uploads/2020/06/Screenshot-2020-06-13-at-14.08.17-1024x129.png)