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 from the guest OS: does it make sense?

Reply
 
Old 02-12-2009   #1 (permalink)
karamatic


 
 

Defrag from the guest OS: does it make sense?

Hello,
I was wondering if - since defragging is a physical operation which
re-allocates clusters in order to gain performance - running a defrag
from a "virtual" OS makes sense or not, since actually everthing in
the disk is, in the end, a single vhd file.
Consider I have a few VMs (1 .vhd each ) running under Virtual Server,
all hosted on 1 host (1 SAN disk each VM).
I guess defragging the host's disk makes more sense...
Am I missing something?
thanks!

k

My System SpecsSystem Spec
Old 02-12-2009   #2 (permalink)
Geoff N. Hiten


 
 

Re: Defrag from the guest OS: does it make sense?

Actually the newest versions of DiskKeeper are VM aware and can defragment
internally and externally. I am not aware of any other VM aware (Hyper-V)
defragment utilities.

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP




"karamatic" <karamatic@xxxxxx> wrote in message
news:14b581be-5bc8-4d4c-afa4-47ecad4ea69f@xxxxxx
Quote:

> Hello,
> I was wondering if - since defragging is a physical operation which
> re-allocates clusters in order to gain performance - running a defrag
> from a "virtual" OS makes sense or not, since actually everthing in
> the disk is, in the end, a single vhd file.
> Consider I have a few VMs (1 .vhd each ) running under Virtual Server,
> all hosted on 1 host (1 SAN disk each VM).
> I guess defragging the host's disk makes more sense...
> Am I missing something?
> thanks!
>
> k
My System SpecsSystem Spec
Old 02-12-2009   #3 (permalink)
Bo Berglund


 
 

Re: Defrag from the guest OS: does it make sense?

On Thu, 12 Feb 2009 15:38:44 -0500, "Geoff N. Hiten"
<SQLCraftsman@xxxxxx> wrote:
Quote:

>Actually the newest versions of DiskKeeper are VM aware and can defragment
>internally and externally. I am not aware of any other VM aware (Hyper-V)
>defragment utilities.
VM or VHD aware? Makes a big difference.
If a program on the host can break into a virtual machine and do
low-level disk management then we have a no-isolation situation and a
good point for exploits to use.
I thought that a virtual computer was basically totally isolated from
the host with exception of any networking interface....

--

Bo Berglund (Sweden)
My System SpecsSystem Spec
Old 02-12-2009   #4 (permalink)
Geoff N. Hiten


 
 

Re: Defrag from the guest OS: does it make sense?

It is aware when it is running in a VM environment and adjusts its behavior.

You have to run it inside the VM and in the host to get full advantage. It
does not breack the VM boundary.

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP




"Bo Berglund" <boberglund@xxxxxx> wrote in message
news:lb59p4hk2e3uqb8m8mh4m7ukhabgemquto@xxxxxx
Quote:

> On Thu, 12 Feb 2009 15:38:44 -0500, "Geoff N. Hiten"
> <SQLCraftsman@xxxxxx> wrote:
>
Quote:

>>Actually the newest versions of DiskKeeper are VM aware and can defragment
>>internally and externally. I am not aware of any other VM aware (Hyper-V)
>>defragment utilities.
>
> VM or VHD aware? Makes a big difference.
> If a program on the host can break into a virtual machine and do
> low-level disk management then we have a no-isolation situation and a
> good point for exploits to use.
> I thought that a virtual computer was basically totally isolated from
> the host with exception of any networking interface....
>
> --
>
> Bo Berglund (Sweden)
My System SpecsSystem Spec
Old 02-13-2009   #5 (permalink)
karamatic


 
 

Re: Defrag from the guest OS: does it make sense?

On 13 Feb, 05:23, "Geoff N. Hiten" <SQLCrafts...@xxxxxx> wrote:
Quote:

> It is aware when it is running in a VM environment and adjusts its behavior.
>
> You have to run it inside the VM and in the host to get full advantage. *It
> does not breack the VM boundary.
>
> --
> Geoff N. Hiten
> Principal SQL Infrastructure Consultant
> Microsoft SQL Server MVP
>
> "Bo Berglund" <bobergl...@xxxxxx> wrote in message
>
> news:lb59p4hk2e3uqb8m8mh4m7ukhabgemquto@xxxxxx
>
>
>
Quote:

> > On Thu, 12 Feb 2009 15:38:44 -0500, "Geoff N. Hiten"
> > <SQLCrafts...@xxxxxx> wrote:
>
Quote:
Quote:

> >>Actually the newest versions of DiskKeeper are VM aware and can defragment
> >>internally and externally. *I am not aware of any other VM aware (Hyper-V)
> >>defragment utilities.
>
Quote:

> > VM or VHD aware? Makes a big difference.
> > If a program on the host can break into a virtual machine and do
> > low-level disk management then we have a no-isolation situation and a
> > good point for exploits to use.
> > I thought that a virtual computer was basically totally isolated from
> > the host with exception of any networking interface....
>
Quote:

> > --
>
Quote:

> > Bo Berglund (Sweden)- Nascondi testo citato
>
> - Mostra testo citato -
So, as far as I get it, defragging from inside a VM (sorry, I forgot
to specify my .vhd are alle fixed size ones) is good and improves
performance of the VM itself, BUT you have to use a defrag tool which
is aware of being defragging a VM and not a physical one.
Is this right?
thanks,

k
My System SpecsSystem Spec
Old 02-13-2009   #6 (permalink)
Geoff N. Hiten


 
 

Re: Defrag from the guest OS: does it make sense?

Correct.

Again, I recommend Diskeeper.

Full Disclosure, I have some free licenses from them for testing. No other
compensation is involved.

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP




"karamatic" <karamatic@xxxxxx> wrote in message
news:4712ffd8-088f-4374-8cba-a85ca6930ced@xxxxxx
On 13 Feb, 05:23, "Geoff N. Hiten" <SQLCrafts...@xxxxxx> wrote:
Quote:

> It is aware when it is running in a VM environment and adjusts its
> behavior.
>
> You have to run it inside the VM and in the host to get full advantage. It
> does not breack the VM boundary.
>
> --
> Geoff N. Hiten
> Principal SQL Infrastructure Consultant
> Microsoft SQL Server MVP
>
> "Bo Berglund" <bobergl...@xxxxxx> wrote in message
>
> news:lb59p4hk2e3uqb8m8mh4m7ukhabgemquto@xxxxxx
>
>
>
Quote:

> > On Thu, 12 Feb 2009 15:38:44 -0500, "Geoff N. Hiten"
> > <SQLCrafts...@xxxxxx> wrote:
>
Quote:
Quote:

> >>Actually the newest versions of DiskKeeper are VM aware and can
> >>defragment
> >>internally and externally. I am not aware of any other VM aware
> >>(Hyper-V)
> >>defragment utilities.
>
Quote:

> > VM or VHD aware? Makes a big difference.
> > If a program on the host can break into a virtual machine and do
> > low-level disk management then we have a no-isolation situation and a
> > good point for exploits to use.
> > I thought that a virtual computer was basically totally isolated from
> > the host with exception of any networking interface....
>
Quote:

> > --
>
Quote:

> > Bo Berglund (Sweden)- Nascondi testo citato
>
> - Mostra testo citato -
So, as far as I get it, defragging from inside a VM (sorry, I forgot
to specify my .vhd are alle fixed size ones) is good and improves
performance of the VM itself, BUT you have to use a defrag tool which
is aware of being defragging a VM and not a physical one.
Is this right?
thanks,

k

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Please explain HtmlTableRow - does not make sense .NET General
Locking up - finally narrowed it down. But does this make sense? General Discussion
does this make sense? Vista performance & maintenance
Consumers Can Make Sense of Their Dollars With Microsoft Money Essentials Vista News
Consumers Can Make Sense of Their Dollars With Microsoft Money Essentials Vista News


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