I extended a disk on a DB server (so we could temporarily restore a database) and I would like to shrink the volume back down now that the data has been deleted.
I deleted the data and shrank the disk within the OS which freed the space on the windows volume, but the space is not shown as released for the volume in the SAN management GUI. If you try to modify the volume size, it warns that the "new volume size is less than current use".
Is it possible to release the space on the SAN volume or am I stuck with it at this size?
Environment
The DB server is Windows server 2008 running on VMWare ESX 4.0
The disk to shrink is a mapped raw LUN, the volume is on a Equallogic PS6000 (firmware V5.0.7)
Go to Group Manager command line interface (CLI) then:
The sizes are assumed to be in megabytes, so unless you specify the specific suffix it will default to megabytes.
Variables and Parameters can be found here.
While the shrink command works to shrink the volume, no data will be available on the volume after the shrink. Windows sees the volume as RAW, unformatted. Access the snapshots, specifically the snapshot that was created when the shrink command was issued, to copy data to the newly shrunk and formatted volume. As with any operation where data is involved: Ensure you have a backup before attempting this.