Ceph-mons: List all configuration settings

Really helpful to use a single command to list all the configuration flags on ceph monitor node.

Use the below command to list all the ceph monitor’s configuration
#  ceph daemon /var/run/ceph/ceph-mon.*.asok config show | more

The output would be long,  so use ‘more’ or grep for a specific value in case you know what you are looking for.

NOTE:  Admin socket for the monitor will be in the path /var/run/ceph/ceph-mon.<hostname-s>.asok  by default.

Use the below command to get specific  (here flag: rgw_enable_usage_log ) the ceph monitor’s configuration
#  ceph daemon /var/run/ceph/ceph-mon.*.asok config get rgw_enable_usage_log
Use the below command to set specific  ceph monitor’s configuration
#  ceph daemon /var/run/ceph/ceph-mon.*.asok config set rgw_enalbe_usage_log true
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s