Error: Cannot change the host configuration.Error: Failed to expand VMFS datastore datastore1 - Cannot change the host configuration.
"/var/run/log/vmkernel.log" , you will see below events: # Example 1:LVM: 8445: Device naa.####################:1 detected to be a snapshot:LVM: 8452: queried disk ID: <type 1, len 17, lun 36, devType 0, scsi 0, h(id) 7683208289187576905>LVM: 8459: on-disk disk ID: <type 1, len 17, lun 17, devType 0, scsi 0, h(id) 7683208289187576905>
#Example 2:LVM: 11764: Device naa.####################:1 detected to be a snapshot:LVM: 11770: queried disk ID: <type 2, len 22, lun 0, devType 0, scsi 0, h(id) 15436777671286394200>LVM: 11777: on-disk disk ID: <type 2, len 22, lun 0, devType 0, scsi 0, h(id) 16841058529903986994>
Note:
If you are in the situation of Example 1, you can fix the problem without touching ESXi.
Unmount the "Snapshot" LUN from ESXi.
On the Storage Array, change the Host-LUN ID mapping to match the original (e.g., change it from 36 back to 17).
Rescan the ESXi host.
Follow the below steps to resolve the issue for both the examples -
$ esxcli storage filesystem unmount --volume-label=<label>, -l=<label> | --volume-uuid=<VMFS-UUID>, -u=<VMFS-UUID>$ esxcli storage vmfs snapshot resignature -l "datastore-name"Remount the datastore post-resignature.
Refer -How to List, mount and unmount a volume/VMFS Datastore.
Successfully expand the datastore to include the newly added LUN capacity.
Refer - https://knowledge.broadcom.com/external/article/314373/extending-or-increasing-a-datastore-thro.html