Re: [ceph-users] Fastest way to shrink/rewrite rbd image ?

2014-12-01 Thread Alexandre DERUMIER
: Daniel Swarbrick daniel.swarbr...@profitbricks.com À: ceph-users@lists.ceph.com Envoyé: Vendredi 28 Novembre 2014 17:16:14 Objet: Re: [ceph-users] Fastest way to shrink/rewrite rbd image ? Take a look at http://ceph.com/docs/master/rbd/qemu-rbd/#enabling-discard-trim I think if you enable

Re: [ceph-users] Fastest way to shrink/rewrite rbd image ?

2014-12-01 Thread Daniel Swarbrick
On 01/12/14 10:22, Alexandre DERUMIER wrote: Yes, it's working fine. (you need to use virtio-scsi and enable discard option) Does it work with virtio-blk if you attach the RBD as a LUN? Supposedly, SCSI pass-through works in this mode, e.g. disk type='block' device='lun' target

Re: [ceph-users] Fastest way to shrink/rewrite rbd image ?

2014-12-01 Thread Alexandre DERUMIER
- Mail original - De: Daniel Swarbrick daniel.swarbr...@profitbricks.com À: ceph-users@lists.ceph.com Envoyé: Lundi 1 Décembre 2014 13:32:15 Objet: Re: [ceph-users] Fastest way to shrink/rewrite rbd image ? On 01/12/14 10:22, Alexandre DERUMIER wrote: Yes, it's working fine

[ceph-users] Fastest way to shrink/rewrite rbd image ?

2014-11-28 Thread Christoph Adomeit
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

Re: [ceph-users] Fastest way to shrink/rewrite rbd image ?

2014-11-28 Thread Daniel Swarbrick
Take a look at http://ceph.com/docs/master/rbd/qemu-rbd/#enabling-discard-trim I think if you enable TRIM support on your RBD, then run fstrim on your filesystems inside the guest (assuming ext4 / XFS guest filesystem), Ceph should reclaim the trimmed space. On 28/11/14 17:05, Christoph Adomeit