Ceph components are daemons and Unix-domain sockets. Ceph allows us to use these sockets to query its daemons. The Ceph admin socket is a powerful tool to get and set the Ceph daemon configurations at runtime. With this tool, changing the daemon configuration values becomes a lot easier, rather than changing the Ceph configuration file, which requires the daemon to restart.
To do this, you should log in to the node running the Ceph daemons and execute the ceph daemon
commands.
There are two ways to access the admin socket:
$ sudo ceph daemon {daemon-name} {option}
/var/run/ceph
:$ sudo ceph daemon {absolute path to socket file} {option}
We will now try to access the Ceph daemon using the admin socket:
# ceph daemon osd.0 help
# ceph daemon mon.ceph-node1 help
osd.0
:# ceph daemon osd.0 config show
mon.ceph-node1
:# ceph daemon mon.ceph-node1 config show
osd
, use the _recover_max_chunk
parameter for the osd.0
daemon:# ceph daemon osd.0 config get osd_recovery_max_chunk
osd_recovery_max_chunk
value for osd.0
, execute the following:# ceph daemon osd.0 config set osd_recovery_max_chunk 1000000
3.15.189.199