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:
- Using the Ceph
daemon-name
:
$ sudo ceph daemon {daemon-name} {option}
- The default location is
/var/run/ceph
. Using the absolute path of the socket file:
$ sudo ceph daemon {absolute path to socket file} {option}
We will now try to access the Ceph daemon using the admin socket:
- List all the available admin socket commands for the OSD:
# ceph daemon osd.0 help
- Similarly, list all the available socket commands for MON:
# ceph...