Re: [External Email] Overlapping Roots - How to Fix?

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

 



On 19-09-2024 05:10, Anthony D'Atri wrote:



Anthony,

So it sounds like I need to make a new crush rule for replicated pools that specifies default-hdd and the device class?  (Or should I go the other way around?  I think I'd rather change the replicated pools even though there's more of them.)

I think it would be best to edit the CRUSH rules in-situ so that each specifies the device class, that way if you do get different media in the future, you'll be ready.  Rather than messing around with new rules and modifying pools, this is arguably one of the few times when one would decompile, edit, recompile, and inject the CRUSH map in toto.

I haven't tried this myself, but maybe something like the below, to avoid the PITA and potential for error of edting the decompiled text file by hand.


ceph osd getcrushmap -o original.crush
crushtool -d original.crush -o original.txt
crushtool -i original.crush --reclassify --reclassify-root default hdd --set-subtree-class default hdd -o adjusted.crush
crushtool -d adjusted.crush -o adjusted.txt
crushtool -i original.crush --compare adjusted.crush
ceph osd setcrushmap -i adjusted.crush

This might be of use as well (if a lot of data would move): https://blog.widodh.nl/2019/02/comparing-two-ceph-crush-maps/

Gr. Stefan
_______________________________________________
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