LoginSignup
1
1

More than 5 years have passed since last update.

Openstack - Cinder Backup/Restore between Region

Last updated at Posted at 2015-12-13

What's this?

Cinder volume の Region 間の Backup/Restore

Note

  • 別 Region の Cinder backup を直接参照出来ない?(どうにかすれば可能かもしれない)
  • 別 Region へ移動するには、rbd export/import なら出来るかもしれない。(試してない)

  • export (image-spec | snap-spec) [dest-path]

    Exports image to dest path (use - for stdout).

  • import [–image-format format-id] [–object-size B/K/M] [–stripe-unit size-in-B/K/M –stripe-count num] [–image-feature feature-name]... [–image-shared] src-path [image-spec]

    Creates a new image and imports its data from path (use - for stdin). The import operation will try to create sparse rbd images if possible. For import from stdin, the sparsification unit is the data block size of the destination image (object size).

    format-id

    • format 1 - Use the original format for a new rbd image. This format is understood by all versions of librbd and the kernel rbd module, but does not support newer features like cloning.
    • format 2 - Use the second rbd format, which is supported by librbd and kernel since version 3.11 (except for striping). This adds support for cloning and is more easily extensible to allow more features in the future.
(e.g.)
    rbd export <mypool>/<myimage>@snap /tmp/img
    rbd import --image-format 2 /tmp/img <mypool>/<myimage2>

Environment

  • Openstack : Juno
  • Ceph : Firefly

Reference

Blueprint:Ceph rbd support migrate volume
Cinder Backup/Restore
Cinder Backup/Restore between AZ
Cinder Backup/Restore between Region

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1