Hi,

I would like to shrink a thin provisioned rbd image which has grown to maximum.
90% of the data in the image is deleted data which is still hidden in the image 
and marked as deleted.

So I think I can fill the whole Image with zeroes and then qemu-img convert it.
So the newly created image should be only 10% of the maximum size.

I will do something like
qemu-img convert -O raw rbd:pool/origimage rbd:pool/smallimage
rbd rename origimage origimage-saved
rbd rename smallimage origimage

Would this be the best and fastest way or are there other ways to do this ?

Thanks
  Christoph



-- 
Christoph Adomeit
GATWORKS GmbH
Reststrauch 191
41199 Moenchengladbach
Sitz: Moenchengladbach
Amtsgericht Moenchengladbach, HRB 6303
Geschaeftsfuehrer:
Christoph Adomeit, Hans Wilhelm Terstappen

[email protected]     Internetloesungen vom Feinsten
Fon. +49 2166 9149-32                      Fax. +49 2166 9149-10
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to