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?
migrated from stackoverflow.com Sep 22 '10 at 16:27
This question came from our site for professional and enthusiast programmers.
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.
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
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.
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.
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