[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-API] Delete a snapshot


  • To: R J <torushikeshj@xxxxxxxxx>
  • From: Vijay Ramadoss <vramadoss@xxxxxxxxxx>
  • Date: Mon, 25 Jun 2012 15:21:37 -0700
  • Accept-language: en-US
  • Acceptlanguage: en-US
  • Cc: "xen-api@xxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxx>
  • Delivery-date: Mon, 25 Jun 2012 22:21:54 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>
  • Thread-index: Ac1S6K59L0VN6yG1SGmSaOp2yNjQUAAOAPXQ
  • Thread-topic: [Xen-API] Delete a snapshot

I don’t want to do periodic snapshots. I want to take snapshots on demand and when I do that I need to get rid of my oldest snapshot. VMPP doesn’t provide me an option for doing that.

 

Also last_shutdown_time field doesn’t give me details about snapshot ,does it? Also is there a method for deleting the snapshot? Destroy method in VM class destroys a VM but not a snapshot I believe.

 

Regards,

Vijay R

 

From: R J [mailto:torushikeshj@xxxxxxxxx]
Sent: Monday, June 25, 2012 8:39 AM
To: Vijay Ramadoss
Cc: xen-api@xxxxxxxxxxxxx
Subject: Re: [Xen-API] Delete a snapshot

 

Hi Vijay,

You could look at vmpp ( VM Protection Policy ) to take periodic snapshots and delete the oldest one.

Another safe way would be to create a Parent-Child relation amongst the VM-Snapshot and compare the dates / timestamps.
Have you checked the "other-config (MRW): last_shutdown_time " ?

- RJ

On Mon, Jun 25, 2012 at 9:45 AM, Vijay Ramadoss <vramadoss@xxxxxxxxxx> wrote:

Hi – I am trying to figure out a way to delete a snapshot from a VM and could not find the right API to do that. I basically want to delete the most oldest snapshot of a VM. How do I do that?
I found the timetamp field of the VM class, but that  is returning invalid timestamp for a timestamp for me for some reason. Any idea how to figure out the oldest snapshot and delete it?

 

Any help would be appreciated.

 

Regards,

Vijay R

 


This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.



_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 

_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.