Re: How to check the block device space usage

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

 



Thank Josh for sharing the idea.
I have try the command for calculating the block size by ' sudo rbd diff PoolName/ImageName |awk '{ SUM += $2 } END { print SUM/1024/1024 " MB" }''. It seems take much time even to 1-2 minutes.
I think it's not suitable for production environment.

WD

-----Original Message-----
From: Josh Durgin [mailto:jdurgin@xxxxxxxxxx] 
Sent: Wednesday, January 13, 2016 2:44 PM
To: Wido den Hollander; WD Hwang/WHQ/Wistron; ceph-users@xxxxxxxxxxxxxx
Subject: Re:  How to check the block device space usage

On 01/12/2016 10:34 PM, Wido den Hollander wrote:
> On 01/13/2016 07:27 AM, WD_Hwang@xxxxxxxxxxx wrote:
>> Thanks Wido.
>> So it seems there is no way to do this under Hammer.
>>
>
> Not very easily no. You'd have to count and stat all objects for a RBD 
> image to figure this out.

For hammer you'd need another loop and sum around this:
http://permalink.gmane.org/gmane.comp.file-systems.ceph.user/3684

Josh

>> WD
>>
>> -----Original Message-----
>> From: ceph-users [mailto:ceph-users-bounces@xxxxxxxxxxxxxx] On Behalf 
>> Of Wido den Hollander
>> Sent: Wednesday, January 13, 2016 2:19 PM
>> To: ceph-users@xxxxxxxxxxxxxx
>> Subject: Re:  How to check the block device space usage
>>
>> On 01/13/2016 06:48 AM, WD_Hwang@xxxxxxxxxxx wrote:
>>> Hi,
>>>
>>>    Is there any way to check the block device space usage under the 
>>> specified pool? I need to know the capacity usage. If the block 
>>> device is used over 80%, I will send an alert to user.
>>>
>>
>> This can be done in Infernalis / Jewel, but it requires new RBD features.
>>
>> It needs the fast-diffv2 feature iirc.
>>
>>>
>>>
>>>    Thanks a lot!
>>>
>>>
>>>
>>> Best Regards,
>>>
>>> WD
>>>
>>>
>>>
>>> *-------------------------------------------------------------------
>>> --
>>> --------------------------------------------------------------------
>>> --
>>> --------------------*
>>>
>>> *This email contains confidential or legally privileged information 
>>> and is for the sole use of its intended recipient. *
>>>
>>> *Any unauthorized review, use, copying or distribution of this email 
>>> or the content of this email is strictly prohibited.*
>>>
>>> *If you are not the intended recipient, you may reply to the sender 
>>> and should delete this e-mail immediately.*
>>>
>>> *-------------------------------------------------------------------
>>> --
>>> --------------------------------------------------------------------
>>> --
>>> --------------------*
>>>
>>>
>>>
>>> _______________________________________________
>>> ceph-users mailing list
>>> ceph-users@xxxxxxxxxxxxxx
>>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>>>
>>
>>
>> --
>> Wido den Hollander
>> 42on B.V.
>> Ceph trainer and consultant
>>
>> Phone: +31 (0)20 700 9902
>> Skype: contact42on
>> _______________________________________________
>> ceph-users mailing list
>> ceph-users@xxxxxxxxxxxxxx
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>>
>
>

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


  Powered by Linux