Re: Metric or any information about disk (block) fragmentation

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

 



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.Szabo@xxxxxxxxx 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@xxxxxxx
> To unsubscribe send an email to ceph-users-leave@xxxxxxx
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[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