How to do it...

There are two ways to access the admin socket:

  1. Using the Ceph daemon-name:
        $ sudo ceph daemon {daemon-name} {option} 
  1. 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:

  1. List all the available admin socket commands for the OSD:
        # ceph daemon osd.0 help
  1. Similarly, list all the available socket commands for MON:
        # ceph daemon mon.ceph-node1 help
  1. Check the OSD configuration settings for osd.0:
        # ceph daemon osd.0 config show
  1. Check the MON configuration settings for mon.ceph-node1:
        # ceph daemon mon.ceph-node1 config show
The Ceph admin daemon allows you to change the daemon configuration settings at runtime. However, these changes are temporary. To permanently change the Ceph daemon configuration, update the Ceph configuration file.
  1. To get the current config value for osd, use the _recover_max_chunk parameter for the osd.0 daemon:
        # ceph daemon osd.0 config get osd_recovery_max_chunk
  1. To change the osd_recovery_max_chunk value for osd.0, execute the following command:
        # ceph daemon osd.0 config set osd_recovery_max_chunk 1000000 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset