Link to home
Start Free TrialLog in
Avatar of Jack 50
Jack 50

asked on

VHDX file

Howdy,
I have a dynamically expanding virtual server. The VHDX file is 400gb but the actual space used on the machine is only 100gb.. i had cleaned up the server and removed 100's of gb worth of data. My question is how do i now get my VHDX file back down to a smaller size?

Srv 2016
Hyper V
SOLUTION
Avatar of Cliff Galiher
Cliff Galiher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If there is enough free space on the host then create a new Dynamic VHDX file, attach it to the VM, _move_ everything over to the new VHDX file, remove the old VHDX, and change the new VHDX partition's drive letter to the old one. The shares and permissions should all be the same.

Make sure to back things up before, during, and one time just prior to removing the old VHDX. Once complete, delete the old VHDX. Done.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jack 50
Jack 50

ASKER

Couldn't shrink, wouldn't let me
Determining if a VHDX is Eligible for Shrinking
Did you check this?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Split:
-- Tom Cieslik (https:#a42417126)
-- 8046586 (https:#a42417127)
-- Muhammad Burhan (https:#a42417318)
-- McKnife (https:#a42418535)
-- Cliff Galiher (https:#a42417123)


If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Pber
Experts-Exchange Cleanup Volunteer