Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To work with snapshots, first create a volume:

 

Code Block
$ cinder create --name myvol 10

...

Now, create the snapshot: 

Code Block
$ cinder snapshot-create --name myvol-snap1 myvol

...

  1. Re-attach the original myvol volume and continue adding data to it. New data will not appear on the snapshot you just created.

  2. Create a new volume from the snapshot: 

    Code Block
    $ cinder create --name myvol2 --snapshot-id <myvol-snap1 uuid> 15


    Once you have created a new volume based on the snapshot, you can attach it to an instance. It will contain all of the data which was on the volume at the time you created the snapshot.

    Note that the size of the above volume is 15gb while the original volume was 10gb. However, note that when you attach the volume, the Operating System will only see a 10gb volume. You must extend the size of the filesystem from within the Operating System. This procedure varies for each Operating System and is out of the scope of this document.

...