VHD and VHDX won't Compact

I also have the same problem.
If I compact a VHD or VHDX the compact runs for one second and ends, and the VM's remain uncompacted.
I am using REFS format on the drive, and the VM's are Windows 7 x86, if that makes any difference.
I have disabled System Restore in VM's, as that was a known problem with 2008 R2.
Can this be reported as a bug in Server 2012 RC.

I was having the same problem (minus using ReRF, I am just using NTFS.) I think I finally discovered the "real" issue for me, and the solution. My VHD and VHDX file (tried both ways) has two partitions in it - being a virtual machine for Windows 7 that we
use to create images, it wound up having the small 'system reserved' partition, plus the normal OS partition.
I think what was happening is that only the first partition was being looked at (the small one) and so the optimization, etc, was never happening on the large one. Which would explain the way it came back in just one second (less, really.)
The way I found to get around this was to use a new feature in 2012 - I right-clicked on the VHDX and chose "Mount." This attached *two* drives (can't seem to choose the drive letters.) Then in a "My Computer" window, used the ribbon option "Drive Tools
-> Manage" and chose the "Optimize" tool. Ran the optimization on both of the newly attached drives, closed that out, and then ejected one of the drives (both of them detached when I did.)
Finally, when I ran the "compact" in HyperV Manager, it took a bit longer and actually decreased the size of the VHDX file (in my case, from 31GB to 20GB.)
Hope this helps someone!

Similar Messages

  • Using DFS-R to replicate VHD and VHDX Files

    Hello -
    I am trying to find a solution to replicate VHD files and VHDX files between two data centers. I'm deploying the solution using Windows Server 2012.
    The VHD files are not virtual machines, they are simply storage areas (one for each user) that contain user documents and other files.
    The users will potentially log on to terminal servers in two locations and I'd like the VHD files to be accessible from both locations. The VHD files will mount during the logon sequence into a mount point within the users profile (or some other accessible
    area within the file system). This is a bit like user profile disks, but more user data disks.
    Has anyone attempted the replication of VHD files before using DFS-R, and are there any things I should be aware of?
    Will DFS-R support delta replication of VHDs? If a user has a 500 MB presentation, within the VHD file, and changes a single line of text, I'd prefer for only the changed blocks to synchronize.
    I don't believe DFS-R supports replicating open files, so I understand that the data won't be in sync until the VHD file us unmounted, but thats okay.
    Cheers, I'd welcome any feedback.
    Mitch

    Hello -
    I am trying to find a solution to replicate VHD files and VHDX files between two data centers. I'm deploying the solution using Windows Server 2012.
    The VHD files are not virtual machines, they are simply storage areas (one for each user) that contain user documents and other files.
    The users will potentially log on to terminal servers in two locations and I'd like the VHD files to be accessible from both locations. The VHD files will mount during the logon sequence into a mount point within the users profile (or some other accessible
    area within the file system). This is a bit like user profile disks, but more user data disks.
    Has anyone attempted the replication of VHD files before using DFS-R, and are there any things I should be aware of?
    Will DFS-R support delta replication of VHDs? If a user has a 500 MB presentation, within the VHD file, and changes a single line of text, I'd prefer for only the changed blocks to synchronize.
    I don't believe DFS-R supports replicating open files, so I understand that the data won't be in sync until the VHD file us unmounted, but thats okay.
    Cheers, I'd welcome any feedback.
    Mitch
    If you don't own a pretty fat pipe between the data centres (and it comes free of charge) that's not the best idea. For a reason: DFS-R does use compression only paired with per-file changed block tracker no deduplication see...
    http://technet.microsoft.com/en-us/library/cc771058.aspx
    ...so at the end of the day you'll replicate TONS of non-required information. What you really need to do: deploy a third-party replication solution layered up and working on top of the volume(s) where your VHD/VHDX files are stored. 
    Will DFS-R work to replicate VHD/VHDX? YES
    Is DFS-R optimal for VHD/VHDX replication scenario? NO
    Hope this helped :)
    StarWind iSCSI SAN & NAS

  • Vhd and Vhdx corrupted

    Hello, I have two servers Hyper-V 2012R2 connected to a new SAN (powervaul NX3200). I started to move my virtualmachines to
    the new SAN. I have now ten virtual machines on the SAN (about 40% of my virutelles machines) others arelocally on the servers. The purpose is to transfer everything to the SAN. But for some time I had problems with my virtualmachines on the SAN. I have two
    machines that have disappeared. The folder and the vhdx file are no longer there. I havethree machines corrupt. The vhdx files are 0 KB. I'm connected to the iSCSI SAN. On each of my two servers, I have a NICdedicated to the SAN. They are on a different network.
    My network internet 192.168.10.xx and the network of SAN192.168.5.xx Yesterday I have this message on my iSCSI drives: Offline Scan and Repair Needed. I made the repair. So, i need some help.

    Are the Hyper-V hosts stand alone hosts?  Are the Hyper-V hosts pointing to the same storage locations for the VMs?  If you answered 'yes' to both those questions, you have configured an environment that is guaranteed to corrupt any data on the
    volumes being pointed to.  The only way to share storage locations between multiple hosts is to configure some sort of sharing mechanism.  Within Windows, this is Failover Clustering.
    . : | : . : | : . tim

  • Can't read or write some files, internet is failing, youtube won't load, software I tried to install was in Slovenian, not dutch or english like in my systempreferences settings, pictures and files won't preview with spacebar, etc. Malware?

    Specs:
    iMac 10.8.5
    3,4 GHz Intel Core i7
    32 GB 1600 MHz DDR3
    Can't read or write some files, internet is failing, youtube won't load, security software I tried to install was in Slovenian, not dutch or english like in my systempreferences settings, pictures and files won't preview with spacebar and are randomly corrupted, when I entered something in the Youtube searchbar (when it was still working) it send me to a site with sexadds.
    I tried restart my iMac and when I was logged back in, my dock preferences were reset.
    Also tried to download some security software to check my Mac for malware, but when I did, I tried several, I got a notification that said something like 'dumpfiles (don't know if this is the right translation...) damaged'.
    I'm taking screenshots from all the weird notifications I get and even three quarters off the screenshots I took in the last three hours are already unreadable.
    It started this morning when I tried opening a Premiere Pro file on which I worked the night before.
    When I tried opening it, it said the file was damaged and could not be openend.
    I tried opening it with AE or importing the file in a new project but nothing helped.
    When I tried looking for autosaves, this is the really weird part, there were none.
    Even though there are autosaves from my other projects, this one was completely gone.
    It looked like the day before never happened on my computer.
    Also when I openend Premiere all the recent projects had been wiped.
    So at first I thought it was a Premiere Pro failure.
    But than, later on the day, I tried loading some RAW files from my compact flash card.
    This is where I would get an error (error -36) which said some data cannot be read or written.
    I tried importing the files with a view different technics, from dragging to importing via Lightroom and I succeeded with Image Browser.
    But when I tried moving the files to an other folder the same error occurred.
    While dealing with this issue I wanted to put on some soothing music on youtube.
    This is when the next weird thing occurred: youtube wasn't completely loading in Chrome. I refreshed a view times, checked the internet connection and still no difference.
    When I tried in Safari it did work but when I clicked enter on the searchbar in Youtube, a page with sexadds appeared (I didn't install AdBlock in Safari...).
    I read about this 'phishing' where you are redirected to a site were a possible malware installment can take place...
    I don't know if it's connected to any of the problems I've been having but I just never experienced this on a mac, I have been a Mac user for 10 years now.
    On top of it all, internet started working worse and worse and now it's not even working at all. I had to fill in the password over and over, normally it remembers.
    Just like my system preferences, all the preferences I had with Chrome where also reset.
    Also somewhere in between I got this notification: Mac OS X must restore library to run programs. Type your password to allow.
    To me this is all very weird and suspicious. I have clearly no idea what's going on. Could this be another sort of trojan horse or malware?
    Some background info which could be helpful for solving this mystery:
    two months ago the one year old Fusion Drive in my iMac just broke out of nowhere.
    I got it replaced by a qualified apple repair store.
    When I got my computer back, all the files where gone.
    I got on the internet without AdBlock installed yet.
    A game or whatever it was, can't clearly remember, got installed by accident.
    I deleted it immediately.
    Only two weeks later, I couldn't log in to my account. It didn't recognize my password and username. 
    So I brought my mac back to the store.
    Here the repair guy said it was a minor thing and he just needed to reconnect my account. He also mentioned he found a downloaded game name Sparta and it probably had something to do with the error.
    I asked him; could it be a virus? He replied no way.
    I don't know why I couldn't be a virus, just because it's a mac doesn't mean it cannot be done.
    So today I tried installing anti virus software (such as avast- was in a weird language looked like slovenian, clamxav - was in slovenian) but I couldn't install them.
    PLEASE help me! I don't know what to do anymore, I work fulltime and I need my computer, I have no time to bring it in for repair, are there other perhaps easier ways?
    Could this be the work of a virus or a malware? Or is it a disk permissions issue?

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • I've just updated my iPhone to the new iPhone OS and now it won't work and iTunes won't recognise that it's there.  I've uninstalled iTunes and reinstalled twice and it's not working.  Please help.

    I've just updated my iPhone to the new iPhone OS and now it won't work and iTunes won't recognise that it's there.  I've uninstalled iTunes and reinstalled twice and it's not working.  Please help.

    I have not had wifi since November when I upgraded to the newest IOS version.  I called the Apple help line and they told me some things to do and I tried them all and they worked for a few hours and then wifi shut off again.  I kept doing what they told me and it worked for a couple more days and then I could never turn it on again.  My blue tooth doesn't work either.  I had to actually increase my data usage with AT&T becuase of this.  When I did that in December I went to the Apple store and was told that it is a hardware issue and since my phone is out of warranty I would have to pay for a new phone because they could not fix the issue.  My upgrade isn't up until June 2014 so not only do I have to wait for the upgrade and I am not paying for a new phone but I have to pay $10 plus extra a month on my cell phone bill because I was going over on my Data!!!  I have been beyond upset about this and Apple is not doing anything about this nor did they offer up some way to resolve the issue because obviously it is not just some rare incident if several people are having this issue.  Who knows how many people out there have had this issue and have not said anything about it.  Now there is a newer update that I can't do because it requires wifi in order to download.
    June can not get here fast enough and I may not go back to Iphone after dealing with this for so long with no help from Apple.

  • My iPhone 5c won't send iMessages, snapchats, email from the Mail app, and it won't load YouTube. Other internet apps like Pandora and Instagram work fine though. Any suggestions on how I can fix this?

    A couple days ago I first noticed the problem when snapchats would appear on my lock screen but when I opened the app I kept getting the error message that the app was not able to refresh my story. Then the next day I was no longer able to send iMessages, they wouldn't go through and would only reach the second party when I sent them as text messages. Also, YouTube won't load and Mail won't send or receive email. I've already tried restarting my phone but there was no change. At first I thought my network connection was the problem but Instagram, Safari, Vine and Pandora all work perfectly. Any suggestions?

    Try this procedure to be sure of a proper restart.
    Close all open apps by double-tapping the home button, then swiping up and off the screen with the app window (not the smaller icon).
    Reset your device: hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)
    I would also try: Settings > General > Reset > Reset Network Settings

  • I have the adobe cloud 9.99/ month photography package i downloaded lightroom 5.4, it told me it was a trial version, and i'm now at the end of the trial and it won't let me download the full version and i don't have a serial number

    i have the adobe cloud 9.99/ month photography package i downloaded lightroom 5.4, it told me it was a trial version, and i'm now at the end of the trial and it won't let me download the full version and i don't have a serial number. also, when i click buy, i get an error message saying, "application not found."

    There are two different LR’s, one with a serial-number licensing and one with a CC-signin license.
    You should uninstall the serial-number LR you have installed, then
    Quit the CC Desktop application,
    Restart the CC Desktop application—this will rescan what you have installed and not see LR,
    LR will now be on the CC Desktiop apps list, so install that.

  • I have just bought an iPhone 5 and it won't sync to iTunes.  It says it needs  iTunes 10.7, which I have downloaded and installed.  I still get the error message and looking at "about iTunes" it says 10.6.3.  What do I do??

    I have just bought an iPhone 5 and it won't sync to iTunes.  It says it needs  iTunes 10.7, which I have downloaded and installed.  I still get the error message and looking at "about iTunes" it says 10.6.3.  What do I do??

    Perhaps check to see if you're accidentally running two different versions of iTunes. There's some information on troubleshooting that in the Opening iTunes section of the following document:
    Troubleshooting iTunes installation on Mac OS X

  • I bought a book on itunes, and can't open it. tried to send it to my iphone so i could read it there and it won't let me carry it over. I have updated Ibook on my iphone. What do I do? I do not want to buy the book again.

    I bought a book on itunes, and can't open it. tried to send it to my iphone so i could read it there and it won't let me carry it over. I have updated Ibook on my iphone. What do I do? I do not want to buy the book again.

    You won't be able to open it on your computer, ibooks can currently only be read in the iBooks app on an iPad, iPhone and iPod Touch. How were you trying to get it to your phone, syncing it by selecting it on the iPhone's Books tab when connected to your computer's iTunes, or by dragging-and-dropping it from the Books part of your iTunes library over and onto the iPhone 'device' ?  Another option is to try re-downloading it directly in the iBooks app on your iPhone via the Purchased tab in the ibookstore in it (re-downloading).

  • I purchased two songs on my iphone and it did sync with itunes. Then i put the two new songs in a music folder and it won't sync the songs to the folder on my iphone. same phone same computer never had this problem before.

    i purchased two songs on my iphone and it did sync with itunes. Then i put the two new songs in a music folder and it won't sync the songs to the folder on my iphone. same phone same computer never had this problem before.

    In iTunes, try signing out of your Apple ID & then back in: click on iTunes Store on the left sidebar of iTunes, click on your Apple ID on the top right, sign out, sign back in.  Then try to sync your purchased music to your phone again.

  • I'm also having a music issue.  When my phone is attached to the computer (mac running 10.6.8) it looks like my music is there but its gray and I can't play anything.  I've tried to delete it and it won't let me but it does not show up on my phone.

    I'm also having a music issue.  When my phone is attached to the computer (mac running 10.6.8) it looks like my music is there but its gray and I can't play anything.  I've tried to delete it and it won't let me but it does not show up on my phone.

    By the way, I have tried shutting of the display switching in the power settings.  That was basically the only real answer I found anywhere.  It didn't work.

  • How to sync icloud with itunes have two different id's on ipod and password won't work for one of them not even the old one

    Hi all,
    I recently updated my itunes/istore id.  Now my ipod touch won't recongized the id for the cloud.  It works fine for the rest of the ipod but my old id (email) is still on for the cloud how do I change so all is the same.  BTW the passwords old and new won't work with the old id... Should I put it back in?
    Any help would be great!

    Let me clarify if needed... the id I'm talking about is the email address...
    Thanks again

  • TS3988 I changed my Apple ID to my new email address successfully for the iTunes and App store but it won't work for iCloud and it won't recognize my password. I read that this can't be done. How am I supposed to get into iCloud?

    I changed my Apple ID to my new email address successfully for the iTunes and App store but it won't work for iCloud and it won't recognize my password. I read that this can't be done. How am I supposed to get into iCloud? I plan on getting rid of my old email address which is my old Apple ID so how is that going to work?

    Same question Wish someone had replied!
    I changed my Apple ID to my new email and now cannot find any way to access icloud. Unfortunately I had allowed icloud to hijack my airbook files, so of course I am afraid I will lose them tomorrow when I exchange my iphone for a new one and cannot keep an icloud account i cannot access. What a poor sync system! Really atypical for apple!

  • I have an audiobook that I purchased via iTunes and it won't show up on my iPad, but it's everywhere else, iPhone, iPod and computer?

    I purchased an audiobook via iTunes on my phone and it won't show up on my iPad? Why?

    Did you sync it to your ipad?

  • I just got the new ipod touch (5th generation) and it will show up on my computer but it will not show up on itunes and it won't connect. Please help!

    I just got the new ipod touch (5th generation) and it will show up on my computer but it will not show up on itunes and it won't connect. Please help!

    See:
    iOS: Device not recognized in iTunes for Windows
    You need iTunes version 10.7

Maybe you are looking for

  • Error Message no. MM214 while creating material master

    Hi folks!! While creating material master, when i fill the MRP controller field and press enter, I get the message... The MRP controller 391 does not exist for plant Message no. MM214 I have checked, the MRP controller is availble in Master Data for

  • Download a special kind of internal table (dynamic programming)

    Hi guys, with dynamic programming, i've created a complex internal table of this type : KNA1                          | KNB1                          |                          GS_CUSTOMERADDRESS            |                GS_CUSTOMERGENERALDETAIL  

  • Help (Chars and returns)

    I need some help in 2 questions, thanks for your posts! 1. Can I join 2 or more chars in a string? 2. Can I return a array, like this?     double[ ][ ] returnarray(){         return darray[ ][ ];     }When I try it gives-me this error: DynamicArray.j

  • Banner Artwork In AI saving as Smaller file than desired.

    I have my file set to 1200ppi and 300ppi raster. File is 33 x 80 inches for print. All artwork is vector, text is outlined....when I save it in AI it is only 8MB. Why? PS PDF saves as 46MB. Checked compression settings....Can someone please explain w

  • [svn] 3403: Fix for SDK-17097 - Missing summary description of a class in package classes table

    Revision: 3403 Author: [email protected] Date: 2008-09-29 12:36:37 -0700 (Mon, 29 Sep 2008) Log Message: Fix for SDK-17097 - Missing summary description of a class in package classes table QA: Yes Doc: Tests: checkintests Ticket Links: http://bugs.ad