All of lore.kernel.org
 help / color / mirror / Atom feed
* trimming rbd image does not reclaim free space
@ 2015-05-11 11:26 Edgaras Lukoševičius
  2015-05-11 11:47 ` Ilya Dryomov
  2015-05-12  7:48 ` Edgaras Lukoševičius
  0 siblings, 2 replies; 5+ messages in thread
From: Edgaras Lukoševičius @ 2015-05-11 11:26 UTC (permalink / raw)
  To: ceph-devel

Hello,

I have ceph pool (size=2) and three RBD images (2TB each) and I have noticed, that deleting data does not reclaim data on ceph.
What I have done is mount RBD device as a loopback device loop0, mounted it to a filesystem, ran “fstrim” and got response:

/mnt/fstrim/: 1.1 TiB (1167710830592 bytes) trimmed
/mnt/fstrim/: 1 TiB (1125871489024 bytes) trimmed
/mnt/fstrim/: 1.1 TiB (1186485440512 bytes) trimmed

Now that would be almost perfect if not the fact, that space was not reclaimed on ceph itself. Using “ceph osd df” I still see same usage even after waiting few hours and I don’t see any action.

I’m using ceph v0.94-2 and kernel 3.10

What is the proper way to reclaim unused space? I had pool size 3, but had to lower it to two, to avoid getting my OSDs full.

Thanks.--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-12  8:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-11 11:26 trimming rbd image does not reclaim free space Edgaras Lukoševičius
2015-05-11 11:47 ` Ilya Dryomov
2015-05-12  7:48 ` Edgaras Lukoševičius
2015-05-12  8:09   ` Wido den Hollander
2015-05-12  8:48     ` Ilya Dryomov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.