| Previous | Next |
| VDS_E_VOLUME_SHRINK_FVE | VDS_E_INVALID_SHRINK_SIZE |
VDS_E_SHRINK_OVER_DATA
IVdsLun::Shrink removes bytes from the end of a LUN. This HRESULT is the data-safety guard for a requested reduction that would overlap volumes containing user data. It is not a report of free space inside one file system; the LUN can surface a disk whose partition or volume layout extends into the tail region that the provider would remove.
Why this state matters
The operation must therefore be coordinated from the host-visible layout outward. Shrinking the storage object underneath an unchanged disk/volume layout can truncate data even when a filesystem reports free clusters elsewhere. The new LUN boundary must lie beyond every required disk extent and partition structure.
Diagnostic focus
- Map the LUN to the host disk and record the current disk, partition, and volume extents before calculating a new LUN size.
- Reduce or move host-side data/volume extents using supported filesystem and volume operations before shrinking the backing LUN.
- Recheck the final tail of the disk rather than using total free-space percentage as the safety test.
- After a successful LUN shrink, use the documented disk property update path so Windows sees the new device size.
Technical references
IVdsLun::Shrink · IVdsLun · MS-VDS error codes · VDS interfaces and structures · Windows and GPT FAQ
Looking for a different code? Search another status or error code.