44
55.. index :: Ceph Block Device; live-migration
66
7- RBD images can be live-migrated between different pools within the same cluster;
8- between different image formats and layouts; or from external data sources.
9- When started, the source will be deep-copied to the destination image, pulling
10- all snapshot history while preserving the sparse allocation of data where
11- possible.
7+ RBD images can be live-migrated between different pools, image formats and/or
8+ layouts within the same Ceph cluster; from an image in another Ceph cluster; or
9+ from external data sources. When started, the source will be deep-copied to
10+ the destination image, pulling all snapshot history while preserving the sparse
11+ allocation of data where possible.
1212
1313By default, when live-migrating RBD images within the same Ceph cluster, the
1414source image will be marked read-only and all clients will instead redirect
@@ -18,8 +18,9 @@ image during the migration to remove the dependency on the source image's
1818parent.
1919
2020The live-migration process can also be used in an import-only mode where the
21- source image remains unmodified and the target image can be linked to an
22- external data source such as a backing file, HTTP(s) file, or S3 object.
21+ source image remains unmodified and the target image can be linked to an image
22+ in another Ceph cluster or to an external data source such as a backing file,
23+ HTTP(s) file, or S3 object.
2324
2425The live-migration copy process can safely run in the background while the new
2526target image is in use. There is currently a requirement to temporarily stop
@@ -156,11 +157,15 @@ as follows::
156157
157158 {
158159 "type": "native",
160+ ["cluster_name": "<cluster-name>",] (specify if image in another cluster,
161+ requires ``<cluster-name>.conf`` file)
162+ ["client_name": "<client-name>",] (for connecting to another cluster,
163+ default is ``client.admin``)
159164 "pool_name": "<pool-name>",
160165 ["pool_id": <pool-id>,] (optional alternative to "pool_name")
161166 ["pool_namespace": "<pool-namespace",] (optional)
162167 "image_name": "<image-name>",
163- ["image_id": "<image-id>",] (optional if image in trash)
168+ ["image_id": "<image-id>",] (specify if image in trash)
164169 "snap_name": "<snap-name>",
165170 ["snap_id": "<snap-id>",] (optional alternative to "snap_name")
166171 }
0 commit comments