Hi Matteo, That’s some interesting questions. >What’s the best method? Modify the crush map via ceph CLI or via text editor? Others might have different experience, but IMO the best way is using the “osd crush location hook = /path/to/script” (See
http://docs.ceph.com/docs/master/rados/operations/crush-map/). It allows you to make a script deciding where to place that OSD in the CRUSHmap. >Will the modification to the crush map be persistent across reboots and maintenance operations? If you modify the crushmap via CLI or text editor, “osd crush update on start = true” can rollback your changes on reboot or OSD restart. >There’s something to consider when doing upgrades or other operations or different by having “original” crush map? Consider that “ceph status” returns the total available/used space, so you need to monitor the space usage for HDDs and SSDs separately (ceph osd df tree). Shameless plug: I wrote an article about this a couple of months ago:
http://www.root314.com/2017/01/15/Ceph-storage-tiers/ hope it helps. Cheers, Maxime From:
ceph-users <ceph-users-bounces@xxxxxxxxxxxxxx> on behalf of Matteo Dacrema <mdacrema@xxxxxxxx> Hi all, Does anyone run a production cluster with a modified crush map for create two pools belonging one to HDDs and one to SSDs. What’s the best method? Modify the crush map via ceph CLI or via text editor? Will the modification to the crush map be persistent across reboots and maintenance operations? There’s something to consider when doing upgrades or other operations or different by having “original” crush map? Thank you Matteo -------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received
this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify
the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents
of this information is strictly prohibited. |
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com