Re: Convert version 1 RBD to version 2?

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

 



Hi Wido,
On 24/03/14 19:14, Wido den Hollander wrote:
> Afaik you will have to do a export/import. A tool would also do the same 
> since there is no way to do a conversion.

That's what I feared, but thought I'd ask anyway.

In case others are wondering, I'm presently doing the following to
convert my RBDs (on one of the storage nodes):

rbd -p POOL_NAME ls | while read rbd_name; do
    rbd mv POOL_NAME/${rbd_name} POOL_NAME/${rbd_name}-v1 && \
        ( rbd export POOL_NAME/${rbd_name}-v1 - | \
            rbd import --image-format 2 - POOL_NAME/${rbd_name} ) && \
        rbd rm POOL_NAME/${rbd_name}-v1
done
-- 
Stuart Longland
Systems Engineer
     _ ___
\  /|_) |                           T: +61 7 3535 9619
 \/ | \ |     38b Douglas Street    F: +61 7 3535 9699
   SYSTEMS    Milton QLD 4064       http://www.vrt.com.au


_______________________________________________
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