The problem is that there are changes to the clone from the snapshot. Rbd copy and similar manual commands like dd will result in the same type of copy without the parent information. The other option is to snapshot the clone and create a new clone. It won't have the same parent information, but it will know that it is a child of the original rbd and snapshot, just one more generation removed.
Hi,all:1)I have cloned an image named "vm-win7" from snapshot named "template-win7_snapshot"#rbd clone template-pool/template-win7@template-win7_snapshot template-pool/vm-win72) i want to copy the cloned rbd "vm-win7" to a new one#rbd copy template-pool/vm-win7 template-pool/vm-win7_copy3) I found vm-win7_copy doesn't include parent infomation while vm-win7 does!#[root@host111 ~]# rbd info vm-win7_copy --pool template-poolrbd image 'vm-win7_copy':size 20480 MB in 5120 objectsorder 22 (4096 kB objects)block_name_prefix: rbd_data.858a6b8b4567format: 2features: layeringflags:#[root@host111 ~]# rbd info vm-win7 --pool template-poolrbd image 'vm-win7':size 20480 MB in 5120 objectsorder 22 (4096 kB objects)block_name_prefix: rbd_data.85846b8b4567format: 2features: layeringflags:parent: template-pool/template-win7@template-win7_snapshotoverlap: 20480 MBso i want to know how to get a copy of a cloned rbd including its parent infomation?maybe i should use another command except "rbd copy"?_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com