[ceph-users] Re: cephadm vs ceph.conf

2023-11-23 Thread Zakhar Kirpichenko
Hi,

Please note that there are cases where the use of ceph.conf inside a
container is justified. For example, I was unable to set monitor's
mon_rocksdb_options by any means except for providing them in monitor's own
ceph.conf within the container, all other attempts to pass this settings
were ignored by the monitor.

/Z

On Thu, 23 Nov 2023 at 16:53, Albert Shih  wrote:

> Le 23/11/2023 à 15:35:25+0100, Michel Jouvin a écrit
> Hi,
>
> >
> > You should never edit any file in the containers, cephadm takes care of
> it.
> > Most of the parameters described in the doc you mentioned are better
> managed
> > with "ceph config" command in the Ceph configuration database. If you
> want
> > to run the ceph commnand on a Ceph machine outside a container, you can
> add
>
> Ok. Of course I'll not touch anything inside any container, I juste check
> the overlay to see if the container use this file.
>
> It's just I see in lot of place in the documentation some configuration
> to put in the /etc/ceph/ceph.conf
>
> > the label _admin to your host in "ceph orch host" so that cephadm takes
> care
> > of maintaining your /etc/ceph.conf (outside the container).
>
> Ok. I'm indeed using ceph orch & Cie.
>
> Thanks.
>
> Regards.
>
> JAS
> --
> Albert SHIH 🦫 🐸
> Observatoire de Paris
> France
> Heure locale/Local time:
> jeu. 23 nov. 2023 15:48:36 CET
> ___
> 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


[ceph-users] Re: cephadm vs ceph.conf

2023-11-23 Thread Albert Shih
Le 23/11/2023 à 15:35:25+0100, Michel Jouvin a écrit
Hi, 

> 
> You should never edit any file in the containers, cephadm takes care of it.
> Most of the parameters described in the doc you mentioned are better managed
> with "ceph config" command in the Ceph configuration database. If you want
> to run the ceph commnand on a Ceph machine outside a container, you can add

Ok. Of course I'll not touch anything inside any container, I juste check
the overlay to see if the container use this file. 

It's just I see in lot of place in the documentation some configuration
to put in the /etc/ceph/ceph.conf 

> the label _admin to your host in "ceph orch host" so that cephadm takes care
> of maintaining your /etc/ceph.conf (outside the container).

Ok. I'm indeed using ceph orch & Cie. 

Thanks. 

Regards.

JAS
-- 
Albert SHIH 🦫 🐸
Observatoire de Paris
France
Heure locale/Local time:
jeu. 23 nov. 2023 15:48:36 CET
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: cephadm vs ceph.conf

2023-11-23 Thread Anthony D'Atri

>>> 
>>> Should I modify the ceph.conf (vi/emacs) directly ?
>> 
>> vi is never the answer.
> 
> WTF ? You break my dream ;-) ;-)

Let line editors die.

>> 
> You're right. 
> 
> Currently I'm testing 
> 
>  17.2.7 quincy.
> 
> So in my daily life how I would know if I should use ceph config or
> modify with vi/emacs/whatever /etc/ceph/ceph.conf ?

Use central “ceph config” unless you have an explicit reason to use ceph.conf.  
Before we had central config, maintaining ceph.conf properly across clusters 
could be rather a pain.

There is a precedence to option values, which can be specified on the 
commandline, central config, ceph.conf, or via injection.  I don’t recall the 
order.  If you stick with the central config you mostly don’t need to worry 
unless you change your monitor nodes.

> 
>> 
>>> And what about the future ?
>> 
>> We are all interested in the future, for that is where you and I are going 
>> to spend the rest of our lives.
> 
> Correct ;-)

https://www.youtube.com/watch?v=qsb74pW7goU
Plan 9 from Outer Space (1957) Tor Johnson, Vampira, Tom Keene, Bela Lugosi | 
Full Movie, subtitles
youtube.com

> 
> Sorry my question was not very clear. My question was in fact in which
> way we headed. But I'm guessing the answer is “ceph config” or something
> like that. 
> 
> Thanks.
> 
> Regards
> 
> -- 
> Albert SHIH 🦫 🐸
> Observatoire de Paris
> France
> Heure locale/Local time:
> jeu. 23 nov. 2023 15:37:04 CET

___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: cephadm vs ceph.conf

2023-11-23 Thread Albert Shih
Le 23/11/2023 à 09:32:49-0500, Anthony D'Atri a écrit
> 

Hi, 

Thanks for your answer. 

> 
> > to change something in the /etc/ceph/ceph.conf.
> 
> Central config was introduced with Mimic.  Since both central config and 
> ceph.conf work and are supported, explicitly mentioning both in the docs 
> every time is a lot of work (and awkward).  One day we’ll sort out an 
> effective means to generalize throughout the docs.
> 

Ok. I perfectly understand the «nightmare» to maintained a up2date
documentation. 

> > How that is taking account by cephadm ? I see in the docker container they
> > have a overlay for /etc/ceph/ceph.conf. 
> > 
> > Should I modify the ceph.conf (vi/emacs) directly ?
> 
> vi is never the answer.

WTF ? You break my dream ;-) ;-)

Ok. 
> 
> > Should I modify the ceph.conf (vi/emacs) directly and restart something ? 
> > Should I use some cephadm shell and don't manually touche ceph.conf ?
> 
> Depending on the option in question, you may be able to just use “ceph 
> config” to set it centrally.  When asking questions here, it helps a LOT if 
> you share the Ceph release you’re running and more context.
> 

You're right. 

Currently I'm testing 

  17.2.7 quincy.

So in my daily life how I would know if I should use ceph config or
modify with vi/emacs/whatever /etc/ceph/ceph.conf ? 

> 
> > And what about the future ?
> 
> We are all interested in the future, for that is where you and I are going to 
> spend the rest of our lives.

Correct ;-)

Sorry my question was not very clear. My question was in fact in which
way we headed. But I'm guessing the answer is “ceph config” or something
like that. 

Thanks.

Regards

-- 
Albert SHIH 🦫 🐸
Observatoire de Paris
France
Heure locale/Local time:
jeu. 23 nov. 2023 15:37:04 CET
___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: cephadm vs ceph.conf

2023-11-23 Thread Michel Jouvin

Hi Albert,

You should never edit any file in the containers, cephadm takes care of 
it. Most of the parameters described in the doc you mentioned are better 
managed with "ceph config" command in the Ceph configuration database. 
If you want to run the ceph commnand on a Ceph machine outside a 
container, you can add the label _admin to your host in "ceph orch host" 
so that cephadm takes care of maintaining your /etc/ceph.conf (outside 
the container).


Cheers,

Michel

Le 23/11/2023 à 15:28, Albert Shih a écrit :

Hi everyone.

Still me with my newbie questionsorry.

I'm using cephadm to deploy my ceph cluster, but when I search in the
documentation «docs.ceph.com» I see in some place like

   https://docs.ceph.com/en/latest/rados/configuration/pool-pg-config-ref/

to change something in the /etc/ceph/ceph.conf.

How that is taking account by cephadm ? I see in the docker container they
have a overlay for /etc/ceph/ceph.conf.

Should I modify the ceph.conf (vi/emacs) directly ?
Should I modify the ceph.conf (vi/emacs) directly and restart something ?
Should I use some cephadm shell and don't manually touche ceph.conf ?

And what about the future ?

Regards.

___
ceph-users mailing list -- ceph-users@ceph.io
To unsubscribe send an email to ceph-users-le...@ceph.io


[ceph-users] Re: cephadm vs ceph.conf

2023-11-23 Thread Anthony D'Atri


> to change something in the /etc/ceph/ceph.conf.

Central config was introduced with Mimic.  Since both central config and 
ceph.conf work and are supported, explicitly mentioning both in the docs every 
time is a lot of work (and awkward).  One day we’ll sort out an effective means 
to generalize throughout the docs.

> How that is taking account by cephadm ? I see in the docker container they
> have a overlay for /etc/ceph/ceph.conf. 
> 
> Should I modify the ceph.conf (vi/emacs) directly ?

vi is never the answer.

> Should I modify the ceph.conf (vi/emacs) directly and restart something ? 
> Should I use some cephadm shell and don't manually touche ceph.conf ?

Depending on the option in question, you may be able to just use “ceph config” 
to set it centrally.  When asking questions here, it helps a LOT if you share 
the Ceph release you’re running and more context.


> And what about the future ?

We are all interested in the future, for that is where you and I are going to 
spend the rest of our lives.

> 
> Regards. 
> -- 
> Albert SHIH 🦫 🐸
> France
> Heure locale/Local time:
> jeu. 23 nov. 2023 15:21:47 CET
> ___
> 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