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.
On Tue, Jun 6, 2017, 5:33 AM xiaoyang...@saiway.com.cn < xiaoyang...@saiway.com.cn> wrote: > 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-win7 > > 2) i want to copy the cloned rbd "vm-win7" to a new one > #rbd copy template-pool/vm-win7 template-pool/vm-win7_copy > > 3) I found vm-win7_copy doesn't include parent infomation while > vm-win7 does! > #[root@host111 ~]# rbd info vm-win7_copy --pool template-pool > rbd image 'vm-win7_copy': > size 20480 MB in 5120 objects > order 22 (4096 kB objects) > block_name_prefix: rbd_data.858a6b8b4567 > format: 2 > features: layering > flags: > > #[root@host111 ~]# rbd info vm-win7 --pool template-pool > rbd image 'vm-win7': > size 20480 MB in 5120 objects > order 22 (4096 kB objects) > block_name_prefix: rbd_data.85846b8b4567 > format: 2 > features: layering > flags: > *parent: template-pool/template-win7@template-win7_snapshot* > overlap: 20480 MB > > *so 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@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com >
_______________________________________________ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com