Vmkfstools -x: Exclusive
If the underlying physical storage (SAN/NAS) drops connectivity during a write operation.
The vmkfstools -x command is a vital tool for any VMware administrator's toolkit. While the modern vSphere environment handles most storage tasks automatically, knowing how to manually check and repair a .vmdk file can save hours of downtime and prevent the need for a full restore from backup.
* **Growing a Virtual Disk:** ```bash vmkfstools -x grow /path/to/disk.vmdk newsize Replace `newsize` with the desired size (e.g., 50G for 50 gigabytes). vmkfstools -x
Always point the command at the small descriptor file (e.g., my-disk.vmdk ), not the large data file ( my-disk-flat.vmdk ).
Disk is consistent.
vmkfstools -x <virtual_disk_path>
To a disk that has inconsistencies:
* `-n`: Specify the new size of the virtual disk. * `-d`: Specify the datastore where the virtual disk resides.
If the check returns errors, the -x repair flag attempts to fix the metadata. This is particularly useful for "header" corruption, where the descriptive part of the virtual disk is damaged but the actual data blocks are intact. * **Growing a Virtual Disk:** ```bash vmkfstools -x