• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Yellow Bricks

by Duncan Epping

  • Home
  • Unexplored Territory Podcast
  • HA Deepdive
  • ESXTOP
  • Stickers/Shirts
  • Privacy Policy
  • About
  • Show Search
Hide Search

Defraging a VMDK

Duncan Epping · Nov 1, 2008 ·

Team Fusion wrote a great post on “defragging” vm’s and why you shouldn’t do it. Or at least be very careful about it. Make sure to read it!

Before we begin, it’s important to note that defragmentation isn’t a necessary task – your virtual machine will still work just fine even if you never defrag, and the effects of fragmentation are usually not noticeable. Personally, I’ve never feel the need to defrag. However, if for some reason you do feel the need to defrag, here’s how to do it. Note that snapshots get in the way of proper defragmenting.

Related

Server ESX, esxi, Howto, snapshots, Storage, vmdk

Reader Interactions

Comments

  1. Forbes says

    2 November, 2008 at 19:25

    This article relates to sparse disks in Fusion. The main reason they argue not to defrag them, is that it would grow the disk. Obviously this doesn’t apply to most ESX cases. I wonder if the same advice would apply to monolithic disks as well? Anyone know?

  2. Duncan says

    2 November, 2008 at 20:42

    Well I do think it applies for ESX, especially when you’ve got Snapshots. And what about the upcoming new version with stuff like linked clones!

  3. Kent says

    3 November, 2008 at 23:08

    We still believe that we should defrag all our monolithic clients. The problem the Fusion team relates to is reorganizing and expanding a COW disk. Obviously this is not a good situation as it just increases the disk size to the maximum amount and then starts over. A monolithic file will not have the same problem of expanding disk size. That may change in the future as you implement those linked clones, but I have to believe that there will be penalties for that scenario.

    Otherwise, we’d all run our disks as sparse today.

Primary Sidebar

About the Author

Duncan Epping is a Chief Technologist and Distinguished Engineering Architect at Broadcom. Besides writing on Yellow-Bricks, Duncan is the co-author of the vSAN Deep Dive and the vSphere Clustering Deep Dive book series. Duncan is also the host of the Unexplored Territory Podcast.

Follow Us

  • X
  • Spotify
  • RSS Feed
  • LinkedIn

Recommended Book(s)

Advertisements




Copyright Yellow-Bricks.com © 2025 · Log in