Solved

Xenserver 5.5 snapshot deletion

Posted on 2010-09-09
4
833 Views
Last Modified: 2013-11-11
Hi

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?

Brian
0
Comment
Question by:3D2K
  • 2
  • 2
4 Comments
 
LVL 9

Expert Comment

by:ToxicPig
Comment Utility
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.
0
 

Author Comment

by:3D2K
Comment Utility
ToxicPig

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!

Thanks

Brian
0
 
LVL 9

Accepted Solution

by:
ToxicPig earned 250 total points
Comment Utility
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.
0
 

Author Closing Comment

by:3D2K
Comment Utility
ToxicPig

Great.

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

Brian
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Citrix XenDesktop 7.6 Citrix Policies Graphics
VM backups can be lost due to a number of reasons: accidental backup deletion, backup file corruption, disk failure, lost or stolen hardware, malicious attack, or due to some other undesired and unpredicted event. Thus, having more than one copy of …
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now