Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Virtual Server

Vista - Defrag fails

Reply
 
Old 09-16-2008   #1 (permalink)
PM


 
 

Defrag fails

I've got a dynamic VHD, current size approx 48GB, max size 64GB. There's
around 25GB of space freed up on the virtual machine. I'd like to shrink the
VHD file down.

With all my other VHDs I run the Dave Whitney defrag program, then
precompact, then inspect/compact the VHD. Works a treat.

With this VHD the defrag gets to around 40% of the first phase (freeing disk
clusters) before grinding to a halt. Worse, on a restart I get constant disk
write errors. Basically the VHD becomes unusable. The VHD file size does not
grow to the max allowed so I can't see why the defrag halts.

Anyone?



My System SpecsSystem Spec
Old 09-16-2008   #2 (permalink)
Robert Comer


 
 

Re: Defrag fails

Have you ran a chkdsk on it before the defrag, it may already be
corrupt -- or you really might be having the real disk go bad.

--
Bob Comer



On Tue, 16 Sep 2008 11:00:05 +0100, "PM" <pm@xxxxxx_.com.invalid> wrote:
Quote:

>I've got a dynamic VHD, current size approx 48GB, max size 64GB. There's
>around 25GB of space freed up on the virtual machine. I'd like to shrink the
>VHD file down.
>
>With all my other VHDs I run the Dave Whitney defrag program, then
>precompact, then inspect/compact the VHD. Works a treat.
>
>With this VHD the defrag gets to around 40% of the first phase (freeing disk
>clusters) before grinding to a halt. Worse, on a restart I get constant disk
>write errors. Basically the VHD becomes unusable. The VHD file size does not
>grow to the max allowed so I can't see why the defrag halts.
>
>Anyone?
>
My System SpecsSystem Spec
Old 09-16-2008   #3 (permalink)
PM


 
 

Re: Defrag fails

Robert Comer wrote:
Quote:

> Have you ran a chkdsk on it before the defrag, it may already be
> corrupt -- or you really might be having the real disk go bad.
I've run a Windows defrag on it, which I believe does a chkdsk first, and at
any rate must read pretty much all of the (used area of the) disk anyway.

In between my two defrag attempts, the thing worked perfectly for a couple
of months.


My System SpecsSystem Spec
Old 09-16-2008   #4 (permalink)
Robert Comer


 
 

Re: Defrag fails

>I've run a Windows defrag on it, which I believe does a chkdsk first, and at
Quote:

>any rate must read pretty much all of the (used area of the) disk anyway.
The check that Windows defrag does isn't as thorough as a real chkdsk,
but yes, it should read most of the disk if not all. I'd still do a
chkdsk to see if that's the problem. There may be a bug in the defrag
program I suppose, I don't know as I don't use that one.

--
Bob Comer





On Tue, 16 Sep 2008 12:46:25 +0100, "PM" <pm@xxxxxx_.com.invalid> wrote:
Quote:

>Robert Comer wrote:
Quote:

>> Have you ran a chkdsk on it before the defrag, it may already be
>> corrupt -- or you really might be having the real disk go bad.
>
>I've run a Windows defrag on it, which I believe does a chkdsk first, and at
>any rate must read pretty much all of the (used area of the) disk anyway.
>
>In between my two defrag attempts, the thing worked perfectly for a couple
>of months.
>
My System SpecsSystem Spec
Old 09-16-2008   #5 (permalink)
PM


 
 

Re: Defrag fails

Robert Comer wrote:
Quote:
Quote:

>> I've run a Windows defrag on it, which I believe does a chkdsk
>> first, and at any rate must read pretty much all of the (used area
>> of the) disk anyway.
>
> The check that Windows defrag does isn't as thorough as a real chkdsk,
> but yes, it should read most of the disk if not all. I'd still do a
> chkdsk to see if that's the problem. There may be a bug in the defrag
> program I suppose, I don't know as I don't use that one.

I'll run a chkdsk tonight when the machine is less heavily used.

What defragger do you use? I'm led to believe that the Win defrag is no good
as it doesn't pile files up at the beginning of the disk.


My System SpecsSystem Spec
Old 09-16-2008   #6 (permalink)
Robert Comer


 
 

Re: Defrag fails

>What defragger do you use? I'm led to believe that the Win defrag is no good
Quote:

>as it doesn't pile files up at the beginning of the disk.
I rarely use a defragger, but when I'm compacting a VM disk, I just
use the windows built in one. It doesn't defrag like the old style,
but it does do a decent enough job to consolidate unused space into
chunks that can be compacted out. (The free space can be anywhere for
it to be compacted out)

For real machines, I usually try to have enough space that defragging
is unnecessary.

Maybe someone else here has a better recommendation for a defragger.

--
Bob Comer


On Tue, 16 Sep 2008 14:04:14 +0100, "PM" <pm@xxxxxx_.com.invalid> wrote:
Quote:

>Robert Comer wrote:
Quote:
Quote:

>>> I've run a Windows defrag on it, which I believe does a chkdsk
>>> first, and at any rate must read pretty much all of the (used area
>>> of the) disk anyway.
>>
>> The check that Windows defrag does isn't as thorough as a real chkdsk,
>> but yes, it should read most of the disk if not all. I'd still do a
>> chkdsk to see if that's the problem. There may be a bug in the defrag
>> program I suppose, I don't know as I don't use that one.
>
>
>I'll run a chkdsk tonight when the machine is less heavily used.
>
>What defragger do you use? I'm led to believe that the Win defrag is no good
>as it doesn't pile files up at the beginning of the disk.
>
My System SpecsSystem Spec
Old 09-16-2008   #7 (permalink)
PM


 
 

Re: Defrag fails

Robert Comer wrote:
Quote:
Quote:

>> What defragger do you use? I'm led to believe that the Win defrag is
>> no good as it doesn't pile files up at the beginning of the disk.
>
> I rarely use a defragger, but when I'm compacting a VM disk, I just
> use the windows built in one. It doesn't defrag like the old style,
> but it does do a decent enough job to consolidate unused space into
> chunks that can be compacted out. (The free space can be anywhere for
> it to be compacted out)
>
> For real machines, I usually try to have enough space that defragging
> is unnecessary.
>
> Maybe someone else here has a better recommendation for a defragger.
>

Perhaps I'll give the Win defragger a go then.

Unfortunately I've got around 46GB free on the disk, the VHD Compact won't
touch it yet even though a) the compacted file will only be around 25GB and
b) the volume is compressed. Shame it can't be forced to compact.


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Defrag increases "used space" as reported by command-line defrag - Vista performance & maintenance
Windows Explorer fails and fails and fails... Vista General
defrag comand vs defrag windows Vista General
Defrag - Can You Copy XP's Defrag Files Across Vista performance & maintenance
O&O Defrag versus Microsoft Defrag in Vista Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46