Problems with freeing disc space after deleted snapshots

Discussion in 'Windows Guest OS Discussion' started by RadekS1, Mar 11, 2015.

  1. RadekS1

    RadekS1 Bit Poster

    Messages:
    5
    Hi,
    I run virtual Win 7 Enterprise in PD 9.0.24251 on Mac OS Yosemite and MacBook Air A1466 with 24GB SSD, 4MB RAM, CPU Intel i5 1,8GHz.
    For each created snapshot there is separate hdd file named like "Windows 7-0.hdd.0.{xxxx}.hds" with the last time modified same as snapshot creation time. And there is also actual hdd file with actual version of virtual system. When I deleted all the snapshots, the hds files was not deleted and still occupy harddisc. Parallels refuse to reclaim any disc space and shows almost 80GB used for Windows7 - see picture. upload_2015-3-11_10-39-6.png

    But the actual hds file for actual Windows version has about 15GBs, however the old hds for snapshots stays on disc:
    upload_2015-3-11_10-40-47.png
    How the get rid of the old snapshot files and reclaim the 64 GBs back?
     
  2. Ram@Parallels

    Ram@Parallels Parallels Support

    Messages:
    776
    Hello RadekS1,
    To remove these snapshots we need to merg them, we strongly recommand you to take a back up before following below steps.
    1. In Mac OS X, go to Applications -> Utilities and launch Terminal.
    2. Paste the command below into Terminal as is (do not hit Enter yet):
    3. prl_disk_tool merge --hdd
    4. Find your virtual machine in Finder. Right click on the .pvm file of your virtual machine and choose Show Package Contents.
    5. Drag your WindowsXXX.hdd file into Terminal and drop it. In Terminal you will see something like this:
    6. prl_disk_tool merge --hdd /Users/Username/Documents/Parallels/Windows\ 7.pvm/Windows\ 7-0.hdd
    7. Please note there should be a space between --hdd and /Users/Username...
    8. Press Enter key to start merging Snapshots. Once this is done restart Virtual machine and check if the issue still persisting.
     
  3. RadekS1

    RadekS1 Bit Poster

    Messages:
    5
    excellent! This really helped, many thanks, Ram!
     
  4. Ram@Parallels

    Ram@Parallels Parallels Support

    Messages:
    776
    Hello RadekS1, I am glad your issue is resolved. Feel free to reach us any time, we are here to help you.
     
  5. DrD1

    DrD1 Bit Poster

    Messages:
    2
    I tried this and the Terminal process stops with the message "Operation process 16%"
     
  6. Raj@Parallels

    Raj@Parallels Guest

    Messages:
    467
    Refer this article for more information.
     
  7. DrD1

    DrD1 Bit Poster

    Messages:
    2
    Thanks Dineshraj, The article's instructions did not work, but I did find a solution for those who find the Terminal process did not work for them.
    First, I opened All My Files in Finder. I then right clicked my "Windows".pvm and chose Show Package Contents. I then manually deleted all the contents in the Snapshot folder. I restarted and verified that there were no snapshots in Manage Snapshots. Once I restarted I once again right clicked on my "Windows".pvm in Finder and chose Show package Contents. I then Enter(ed) Time Machine and chose a date prior to my last Snapshots, for me that was 1 month ago. I then selected the "Windows".hdd file on that date and clicked Restore. It took 3 hours to restore, but my Snapshots work perfectly again an I can also reclaim extra disk space which I was unable to do as well.
     
  8. Sasti@Parallels

    Sasti@Parallels Parallels Support

    Messages:
    278
    Hello @DrD1,
    Thank you for sharing the solution. Let us know if we can be of any help.
     
  9. Ed-Hawco

    Ed-Hawco Bit Poster

    Messages:
    22
    Hello. I'm reading the above and it sort of boggles my mind because I'm not sure what snapshots are and what .hdd files are vs. .hds files, etc.

    But here's my situation: I have one virtual machine with Windows 7, and when Parallels is not running I have a 57GB file on my drive called "windows7.pvm." That's my virtual machine (I know that much). Based on the solution above, I viewed the package contents, and the "Snapshots" folder is empty.

    Here's where it gets weird: there is also a file on my drive called "windows7-0.hdd{5fb<bunch of random numbers>}.hds." It's 60GB! Finder says it was last opened on December 19, 2015 (about six months ago), but I've been using Parallels almost daily since then.

    So what is that .hds file? Can I delete it to free up 60 GB?

    (Extra info: there's also a file called "windows7-0.hdd.drh" with the same dates as that .hds file, except it's only 20k. If I delete the .hds files should I also delete this one?)

    Thanks!
     
  10. Raj@Parallels

    Raj@Parallels Guest

    Messages:
    467
    .pvm is the package combined by .hdd, .hds, snapshot folder etc.,
    If you have one or more snapshots then you will have multiple .hds files to merge snapshot refer this steps.
     
  11. JeffreyO1

    JeffreyO1 Bit Poster

    Messages:
    1
    I tried this, but I get the following message from Terminal. Any help is appreciated. Note that I don't want any snapshots or backups. I want Windows to be as lean as possible. I am a light Windows user and have an SSD with limited free space.
    ~ jober$ prl_disk_tool merge --hdd /Users/jober/Parallels/Windows\ 7.pvm/Windows\ 7-0.hdd
    objc[4312]: Class DeallocHook is implemented in both /Applications/Parallels Desktop.app/Contents/Frameworks/ParallelsVirtualizationSDK.framework/Versions/5/libprl_sdk.5.dylib (0x106d166b0) and /Applications/Parallels Desktop.app/Contents/MacOS/prl_disk_tool (0x105533880). One of the two will be used. Which one is undefined.
     
  12. TonyC9

    TonyC9 Bit Poster

    Messages:
    2
    harddisk.hdd is at 200G and this procedure did not reduce it. No snapshots in folder.
     
  13. Hemnath@Parallels

    Hemnath@Parallels Parallels Support

    Messages:
    1,128
    Hello TonyC9. Please refer to my instructions given here.
     

Share This Page