: 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
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
- 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
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
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