Re: rbd du command

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

 



On Mon, Jan 6, 2020 at 2:51 PM M Ranga Swami Reddy <swamireddy@xxxxxxxxx> wrote:
>
> Thank you.
> Can you please share a simple example here?
>
> Thanks
> Swami
>
> On Mon, Jan 6, 2020 at 4:02 PM <ceph@xxxxxxxxxxxxxx> wrote:
>>
>> Hi,
>>
>> rbd are thin provisionned, you need to trim on the upper level, either
>> via the fstrim command, or the discard option (on Linux)
>>
>> Unless you trim, the rbd layer does not know that data has been removed
>> and are thus no longer needed
>>
>>
>>
>> On 1/6/20 10:30 AM, M Ranga Swami Reddy wrote:
>> > Hello,
>> > I ran the "rbd du <pool>/image" command. Its shows increasing, when I add
>> > data to the image. That looks good. But when I removed data from the image,
>> > its not showing the decreasing the size.
>> >
>> > Is this expected with "rbd du" or its not implemented?
>> >
>> > NOTE: Expected behavior is the same as " Linux du command"
>> >
>> > Thanks
>> > Swami

Literally just "sudo fstrim <mount point>".  Another alternative is to
mount with "-o discard", but that can negatively affect performance.

I wrote up a detailed explanation of what is reported by "rbd du" in
another thread:

  https://www.mail-archive.com/ceph-users@xxxxxxxxxxxxxx/msg57186.html

Thanks,

                Ilya
_______________________________________________
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]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux