You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Cloud List <cl...@sg.or.id> on 2019/02/01 03:14:23 UTC

Keeping snapshot when volume and instance is deleted

Hi,

I am using CloudStack with KVM hypervisor.

I noted that a volume snapshot will be deleted when the volume (and
instance using the volume) is deleted. Is it possible to keep the snapshot
saved somewhere when the volume and instance are deleted?

My goal is to have a backup copy of the data before an instance (and its
volumes) is deleted, and keep it on the secondary storage (or another
external storage if possible, but not the primary storage) for a certain
period of time.

So far the solution I can see would be:
1. To export the snapshot into another volume (which will take up space on
the primary storage).
2. To save the snapshot as template (which is not practical especially for
data-disk).

Is there any other solution? Any advice is greatly appreciated.

Thank you.

-ip-

Re: Keeping snapshot when volume and instance is deleted

Posted by Dag Sonstebo <Da...@shapeblue.com>.
Hi Ip,

Which version of CloudStack are you using? I just did a check in 4.11.2 with KVM - and volume snapshots remain after deletion of the VM instance / volume, so it seems it already does what you want?

Regards,
Dag Sonstebo
Cloud Architect
ShapeBlue
 

On 01/02/2019, 03:15, "Cloud List" <cl...@sg.or.id> wrote:

    Hi,
    
    I am using CloudStack with KVM hypervisor.
    
    I noted that a volume snapshot will be deleted when the volume (and
    instance using the volume) is deleted. Is it possible to keep the snapshot
    saved somewhere when the volume and instance are deleted?
    
    My goal is to have a backup copy of the data before an instance (and its
    volumes) is deleted, and keep it on the secondary storage (or another
    external storage if possible, but not the primary storage) for a certain
    period of time.
    
    So far the solution I can see would be:
    1. To export the snapshot into another volume (which will take up space on
    the primary storage).
    2. To save the snapshot as template (which is not practical especially for
    data-disk).
    
    Is there any other solution? Any advice is greatly appreciated.
    
    Thank you.
    
    -ip-
    


Dag.Sonstebo@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 


Re: Keeping snapshot when volume and instance is deleted

Posted by Ivan Kudryavtsev <ku...@bw-sw.com>.
Hi, this is a case I also thinking about. It's like an icebox... the
easiest way is to deploy cheap primary storage with specific tags, create
small compute node in separate dedicated cluster for icebox account. Next,
upon archiving transfer the __stopped__ vm to that account snd migrate
volumes to dedicated storage.

Stopped VMs don't utilize compute resources, so you can archive a lot of
VMs simple.

In theory it should work, but has to be tested, maybe limitations exist.

чт, 31 янв. 2019 г., 22:15 Cloud List cloud-list@sg.or.id:

> Hi,
>
> I am using CloudStack with KVM hypervisor.
>
> I noted that a volume snapshot will be deleted when the volume (and
> instance using the volume) is deleted. Is it possible to keep the snapshot
> saved somewhere when the volume and instance are deleted?
>
> My goal is to have a backup copy of the data before an instance (and its
> volumes) is deleted, and keep it on the secondary storage (or another
> external storage if possible, but not the primary storage) for a certain
> period of time.
>
> So far the solution I can see would be:
> 1. To export the snapshot into another volume (which will take up space on
> the primary storage).
> 2. To save the snapshot as template (which is not practical especially for
> data-disk).
>
> Is there any other solution? Any advice is greatly appreciated.
>
> Thank you.
>
> -ip-
>