Solved

How to get rid of old snapshot files when there's no space in the datastore?

Posted on 2010-09-16
14
864 Views
Last Modified: 2012-05-10
At one time, I had a few snapshots created and not deleted, which started to take up space on the server.  I can not delete them now.  I stopped the vm, created a snapshot and used "Delete All" in the Snapshot Manager.  The .vmx now points the virtual disk to the xxx-000004.vmdk file (before that it pointed to xxx-000002.vmdk - something has happened a few weeks ago and some initial snapshots disappeared back then from the Snapshot Manager window).

Now, there's only 2 Gb (see screenshot) left in this datastore and I need to commit everything back to the main file without loosing information accumulated since June.  Couple more pieces of info:

I only have remote access to ESXi 4, so couldn't easily install anything on it myself.
I have a second datastore that I don't really use or need right now.
I have a .ova template exported three days ago.

What can I do to free up space and yet not loose changes to the flat file?
Veeam-screenshot.png
0
Comment
Question by:lolekbolek
  • 8
  • 6
14 Comments
 
LVL 28

Expert Comment

by:bgoering
ID: 33695776
Ah - new question to do without losing changes. How much space is free on the other datastore? Is there anything on it?
0
 

Author Comment

by:lolekbolek
ID: 33695950
Aloha!  The other datastore (datastore2) has 220 GB empty out of 228.  And I can totally delete this datastore2 or do anything else that would help remove junk on datastore1 while retaining its current info.
Veeam-datastore-screenshot-1.png
Veeam-datastore-screenshot-2.png
0
 
LVL 28

Expert Comment

by:bgoering
ID: 33696047
Well, if you can delete it and add it as an additional extent to datastore1 you would then have room to commit your changes and delete the snapshots.

Good Luck
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 28

Accepted Solution

by:
bgoering earned 500 total points
ID: 33696080
Could have worded that better.

1. Delete datastore2 (configuration, storage, hilight datastore2, select delete)
2. Add the space as an extent to datastore1 (configuration, hilight datastore1, properties, increase follow wizard)

0
 

Author Comment

by:lolekbolek
ID: 33696134
Thank you.  When I try to delete datastore2 I have an error saying it's in use (see screenshot).
deleting-datastore-in-Configurat.png
0
 
LVL 28

Expert Comment

by:bgoering
ID: 33697480
If there are any vms on there they should be unregistered and deleted from disk before you can delete the datastore. If you need to save them SCP them off first. Looks like 7 or 8 GB is in use on the datastore.
0
 

Author Comment

by:lolekbolek
ID: 33697512
So, since both vSphere Client and FastSCP show no files in the datastore2, can I right click the Ubuntu VM that has been using this datastore and select either "Remove from Inventory" or "Delete from Disk"?

And then delete datastore2?
datastore-screenshot-2.png
remove-or-delete.png
0
 
LVL 28

Expert Comment

by:bgoering
ID: 33697522
LOL, yeah - I just posted as muchj in the new thread you opened :)
0
 

Author Comment

by:lolekbolek
ID: 33697546
Thank you, bgoering!  Worked like a charm.  On a side note, I tried to choose both yours and bestway's suggestions as accepted solutions using "multiple solutions", but I am not sure whether it went through since it still shows "Accept solution" for both of you (but no "Accept multiple solution anymore").  I just want to make sure you get the points!
0
 
LVL 28

Expert Comment

by:bgoering
ID: 33697589
no problem, I was on another thread where someone was having trouble assigning points to multiple users and I think a moderator fixed it - at least they said I would get my points in 4 days, and that it might be an EE issue. Go ahead and close it, then object to your own closing, and in text box ask for moderator help and say how you wish the points to be split.

Did you get the extent added to datastore1 and the snapshots all committed yet?

Good Luck
0
 

Author Comment

by:lolekbolek
ID: 33697617
Can't figure out how to close the question w/o accepting a solution first.  Will have to read up on that.

I've just opened a question for the extent advice, because I would like to do it properly and also would like then to try to commit all snapshots.  Could you look at this new question?
0
 
LVL 28

Expert Comment

by:bgoering
ID: 33697649
I just did and responded
0
 

Author Comment

by:lolekbolek
ID: 33697675
Thanks a lot!  And I split the points among two of you on this other question, submitted it and then objected as you describe.  The points should be assigned within 4 days.
0
 
LVL 28

Expert Comment

by:bgoering
ID: 33697705
Thanks for the points
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question