Re: [ceph] how to copy a cloned rbd including its parent infomation?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.yu@xxxxxxxxxxxxx <xiaoyang.yu@xxxxxxxxxxxxx> 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@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

[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux