Hey,

Yes, you can use either of these commands depending on whether or not you are 
using containers to get live OSDs's bluestore fragmentation:

ceph daemon osd.0 bluestore allocator score block

or

cephadm shell ceph daemon osd.0 bluestore allocator score block
...
{
    "fragmentation_rating": 0.060519485819245739
}

Regards,
Frédéric.

----- Le 16 Sep 24, à 8:27, Istvan Szabo, Agoda istvan.sz...@agoda.com a écrit :

> Hi,
> 
> Is there any way to pull out the fragmentation value from the disk somehow
> without shutdown the osd and run the ceph-objectstore-tool command?
> 
> We had a total outage last week which is based on multiple bugs but most of 
> them
> are down to disk fragmentation which is super high in our case.
> 
> I'm trying to find in the logs and in ceph metrics some hint but I couldn't 
> find
> anything how I can monitor or at least check this value:
> 
> ceph-bluestore-tool --path /var/lib/ceph/osd/ceph-218/ --command free-score
> 
> block: { "fragmentation_rating": 0.90989583876508828 }
> bluefs-db: { "fragmentation_rating": 0.41012391001249843 }
> 
> failure querying 'bluefs-wal'
> 2024-09-15T12:19:31.814+0700 7f90c66d00c0 -1 asok(0x55c637e7c000) AdminSocket:
> request '[{"prefix": "bluestore allocator score bluefs-wal"}]' not defined
> 
> Thank you
> 
> ________________________________
> This message is confidential and is for the sole use of the intended
> recipient(s). It may also be privileged or otherwise protected by copyright or
> other legal rules. If you have received it by mistake please let us know by
> reply email and delete it from your system. It is prohibited to copy this
> message or disclose its content to anyone. Any confidentiality or privilege is
> not waived or lost by any mistaken delivery or unauthorized disclosure of the
> message. All messages sent to and from Agoda may be monitored to ensure
> compliance with company policies, to protect the company's interests and to
> remove potential malware. Electronic messages may be intercepted, amended, 
> lost
> or deleted, or contain viruses.
> _______________________________________________
> ceph-users mailing list -- ceph-users@ceph.io
> To unsubscribe send an email to ceph-users-le...@ceph.io
_______________________________________________
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io

Reply via email to