Thursday, November 4, 2010

Hyper-V Failed to Compact VHD

Hyper-V Failed to Compact VHD | MCB Systems office 619-523-0900
toll-free 888-4-MCBSYS
toll-free 888-462-2797MCB SystemsYour Small Business Technology Specialist HomeServicesServices OverviewProactive I.T. ServicesMCB Proactive WatchMCB Proactive CareI.T. Services ComparisonI.T. Services Case StudySoftware ServicesCustomization Case StudyProgramming Case StudyConsulting ApproachAboutContactBlogUser BlogTech Blog Home \ Tech Blog \Hyper-V Failed to Compact VHD Hyper-V Failed to Compact VHDMark BerryOctober 8, 2010

On Windows Server 2008 R2 running Hyper-V, I’m trying to compact a (dynamically expanding) VHD on an external hard drive (USB drive, NTFS format). The drive is 59GB and there is 103GB free on the drive. I keep getting the message, "The system failed to compact .VHD. Error code:  The requested operation could not be completed due to a file system limitation." Why can’t I compress the VHD?

In the Hyper-V-Image-Management-Service Admin log, we have Event ID 15054:

Log Name:  Microsoft-Windows-Hyper-V-Image-Management-Service-Admin
Source:  Microsoft-Windows-Hyper-V-Image-Management-Service
Event ID:  15054
Level:  Error
User:  SYSTEM
Description:  ‘The system failed to compact ‘F:\.VHD’. Error Code: 2424869

I thought maybe the physical drive was too fragmented, but a defrag ran quickly and made no difference.

This blog post provides the answer:  the VHD contains VSS shadow copies. (It’s a Server 2003 with Volume Shadow Copies enabled.)

Start up the virtual machine and log on to the guest. Run vssadmin list shadows to check for shadow copies. Run vssadmin delete shadows /all to delete the shadow copies. Then shut down the virtual machine guest and try compacting again.

Tags: hyper-v
This entry was postedon Friday, October 8th, 2010 at 4:28 pmand is filed under IT Administration.You can follow any responses to this entry through the RSS 2.0 feed.You can leave a response, or trackback from your own site. Leave a ReplyClick here to cancel reply.
Name (Required)
E-mail (will not be published) (Required)

Website

About

Welcome to the Tech Blog!

MCB Systems is a San Diego-based provider of information technology and software services.

We are based in Point Loma, close to downtown San Diego, Ocean Beach, Pacific Beach, and Mission Valley.

This Tech Blog is geared towards I.T. professionals, but end users may be interested to glimpse what goes on "behind the scenes" in keeping their computing environments stable and secure. A User Blog is also available.

Mark BerryBlog author Mark Berry owns MCB Systems.

Contact MCB Systems.

Recent PostsHow to Repair the SBSMonitoring Database Where to Find CHKDSK Results VSS Errors While Formatting Drive PowerEdge 1500SC: Bogus Memory and Linux Errors Activate Windows 7 Enterprise with a MAK Key – GUI Method Windows 7 UAC Blocks DRAC II Web Console Hyper-V Virtual Machine Failed to Start after Copying VHD Hyper-V Failed to Compact VHD How to Duplicate Administrator Permissions on Server 2008 R2 Reset Roaming Profile and Folder Redirection Permissions SubscribeSubscribe to the MCB Tech Blog with RSS