question

JohnLenz-5880 avatar image
0 Votes"
JohnLenz-5880 asked DSPatrick commented

Did VHDX really shrink?

Server 2012R2 running Hyper-V
Hyper-V server 2012R2 (SQLserver2012)

OK, I followed the process to shrink the VHDX to free up space.

Here is VM disk Partition:

93415-longsql2012-volume-shrink.jpg

This is the Get-VHD that shows the before & after of the shrink command and the file explore winnow Did it shrink physically or not?

93385-longsql2012-get-vhd.jpg


windows-server-hyper-v
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
I would like to check if the issue has been fixed. If yes, please help accept answer. If you need any additional assistance, please feel free to feedback.
Best Regards,
Danny

0 Votes 0 ·
DSPatrick avatar image
0 Votes"
DSPatrick answered

Any progress or updates?

--please don't forget to Accept as answer if the reply is helpful--


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JohnLenz-5880 avatar image
0 Votes"
JohnLenz-5880 answered

I still have a question

I believe my command line should be

Optimize-VHD -Path c:....vhsx -Mode Full

I have read the doc for Full. It states it scans for zero blocks and unused blocks. Does that mean it will Shrink the vhdx to "FileSize" that is the "MinimumSize" as noted above?

I need to shrink the VM data space to free up space on my C drive.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JohnLenz-5880 avatar image
0 Votes"
JohnLenz-5880 answered DSPatrick commented

Success! first resize, then optimize

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Glad to hear of success!




0 Votes 0 ·