On Wed, 20 Aug 2008 13:48:22 -0400, "ThePro"
<mcthepro@xxxxxx> wrote:
Quote:
>"Steve Jain" <noreply.-@-.essjae.com> wrote: Quote:
>> On Wed, 20 Aug 2008 10:05:07 -0400, "ThePro"
>> <mcthepro@xxxxxx> wrote:
>> Quote:
>>>Hi,
>>>
>>>I had a problem with some database running in a W2K3 virtual machine under
>>>W2K8 Hyper-V. The database kept growing until it was 15 GB when it should
>>>have been around 1 GB.
>>>
>>>I had to expand the dynamic VHD to 18 GB to store the database. Now the
>>>database bug is solved and it is back to 500 MB.
>>>
>>>At the moment in the VM on Disk 0 (Dynamic) I have 3 GB "Unallocated" plus
>>>around 9 GB free space on C: (NTFS). How can I reclaim this space ? The
>>>"Compact" option of Hyper-V "Edit Disk" runs for 3-4 minutes but does
>>>nothing.
>>>
>>>Thanks for any suggestions.
>>>
>>>ThePro
>>
>> Did you defrag the VHD in the VM first?
>>
>> --
>> Cheers,
>> Steve Jain, Virtual Machine MVP
>> http://vpc.essjae.com/
>> I do not work for Microsoft. >
>Defraged, re-run "Compact" and nothing changed. BTW fragmentation does not
>explain why it does not reclaim the unallocated (not partitioned) space.
>
>ThePro Sure, if there is a file at the end of the VHD, and the middle is
empty, the VHD won't compact. Compacting doesn't compact the space
between files, it will compact from the last file to the end of the
VHD. That's the way it's been for VPC and Virtual Server, so I assume
that it wouldn't be any different for Hyper-V.
--
Cheers,
Steve Jain, Virtual Machine MVP
http://vpc.essjae.com/
I do not work for Microsoft.