Re: Very beginner question for cephadm: config file for bootstrap and osd_crush_chooseleaf_type

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

 



Just for experimenting, which are those single host defaults? Maybe these?:

mon_allow_pool_size_one = 1
osd_pool_default_size = 1

Ignacio


El 30/8/21 a las 17:31, Sebastian Wagner escribió:
Try running `cephadm bootstrap --single-host-defaults`

Am 20.08.21 um 18:23 schrieb Eugen Block:
Hi,

you can just set the config option with 'ceph config set ...' after your cluster has been bootstrapped. See [1] for more details about the config store.

[1] https://docs.ceph.com/en/latest/rados/configuration/ceph-conf/#monitor-configuration-database


Zitat von Dong Xie <xied75@xxxxxxxxx>:

<!-- /* Font Definitions */ @font-face {font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal,
li.MsoNormal, div.MsoNormal  {margin:0cm;  font-size:11.0pt;
font-family:"Calibri",sans-serif;} a:link, span.MsoHyperlink
{mso-style-priority:99;  color:blue; text-decoration:underline;}
.MsoChpDefault  {mso-style-type:export-only;} @page WordSection1
{size:612.0pt 792.0pt;  margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1  {page:WordSection1;} -->
Dear All,



Early days of my venture with Ceph. I understand that one should have at least two hosts to truly appreciate the design of Ceph. But as a baby step
having one playground on a single host is really unavoidable.



My env:

A single Azure VM

Ubuntu 20.04

Installed cephadm via apt per official doc.

ceph version 15.2.13 (c44bc49e7a57a87d84dfff2a077a2058aa2172e2) octopus
(stable)



Issues encountered:

Following steps here: https://docs.ceph.com/en/latest/cephadm/install/

I’ve created a initial-ceph.conf to set /osd crush chooseleaf type = 0/.



1, with cmd like:

sudo cephadm bootstrap --config initial-ceph.conf --mon-ip 10.2.0.4

It seems my config line is simply ignored in the final conf.

I’ve tried “/osd crush chooseleaf type = 0”/ (no underline symbol but
rather space, I doubt if the document is correct).

I’ve also tried “osd_crush_chooseleaf_type = 0” (underline rather
than space).

I’ve tried putting a tab to start the line, or without tab.



My line is always ignored, unless I use --no-minimize-config switch.



2, with above switch and seeing my value set to 0 in conf file, when I
login to the dashboard, looking at Cluster -> Configuration, search this item, it shows Default value to 1, Current value empty, means it doesn’t
really got set?



I’ve tried to search an answer for a while, but didn’t get any hint or
workaround, any help would be greatly appreciated,



Best regards,



Dong Xie

CodeRobin Ltd.





_______________________________________________
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
_______________________________________________
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