VMware Cloud Community
aetius1980
Contributor
Contributor
Jump to solution

Defragging Virtual Hard Disks

Hi,

Is it still recommended to defrag virtual hard disks using vmdk files and vmware 5?

I'm having VSS backup issues with a 2008 R2 server and was wondering if defragging the hard disk would make any difference. My Exchange 2010 Server gives backup errors with VSS.

Thanks

0 Kudos
1 Solution

Accepted Solutions
Techstarts
Expert
Expert
Jump to solution

VMware and Storage Vendors recommend Don’t defrag VMs!, refer http://www.ntpro.nl/blog/uploads/Mythbusters_Dutch_VMUG.pdf

With Great Regards,

View solution in original post

0 Kudos
6 Replies
nielse
Expert
Expert
Jump to solution

Short answer: no.

More information on this blog post.

@nielsengelen - http://foonet.be - VCP4/5
0 Kudos
Techstarts
Expert
Expert
Jump to solution

VMware and Storage Vendors recommend Don’t defrag VMs!, refer http://www.ntpro.nl/blog/uploads/Mythbusters_Dutch_VMUG.pdf

With Great Regards,
0 Kudos
danpalacios
Hot Shot
Hot Shot
Jump to solution

What are the VSS errors?  Could it be associates with some other automated task or perhaps a latency issue with snapshots?  What backup utility are you using to pull from the VSS?

0 Kudos
Josh26
Virtuoso
Virtuoso
Jump to solution

VM aside, defrag on any hardware with RAID doesn't make sense.

Surely your VM environment utilises RAID.

0 Kudos
aetius1980
Contributor
Contributor
Jump to solution

Our SAN utilises RAID.

The VSS errors are failure querying VSS writer - which is an Exchange 2010 error when using Symantec backup exec.

To be honest I didn't think defrag was the answer, but thought the question was worth asking

0 Kudos
rickardnobel
Champion
Champion
Jump to solution

Josh26 wrote:

VM aside, defrag on any hardware with RAID doesn't make sense.

This is a very interesting topic I think. Could you expand some on this opinion?

In my mind it could make a lot of difference with a fragmented disk even on RAID - if using Windows default cluster size of 4 KB and you should read a, say 32 KB, file which is totally fragmented. This would make the Windows OS send 8 read-request at different places at the disk, which on the RAID system most likely will have to be completed on different disk spindles. This would make this single file read cause 8 IOs against several disks in the RAID group.

If the disk was defragmented and the 32 KB file was stored together a single disk IO could be sent from the Windows OS and there is a high chance that this would be allocated inside one "stripe size" on the RAID group, generating a single IO to a single disk.

This is just some thoughts - I do not know if there is any definitive "answer" to this.

My VMware blog: www.rickardnobel.se
0 Kudos