2

I'm ssh'd into the xenserver and trying to locate the snapshots using "find /scripts | grep -i string" where string is what I called the snapshot when I took it in xencenter. This method doesn't work, so I want to know where xenserver keeps the snapshots I make?

3 Answers 3

2

I finally got an answer from the citrix forum:

"There are no snapshot files. Virtual disks (including snapshots) in an LVM SR are stored as volumes. You can manage volumes with commands in the lvm2 package (run rpm -vV lvm2 to see the included commands)."

Here is the full thread.

2

I know this is late to the game, but there is an option to use an Ext3 filesystem based Storage Repository when installing XenServer. If this is done then the VM disks are actual VHD files stored in /var/run/sr-mount/<UUID OF SR>.

This also allows for thin provisioning, something supported in Ext3, NFS, and other more enterprise level SR types, but not supported with the default LVM SR type.

During the install, when choosing the disk(s) to use for virtual machine storage, make sure to select "Enable thin provisioning (Optimized storage for XenDesktop)". Even if you aren't going to be using XenDesktop this still is the option that enables the Ext3-based SR versus the default LVM.

For more details, see:
Citrix XenServer 6.1.0 Installation Guide
Citrix XenServer 6.1.0 Administrator's Guide

Search for "ext3" and "thin provisioning" in those documents.

For someone who might want to attempt switching an existing install from an LVM SR to an Ext3 SR, look under the "Converting an Existing Host to Use Thin Provisioning" section in the Installation Guide, though be fully aware that this will DESTROY any existing data and VMs in the LVM SR. So you need to back up or migrate any VMs out of the existing SR before making the switch.

In case Citrix changes the links for the documents, or when new XenServer versions become available, just search Google for "Xenserver Installation Guide" or "Xenserver Administrator's Guide" and it should be pretty easy to find.

2
  • Interesting info. Do you have a link showing this option? Would help make a great answer.
    – Lizz
    Mar 26, 2013 at 4:06
  • @Lizz I've updated the answer with more details and links to the relevant Citrix documents. Mar 28, 2013 at 7:10
1

The short answer: it's probably not a file you can find|grep.

Storage of XenServer snapshots is dependent on the type of storage repository (SR) used, as well as the Xen version number under which the SR was originally created. This white paper provides all the gory details.

If you are ssh'd into dom0, the command xe vdi-list is-a-snapshot=true might get you started in the right direction.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .