vpxd
logs with these steps:
Note: Previously If the lun is force mounted and detected as snapshot, The datastore cannot be expanded
How to check if the lun is force mounted:
++ login to putty session
++ esxcfg-info -a | less
++ search for naa.xxxxxxxxx id and look for "Is Force mounted" value
++ If it's set to True, see resolution https://knowledge.broadcom.com/external/article/345232/force-mounting-a-lun-on-an-esxi-host-fai.html
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
The VMware vCenter Server calls a specific function to get all the available extents for that datastore. After getting these extents, the vCenter Server displays these extents as available after meeting these following criteria filters:
If any of the above filters do not match, you will not be able to increase or extend the datastore
.
NOTE: Before starting, verify LUN presentation is the same on all hosts as this is a common, legitimate cause and should not be worked around.
To resolve this issue, follow either one of the two options:
If the underlying device does not reflect the underlying information, attempt another host level rescan so that the fields highlighted in the image above indicate the desired change. Only follow these steps if the increase in the capacity of the underlying device is detected:
Login to the ssh session of the ESXi host and validate the usableSectors using the below commands.
Run 'partedUtil getptbl /vmfs/devices/disks/naa.xxxxxxxxxxxxxxxxxxx'
diskSize (42949672960) AlternateLBA (21474836479) LastUsableLBA (21474836446) NewLastUsableLBA (42949672926)
gpt
2673493 255 63 42949672960
1 2048 21474836446 AA31E02A400F11DB9590000C2911D1B8 vmfs 0
Run 'partedUtil getUsableSectors /vmfs/devices/disks/naa.xxxxxxxxxxxxxxxxxxx' to get the details of the usable sectors of this device
diskSize (42949672960) AlternateLBA (21474836479) LastUsableLBA (21474836446) NewLastUsableLBA (42949672926)
34 42949672926
Click Finish. You should now be able to view the datastore expansion as completed.
esxcli storage core adapter rescan --all
vmkfstools -V
Important:
As this was done directly on the ESXi host, VMware recommends to do a cluster level storage rescan so that all of the ESXi host accessing the same datastore are sync with the expansion that was recently completed. If a cluster level rescan is not done from the vCenter Server, there is a good chance that the vCenter Server might not readily detect the changes which may lead to disparity in the current space/usage of the datastore. VMware recommends to always do a cluster level rescan on the vCenter Server level when the datastore is increased or expanded directly from the ESXi host.
Important: VMware does not recommend to turn off or disable this filter. After temporarily turning off or disabling this filter, increase or expand the datastore. Once this is completed, ensure this filter is turned back on or re-enabled. Disabling these filters may result in storage device corruption or performance degradation that might be caused by an unsupported use of storage devices. For more information, see or more information, see the Storage Filtering section in the vSphere Storage Guide.