[VHD] Expandable VHDX Disk Remains Expanded and Cannot Be Compacted

Hello,
I've noticed that one of my VHDX virtual disks storing Windows Server 2008 R2 and attached to a virtual machine remains expanded and consumes maximum space assigned on creation even when this virtual machine is turned off.
The diskpart confirms disk is expandable:
Notice, the VDisk 1 pointing to the win2008r2dc.vhdx file is expandable.
However, looking at the disk size in Windows Explorer shows that the disk remains expanded to its maximum capacity even though it's not in use (I've detached the disk before viewing the disk files in Windows Explorer):
The disk highlighted in blue allocates all 100 Gbytes! You may see here that there's another one 100 Gbyte VHD disk (not VHDX one) --- the win8rp.vhd storing Windows 8 Release Preview, which is also used in a virtual machine,--- is allocated to roughly
67 Gbytes although it's an expandable virtual hard disk drive with a limit of 100 Gbyte.
Why does the win2008r2dc.vhdx allocate all its size and does not collapse to its actual size? I've checked the drive with scandisk and it does not show any errors.
Thank you.
Well this is the world we live in And these are the hands we're given...

Hello,
I've noticed that one of my VHDX virtual disks storing Windows Server 2008 R2 and attached to a virtual machine remains expanded and consumes maximum space assigned on creation even when this virtual machine is turned off.
The diskpart confirms disk is expandable:
Notice, the VDisk 1 pointing to the win2008r2dc.vhdx file is expandable.
However, looking at the disk size in Windows Explorer shows that the disk remains expanded to its maximum capacity even though it's not in use (I've detached the disk before viewing the disk files in Windows Explorer):
The disk highlighted in blue allocates all 100 Gbytes! You may see here that there's another one 100 Gbyte VHD disk (not VHDX one) --- the win8rp.vhd storing Windows 8 Release Preview, which is also used in a virtual machine,--- is allocated to roughly
67 Gbytes although it's an expandable virtual hard disk drive with a limit of 100 Gbyte.
Why does the win2008r2dc.vhdx allocate all its size and does not collapse to its actual size? I've checked the drive with scandisk and it does not show any errors.
Thank you.
Well this is the world we live in And these are the hands we're given...
I found that large VHDX files (64TB allocated) will grow but I use smaller ones for VDI VMs.
if you need to run with lots of VHDX files, you are advised to get lots of storage, lots of it
low cost NAS boxes are one suggestion
Corsair Carbide 300R with window
Corsair TX850V2 70A@12V
Asus M5A99FX PRO R2.0 CFX/SLI
AMD Phenom II 965 C3 Black Edition @ 4.0 GHz
G.SKILL RipjawsX DDR3-2133 8 GB
EVGA GTX 6600 Ti FTW Signature 2(Gk104 Kepler)
Asus PA238QR IPS LED HDMI DP 1080p
ST2000DM001 & Windows 8.1 Enterprise x64
Microsoft Wireless Desktop 2000
Wacom Bamboo CHT470M
Place your rig specifics into your signature like I have, makes it 100x easier to understand!
Hardcore Games Legendary is the Only Way to Play!

Similar Messages

  • The attempt to burn a disc failed. The disk is locked and cannot be written

    I am having a problem burning CDs. iTunes begins to burn CD than cancels with the following message "The attempt to burn a disc failed. The disk is locked and cannot be written." After some research I found the following article "Burning disc in iTunes for Windows using a Sony CD-RW/DVD CRX830E model drive fails with 4280 error." I followed directions as noted, this worked for the burning of one CD, then failed message returned. I have tried different CDs and lowering record speed to no avail. Burner worked up until updating to latest iTunes. Here is the diagnostic report
    Microsoft Windows XP Professional Service Pack 2 (Build 2600)
    Sony Corporation PCG-GRT390ZP(UC)
    iTunes 7.0.2.16
    CD Driver 2.0.6.1
    CD Driver DLL 2.0.6.1
    LowerFilters: PXHELP20 (2.0.0.0), AFS2K (3.1.21.0),
    UpperFilters: GEARAspiWDM (2.0.6.1),
    Video Driver: NVIDIA GeForce FX Go5600 (Sony)\GeForce FX Go5600
    IDE\DiskIC25N060ATMR04-0______________________MO3OAD1A, Bus Type ATA, Bus Address [0,0]
    USBSTOR\DiskLexar__JumpDrive______1.00, Bus Type USB
    USBSTOR\DiskSony___MSC-U04________3.00, Bus Type USB
    IDE\CdRomSONYCD-RW__CRX830E_____________________JFK1___, Bus Type ATA, Bus Address [0,0]
    If you have multiple drives on the same IDE or SCSI bus, these drives may interfere with each other.
    Some computers need an update to the ATA or IDE bus driver, or Intel chipset. If iTunes has problems recognizing CDs or hanging or crashing while importing or burning CDs, check the support site for the manufacturer of your computer or motherboard.
    Current user is an administrator.
    E: SONY CD-RW CRX830E, Rev JFK1
    Media in drive is blank.
    Get drive speed succeeded.
    The drive CDR speeds are: 4.
    The drive CDRW speeds are: 4 0 0 0 0 0 0 0.
    The last failed audio CD burn had error code -46(0xffffffd2). It happened on drive E: SONY CD-RW CRX830E on CDRW media at speed 4X.
    Any help would be appreciated.
    Sony Vaio Windows XP

    hmmmm. i see that there's a chipset driver revision listed on the drivers and downloads page for your M520:
    Gateway M520 > Windows XP
    are your chipset drivers currently up to date?

  • Ipod write protection error - disk is locked and cannot be written to

    Has anyone experienced this 'disk is locked and cannot be written to' when trying to update their ipod mini? I've tried everything, including all 4 R's, but still get the same message. And now that i've restored my ipod to its factory settings, I can no longer see my ipod in iTunes 7. So frustrating! Any thoughts are appreciated...i've just about given up. thanks.
    iPod Mini   Windows XP Pro  

    Welcome to Apple Discussions!
    First off, make sure everything is updated...
    http://www.apple.com/ipod/download
    http://www.apple.com/itunes/download
    Now see if restoring your iPod helps...
    http://docs.info.apple.com/article.html?artnum=60983
    btabz

  • "The iPod '...' cannot be synced. The disk is locked and cannot be written to."

    Hello.
    I keep getting this "The iPod '...' cannot be synced. The disk is locked and cannot be written to." error when I try to sync my 11 GB of music from my very old, updated Windows XP Pro SP3 machine to an old iPod Touch 1G (iOS v3.1.3). It has a brand new (lat/new)est iTunes installation too. I tried rebooting the the machine, disconnecting USB cables, etc. None of them helped. I did not have this problem in the end of 2013. Is my iPod Touch 1G dying?
    Thank you in advance.

    lllaass wrote:
    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                     
    - Try on another computer 
    I did a reset since I had to restore v3.1.3 firmware and reconfigure from a Mac OS X 10.5.8 MBP before I ran into problems. Isn't that enough? Or do I have to do it again? Also, these were brand new installations and setups for iTunes and iPod Touch 1G. So, I am doing everything from scratch.
    I also found out that iTunes wants full (not read) access to my shared medias in my very old, updated Windows XP Pro SP3 machine. When I gave them full access, then I got farther, but it still failed later on (almost half way since 5 out of 11 GB according to math with disk spaces on both iTunes and iOS v3.1.3?) I didn't use Mac OS X 10.5.8's iTunes (only kept it for whited00r firmware part) for syncing since all my media is on the other machine.

  • 'This disk is locked and cannot be written to'

    After transferring music to new PC, when trying to update iPod Mini, keep getting error message:
    "Attempting to copy to the disk "SUSIE'S IPO" failed. The disk is locked and cannot be written to".
    What am I doing wrong?

    Welcome to Apple Discussions!
    First off, make sure everything is updated...
    http://www.apple.com/ipod/download
    http://www.apple.com/itunes/download
    Now see if restoring your iPod helps...
    http://docs.info.apple.com/article.html?artnum=60983
    btabz

  • "Disk Utility has lost its connection with the Disk Management Tool and cannot continue. Please quit and relaunch Disk Utility."  Trying to format my iomega external HD for use with Mac

    Hi. Trying to connect iomega ext. HD. i have to reformat for Mac. When i plug in & go to Disk Utility,the external shows up and i'm supposed to click "partition". When i do, a box comes up saying ""Disk Utility has lost its connection with the Disk Management Tool and cannot continue. Please quit and relaunch Disk Utility." I quit and relaunched, same results. After googling my question, i came up with this:
    "Disk Utility has lost its connection with the Disk Management Tool and cannot continue. Please quit and relaunch Disk Utility."
    (Quitting and reopening Disk Utility does not help.)
    The following also appears in Console log:
    *** malloc[419]: Deallocation of a pointer not malloced: 0x290a410; This could be a double free(), or free() called with the middle of an allocated block; Try setting environment variable MallocHelp to see tools to help debug : for architecture i386 object: ./Applications/iTunes.app/Contents/MacOS/iTunes malformed object (unknown flavor for flavor number 0 in LC_UNIXTHREAD command 27 can't byte swap it)
    Workaround
    Quit Disk Utility.
    From the Finder's Go menu, choose Go to Folder....
    Type the following, then click OK: /Library/Receipts
    Temporarily remove these iTunes receipts from /Library/Receipts (sort the folder alphabetically as a list):
    iTunes.pkg
    iTunes4.pkg
    You can put them on the desktop, for example. Do not remove iTunesX.pkg or iTunes Phone Driver.pkg.
    Open Disk Utility and repair disk permissions again.
    Quit Disk Utility.
    Put the removed iTunes receipts back in /Library/Receipts.
    Note: This issue does not affect Disk Utility's verify or repair disk features.
    All seemed good, for a moment, until, upon going back to Disk Utility after removing itunes4.pkg and putting on desktop (i did not have itunes.pkg to remove) the same thing was happening. When i highlite my iomega ext. on left of page, disk perrmissions is grayed and does not allow me to click on it. Same problem from the start. Can somebody please help me out here? That would soooo awesome. Thanx!

    i'm just scared i will do something wrong on my own and lose my data.
    You shouldn't be scared of that, because you should already have backups. If you don't have backups, then backing up is the first priority.
    Insert the Snow Leopard DVD and restart. When you hear the chime, hold down the C key and keep holding it until the Apple logo appears on the display. You should now see the language selection screen. Select your language, then choose Utilities > Disk Utility from the menu bar. In the Disk Utility window, select the external drive (not the internal). The drive may already have a data partition, in which case there will be another icon below the drive icon. Choose the drive icon, then select the Partition tab. Create a single partition with the default options (GUID partition table, Mac OS X Extended Journaled).
    When the partitioning is done, select the startup volume on your internal drive in the DU window. Select the Restore tab. Drag the icon of the startup volume to the "Source" field. Then drag the icon of the newly-created volume on the external drive to the "Destination" field. Make sure you have this right. Then click the Restore button, and the data on your startup volume will be copied to the external drive.

  • After saving a pdf as Excel workbook the numbers remain text and cannot be used in calculations. Is there a better way to convert into real digital numbers?

    After saving a pdf as Excel workbook the numbers remain text and cannot be used in calculations. Is there a better way to convert into real digital numbers?
    I have tried to convert the pdf to Word instead but same difficulty with numbers: look like numbers but not usable for calculations

    Excel has a 'text to numbers' function, I would use that.
    Convert text to numbers. Microsoft Excel.

  • I downloaded the mountain lion from the app store and it downloaded. when i installed the mountain lion it said that the hd disk is broken and cannot be repaired, and the other disk doesnt have enough space!

    I downloaded the mountain lion from the app store and it downloaded. When i installed the mountain lion it said that the hd disk is broken and cannot be repaired, and the other disk doesnt have enough space! HELP and i cannot return to my desktop with the old sofware so i cant use my computer normaly

    This error means that your hard drive is badly corrupt and cannot be repaired by Disk Utility. Since you say you don't have backups, this is very bad news. You may already have lost data irrevocably.
    First order of business needs to be backing up whatever you can, but this may be difficult to do if the machine won't start up any more. See step 1 of the following post:
    https://discussions.apple.com/message/21614450#21614450
    Once you have backed up your data, you can address the other issues.

  • My install of maverick failed as disk is damaged and cannot repaired. I tried to erase disk but got error that disk cannot be umounted. Please help! Thank you very much.

    My install of maverick failed as disk is damaged and cannot repaired. I tried to erase disk but got error disk cannot be unmounted. Please help. What can i do? Thank you very much.

    First have you got a backup of your data? If not try to get one now while you have some access to the drive. The drive is probably faulty and will need to be replaced, without the backup you risk losing the data.
    Have you a bootable external USB drive with Mavericks on it, if so boot from that and try and repair or erase the drive and reinstall Mavericks.
    If you don't have Mavericks on an external drive,  boot from you Leopard DVD ( I am presumimg your profile is correct) and run Disk Utility from there, you may be able to erase the drive and reload Leopard. You can then install Mavericks. Even if all that works you will most likely need a new drive in the near future.

  • Disks not avialable and cannot add new disks to existing pools

    I have a few disks that are RAW and I want to add them to existing pools.  However, only 1 disk shows up as a Primordial disk and the others do not.   I cannot add these drives to a new volume and when I try to add any drive to an existing
    pool, the add disk option is greyed out.  I have search everywhere to resolve this but no luck.
    What is interesting is one of the drives that shows available for a volume is the drive I have associated to backing up the OS on the server itself and is initialized, i.e. not RAW.

    Hi,
    Please try to run the following commands in PowerShell to obtain the information about disks:
    Get-physicaldisk
    Get-disk
    In additional, the physical disk added to a storage pool must be 4GB or larger. If the space is less 4GB, the disk will not appear in the storage pool window.
    For more information, please refer to the thread below:
    Storage Pool in WS2012
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/d230ef80-8791-4eaf-84b5-a41b8f7fef10/storage-pool-in-ws2012?forum=winserver8gen
    Best Regards,
    Mandy 
    If you have any feedback on our support, please click
    here .
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Why does my iphone say the disk is locked and cannot be written to?

    i am trying to sync my songs to my iphone but this stupid message keeps on popping up

    lllaass wrote:
    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                     
    - Try on another computer 
    I did a reset since I had to restore v3.1.3 firmware and reconfigure from a Mac OS X 10.5.8 MBP before I ran into problems. Isn't that enough? Or do I have to do it again? Also, these were brand new installations and setups for iTunes and iPod Touch 1G. So, I am doing everything from scratch.
    I also found out that iTunes wants full (not read) access to my shared medias in my very old, updated Windows XP Pro SP3 machine. When I gave them full access, then I got farther, but it still failed later on (almost half way since 5 out of 11 GB according to math with disk spaces on both iTunes and iOS v3.1.3?) I didn't use Mac OS X 10.5.8's iTunes (only kept it for whited00r firmware part) for syncing since all my media is on the other machine.

  • Disk is locked and cannot be written to???

    Just bought a brand new, second gen 8gb ipod nano.
    Newest iTunes and newest software on ipod.
    When i connect the ipod it comes up fine in iTunes, but if i try and alter settings in ipod summary and click apply, or copy music across i get the following error message:
    [img]http://i13.photobucket.com/albums/a297/batman_dave/ipoderror.jpg[/img]
    The hold button is off, i have tried resetting and restoring the ipod and it hasnt helped.
    Thanks for your help

    Welcome to Apple Discussions!
    First off, make sure everything is updated...
    http://www.apple.com/ipod/download
    http://www.apple.com/itunes/download
    Now see if restoring your iPod helps...
    http://docs.info.apple.com/article.html?artnum=60983
    btabz

  • Hard drive damaged and cannot be repaired

    I have had a few weird issues with my early 2011 macbook pro 13 inch, updated fully. All of this started after ML. Sometimes, when I power it up there will be a pause and then the signin screen will appear. If I sign in then, the apple logo and the spinning wheel beneath it will appear as usual, however, it will never login, it will just remain that way indefinitely. Also, sometimes when I shutdown, the grey wheel will appear for about 15 seconds and then the computer will shutdown. Therefore, I decided to do a reinstall of Mountain Lion. It took about 3.5 hours and finally it gave a warning message saying, "installation failed, the hard disk is damaged and cannot be repaired. Restart to try again." I restarted and the same thing accured at startup, same message.
    When I restarted in disk utility, the Machintosh HD was not available. When I used disk utility application, the verification said, "disk is damaged, click repair disk", but that option is greyed out. I reset PRAM and nothing changed. My verification is still returning errors and 'damaged disk" but not way to click 'repair'.
    Also, for most of the time I have had my laptop, moving slightly or lightly bumping the lower, righthand corner of the body makes a clicking noise, almost like sticking a stick into a moving fanblade, but not very loud. This does not occur now as much as it used to though.
    Is there anything I can do short of replacing my HDD, although I would be interested in upgrading to an SSD at some point.
    Thanks!
    Obbie

    FieldMarshallObbie wrote:
    finally it gave a warning message saying, "installation failed, the hard disk is damaged and cannot be repaired. Restart to try again."
    It's very unlikely you'll be able to fix that without erasing the drive.
    Do you have backups?  
    When I restarted in disk utility, the Machintosh HD was not available. When I used disk utility application, the verification said, "disk is damaged, click repair disk", but that option is greyed out.
    There's a very small chance you can start from the Recovery HD and repair the disk from there.  It's probably worth a try.  See the yellow box in #6 of Using Disk Utility.
    If that doesn't help, see the pink box there.  If you want to try DiskWarrior, you'll need to borrow a working Mac to download it and put it on a DVD or disk partition.
    Otherwise, your only choice is to erase and reformat it, then download a fresh version of OSX (although it sounds like it may be failing -- the clicking noise).  You do that from the Recovery HD, too; see the yellow box in #1 of Using Disk Utility.

  • Expand virtual disk on sun storage 6140

    I have configured sun storage 6140, but volume is %100.
    How could i expand virtual disk without data lose?
    How could i add any disk storage pool?
    thanks..
    regards..

    Hi Dan,
    Do you mean that you cannot mount the Journal virtual drives on the Storage Space? Please run the command “Get-VirtualDisk” to check the status of the virtual disk.
    You could run the command below to make your storage space read-only.
    Get-VirtualDisk –Friendlyname name_of_your_space | Get-Disk | Set-Disk –IsReadOnly $true
    For more detailed information, you could refer to the article below:
    Storage Spaces Frequently Asked Questions (FAQ)
    http://social.technet.microsoft.com/wiki/contents/articles/11382.storage-spaces-frequently-asked-questions-faq.aspx#What_happens_if_I_run_out_of_physical_capacity_on_a_thinly_provisioned_storage_space
    Best Regards,
    Mandy 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Expanding Encrypted Disks/Volumes

    I have a MAC Pro Retina. I have a 128GB SSD inside. I have a carved out a 4.7GB volume (SuperDisk) in this ssd drive (MACmac), and have an encrypted sparse image in/over this volume. This little encrypted volume is nearly full.
    I need to expand the 4.7GB volume (SuperDisk) to double it's size. I used Disk Utility to reduce the size of the boot volume by 5GB. So I have 115GB + free space and then the empty space I just created.
    How to do I use this free space to expand my 4.7GB volume and encrypted sparse image?

    I have a MAC Pro Retina. I have a 128GB SSD inside. I have a carved out a 4.7GB volume (SuperDisk) in this ssd drive (MACmac), and have an encrypted sparse image in/over this volume. This little encrypted volume is nearly full.
    I need to expand the 4.7GB volume (SuperDisk) to double it's size. I used Disk Utility to reduce the size of the boot volume by 5GB. So I have 115GB + free space and then the empty space I just created.
    How to do I use this free space to expand my 4.7GB volume and encrypted sparse image?

Maybe you are looking for

  • Visualization at External HD files / Storage capacity after Time Machine

    Hello, I'm new at this forum and I don't know if this is the right place to ask, but I hope it is ok. The question is a little bit complicated, so I will divide it in two points: 1) I've bought one external 1TB HD and I plugged it in my Macbook via U

  • Photoshop CC stability issues

    Hey Guys ...... just wondering if others are having any of the same issues I am encountering on CC and my Mac? Often when working my cursor disapears and I have to minimise CC, click on anything except Photoshop ..... maximaize back up and my cursor

  • Formatting an XML string that has a date

    Hi All - new to this forum! Not familiar with XML operations and seeking some advise. I have a field that contains XML text that has a date within that I want to extract and format appropriately for some reports. Getting to the date portion of the fi

  • How to send a document by mail

    Hi, I am currently creating a document that must be filled in by the user, and then send to a mailbox (for later treatment). I have thus created a form, with some fields and a button. This button must do the document validation then, if it is a valid

  • Converting an involved ABAP Report to BW

    I have been asked to convert a report currently produced by a lot of ABAP code into BW. I am having a hard time deciding just how to go about implementing this report. The report consists of summarized rows which are calculated with a different formu