This article provides information on how to expand a local datastore which also happens to be the boot location of the ESXi host and other shared datastore. This is achieved by growing an existing VMFS Datastore in a Primary partition to fill the adjacent available space on the local boot device or the SAN scsi device.
Note: Datastore extents within Primary partitions on a Local or Boot storage device cannot be grown into adjacent space using the GUI and would need to be performed over the command line only. Prior to expanding the local datastore, ensure to verify and validate the following:
- This article assumes that the underlying storage volume has already had its capacity increased from the hardware perspective, possibly by adding additional disk to a RAID set. For more information, engage your hardware vendor.
- You cannot expand a datastore that is detected as a snapshot. For more information, see vSphere handling of LUNs detected as snapshot LUNs (1011387).
- A Datastore's partitions can only be grown into contiguous adjacent space on the disk. Ensure that the partitions in question are at the end of the disk.
Warning: Be very careful to not overlap the any Primary and Logical partitions. This could result in data loss.
Symptoms:
- Expanding the local datastore or shared datastore on the ESXi host fails.
- You receive this error message similar to:
Failed to expand VMFS datastore datastore1 - Cannot change the host configuration.