VMware Communities > VMTN > Datacenter Virtualization Products > VI: ESX 3.5 > Discussions

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
11 Replies Last post: Nov 10, 2008 6:16 AM by DonCarter
Reply

No snapshot but we have big delta files

Nov 9, 2006 12:17 AM

Click to view jfsardon's profile Novice jfsardon 9 posts since
Jun 3, 2005
We have sereral 3.0.1 ESX serveurs
We have created snapshot on 2 VMs with 500 Go virtual RDM ==> OK

two weeks after we destroy the snapshots, but :
- use vmware-cmd hassnapshots = 0

now we have a 50 Go delta file !

How can I merge the delta file with the raw device or do I copy the data onto another volume and destroy the primary RDM ??
Reply Re: No snapshot but we have big delta files Nov 9, 2006 12:55 AM
Click to view jfsardon's profile Novice jfsardon 9 posts since
Jun 3, 2005
note We are not using vcb or another backup using the ESX's snapshot...
Reply Re: No snapshot but we have big delta files Nov 13, 2006 2:17 AM
in response to: jfsardon
Click to view cheeko's profile Master cheeko 607 posts since
Nov 30, 2005
just on thought: is that VM in undoable mode? if so you'll be promted to merge the delta to your VMDK when you boot up your VM.
Reply Re: No snapshot but we have big delta files Nov 18, 2006 6:25 AM
in response to: cheeko
Click to view asp24's profile Enthusiast asp24 58 posts since
Oct 11, 2006
any solution?
I'm having a VM with a big delta file, but snapshot manager is not showing any. I think a backup script did this (crashed)

Is there a way to force the files to be committed?
If I try to create a new snapshot I get a "invalid snapshot configuration..."
Reply Re: No snapshot but we have big delta files Nov 18, 2006 6:31 AM
Click to view mittell's profile Champion mittell 2,986 posts since
Apr 25, 2006
Sounds like the VC snapshot database has got out of sync with the VM. Remove and re-register the VM from the VC inventory and it should pick up the snapshots and then you can remoev them through the snapshot manager. (NB: do not 'remove from disk', remove from inventory!)
Reply Re: No snapshot but we have big delta files Mar 12, 2007 12:14 AM
in response to: mittell
Click to view claas's profile Novice claas 32 posts since
May 31, 2005
Hi,

I've got this kind of problem, too... I'm having 2 delta files and no snapshot is display... Neither within the VC nor with "vmware-cmd /vmfs/volumes/.../ hassnapshot"...

I'd like to commit the existing delta-files but don't know how...

Any suggestions?

with kinds regards,
Sascha
Reply Re: No snapshot but we have big delta files Mar 12, 2007 9:16 AM
in response to: claas
Click to view mittell's profile Champion mittell 2,986 posts since
Apr 25, 2006
I had this problem with one of my VMs, unfortunately I could not get the delta's commited to had to go through the tedious process of creating a new VM and imaging the data from old->new to get out of the situation. This was the only resolution VMware support could suggest!

Snapshots are flakey, and the larger the delta (i.e. the busier the VM and the longer the snapshot is left in place), the greater the chance you'll have problems comitting them.

You can try un-registering and re-registering the VM with VC, this sometimes causes the snapshot manager to pick up the 'missing' snapshots, if they are still listed in the .vmsd/.vmsn files. It's a safe process so worth a go before trying anything else.

Check that your VM does not suffer from this "problem". If it does, do not try adding anymore snapshots.

http://kb.vmware.com/kb/5096672

Otherwise you can try the following - point the VI client directly at the ESX host running the VM, rather than VC as it has a hard-coded timeout which is too short. Power off the VM, create a new snapshot, and then try and commit. I've been told by support that this *should* clear the stuck delta's, but in my case it didn't work.

I also recommend you take a full backup of the VM before trying this.

Good luck, I've been there and I don't envy your situation.
Reply Re: No snapshot but we have big delta files Jun 13, 2007 3:48 AM
Click to view andr3wc's profile Novice andr3wc 7 posts since
Jan 22, 2007
Well I've just had this battle today.
I didn't know how snapshots work, so no idea my Delta-s were silently growing, and growing and growing.
I wanted to export a VM to clone it at another site, and the VMimporter failed.
I looked at the disk and OMFG its 18 GB (machine is 5 GB).
To get this machine working I had taken 6 snapshots as we tried different things, rolled back, tried something else etc (snapshot feature is great).
Once working, I left it to work.

So today I click the "delete all" button and it races to 95% complete and then "hangs". Watching "top" in the console shows no activity. However, the timestamps on the delta's keep changing. So I hope.

Then it goes NUTS. Consuming several hundred MB of disk every few seconds. I frantically delete **** (ISO's mostly) and blow away trashy VMs in the hope of enabling enough disk space.

I fail.

Disk full error message. VM now consuming 25 GB of disk with monster delta files, but VIC says "no snapshots". %$@#$
I do the unregister/register thing, but no joy.
I create a new snapshot, and then do the "delete all" from the command line.
Hmmm, taking a long time for a snapshot that should contain zero changes (machine was down all this time).

Again, the disk munching resumes. I think about two other snapshots that exist for all the other machines, and decide I hate snapshots and delete them from the command line.

Now it could be a coincidence, but when running one of these other commands in another putty session, my main delete fails spetactularly with:

VMControl error -999: Unknown error: SoapError: ServerFaultCode(1514) : (The request refers to an object that no longer exists or has never existed.)

I swear, but my foul language is not required. The deltas are gone. Disk space is back. I open VIC, and hit boot, and pray. It boots. Evenvwr shows it is not some weird rolled back thing from May, but was running today.

So, there you go. Just verbose confirmation of the messages above.
Shutdown
Unregister.
Register.
Take a snapshot
Ensure you have lots of disk space, and LOTS of time (takes hours).
Delete all snapshots.
Pray
Reply Re: No snapshot but we have big delta files Oct 23, 2007 8:35 AM
in response to: mittell
Click to view Shawn Markham's profile Novice Shawn Markham 14 posts since
Sep 20, 2005
mittell wrote:
Otherwise you can try the following - point the VI client directly at the ESX host running the VM, rather than VC as it has a hard-coded timeout which is too short. Power off the VM, create a new snapshot, and then try and commit. I've been told by support that this *should* clear the stuck delta's, but in my case it didn't work.

I also recommend you take a full backup of the VM before trying this.


Just an FYI this DID work for me with a stuck snapshot that was 500MB in size.

Thank you for posting this
Shawn
Reply Re: No snapshot but we have big delta files Nov 27, 2007 3:24 AM
in response to: Shawn Markham
Click to view maccajuk's profile Novice maccajuk 11 posts since
Jan 6, 2006
Hi, just a quick note based on my experience from today (whilst it is still fresh in my mind). As per suggestions above we did the following.

We actually connected through VI to the VC box. (I seemed to have skipped that part of Mittel's suggestion?!?!)

1. Shutdown the VM
2. Take a new snapshot in Snapshot manager
3. Delete ALL snapshots in Snapshot manager
4. Restart server

It's worth mentioning that on several occasions between actions 3 and 4, I thought it had failed. Including the 'Operation timed out' error. However, looking on the ESX server we could see the delta files were still being modified. We had to keep an eye on space and actually delete an old VM on the go, but eventually, about an hour later, it completed. All delta files had gone and we were left with one shiny vmdk.

Server started happily with events in the Windows system log from the last time the box was up.
Reply Re: No snapshot but we have big delta files Nov 27, 2007 3:37 AM
in response to: maccajuk
Click to view osde.info's profile Expert osde.info 799 posts since
Jan 25, 2005

apparently there is a bug in VMWVI that it jumps to 95% complete and always times out after 15mins (even if it isn't)

the only workaround is to manually watch the delta files (in the way you did)

if this is a problem for you and if you've got support you might like to log an SR !

regards
clive (aka osde.info)
http://www.vizzr.info

points=prizes
so please click helpful answer or correct answer when appropriate
(but where's the unhelpful button ?)

Reply Re: No snapshot but we have big delta files Nov 10, 2008 6:16 AM
in response to: osde.info
Click to view DonCarter's profile Lurker DonCarter 2 posts since
Nov 10, 2008
If you connect to the host that the particular VM resides on, you can see the progress...even though in VC it says that the "Operation Time Out".
Actions