Ask Your Question

what is the difference between cinder snapshot and clone?

asked 2013-07-30 13:42:57 -0500

steveisoft gravatar image

What are the differences in behavior between these? I could not find a blueprint or any good description. Also, are there any use case documents? For example is the clone_volume always followed by create_volume_from_clone? (same for snapshot). The reason for asking is that difference ARRAY vendors provide different snapshot alternatives.

edit retag flag offensive close merge delete



I'm looking for common use cases using snap, clone, and create_v_from_snap. For example, case 1: customer wants to take hourly snaps in case of disaster, but only takes a backup (using create_v_from_snap) from the last snap of the day. case 2: customer wants to mount a copy of yesterdays' 12 noon snapshot read-only.

steveisoft gravatar imagesteveisoft ( 2013-07-31 15:34:09 -0500 )edit

2 answers

Sort by ยป oldest newest most voted

answered 2013-07-31 04:20:04 -0500

updated 2013-07-31 04:22:30 -0500

@steveisoft, a snapshot is a backed up copy of your storage, depending on the infrastructure you have for block storage, you can use different snapshot techniques(incremental, version based, etc). With Openstack APIs in consideration, a snapshot cannot be directly used as a volume. You need to create a volume out of it and then use it.

Whereas, a clone is usable copy of your volume. Its just another volume with the similar contents of existing volume you cloned. If underlying storage array supports direct clone from a volume, you can directly clone it as single operation, you don't need to create a snapshot and then create volume from it(i think you are referring to implementation where they are creating snapshots first and volume in the clone method).

edit flag offensive delete link more

answered 2014-11-01 13:20:23 -0500

Snapshot : Storing the state of the volume. And it is a passive object, that means we can't use directly, we need to create a volume form that snapshot.

But clone: Clone is a active object. It will gives us a volume which we can directly use and get the data.

Simply: clone = snapshot -> volume form that snapshot

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-07-30 13:42:57 -0500

Seen: 5,323 times

Last updated: Nov 01 '14