Xenserver 5.5 snapshot deletion

Posted on 2010-09-09
Last Modified: 2013-11-11

I ran a scripted backup from a Xenserver 5.5 with 3 VMs which creates a snapshot and then copies an .xva file to a network storage device and then deletes the snapshots.

Due to a permission issue the backups were not stored and the snapshots were not deleted.

I fixed the permissions and ran the script again and this time it snapshotted and created the backup .xvas on the network storage.

However, it has left the original snapshots in place.

My question is:

Can I manually delete these snapshots without causing my running VMs any data loss problems?

Question by:3D2K
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 33645773
Yes, you may delete snaps at any time.  The SR will simply roll up the changes into the main VBD and keep chugging along.  Note that 5.5 did have a bug and was not the best about freeing up snapshot space.  Doesn't affect your data, just makes you scratch your head in trying to figure out why you don't have all the free space you think you should.

Author Comment

ID: 33646025

That's my point. The snapshot in question was created before another snapshot was done by the backup script (Andy Burton) that was subsequently deleted by the script.

What I'm concerned about is that any roll up from the snapshot I want to delete may compromise the later snapshot and the current state of the VM.

I'm aware of the "bug" in 5.5 etc..., but Citrix are saying it is by design.  I've seen solutions to reclaim the disk space but haven't tried them yet as it isn't causing me a problem....yet!



Accepted Solution

ToxicPig earned 250 total points
ID: 33646352
Snaps roll up in sequence.  If you remove one from the sequence, those changes just roll into the next snap.  It's honestly Storage Voodoo that takes a while to get one's head wrapped around, but the same methodology has worked for vendors like Netapp for years.  Doing this a bit more visually:

Original Disk (locked read only) -> Snap 1 (locked read only) -> Snap 2 (unlocked read write)

and so forth.  Only that last snap is in a writeable state, as writing to anything previous would compromise the state of the data.  As you say, you have deleted Snap 1.  That's fine.  Any diffs have been rolled into Snap 2 to maintain both the integrity of the running VM and of the locked Original Disk.  Should you delete Snap 2, changes would be rolled back into the Original Disk as there is no further integrity to maintain from a historical standpoint.  The VM keeps running as if nothing happened.  All of this occurs at the block level within the SR.  Hence the weird loss of disk space, "by design".  Blocks are just remapped within the SR.  Snaps are really nice that way.  I do my own backups in a similar fashion, but also take a manual snap before a major system upgrade.  Very handy for rolling things back if needed.

Author Closing Comment

ID: 33646408


Many thanks for taking the time to deliver a full and detailed response.


Featured Post

10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

Question has a verified solution.

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

A look into Log Analysis and Effective Critical Alerting.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

630 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