Setting-up keyring on client machines
Most Ceph clusters are run with the authentication enabled, and the client needs the keys in order to communicate with cluster machines. You can generate the keyring which can give details to clients to reach the Ceph monitors.
Prerequisites
-
A running IBM Storage Ceph cluster.
-
Root access to the nodes.
Procedure
-
On the node where you want to set up the keyring, create a directory
cephin the/etcfolder:Example
[root@host01 ~]# mkdir /etc/ceph/ -
Navigate to
/etc/cephdirectory in thecephdirectory:Example
[root@host01 ~]# cd /etc/ceph/ -
Generate the keyring for the client:
Syntax
ceph auth get-or-create client.CLIENT_NAME -o /etc/ceph/NAME_OF_THE_FILEExample
[root@host01 ceph]# ceph auth get-or-create client.fs -o /etc/ceph/ceph.keyring -
Verify the output in the
ceph.keyringfile:Example
[root@host01 ceph]# cat ceph.keyring [client.fs] key = AQAvoH5gkUCsExAATz3xCBLd4n6B6jRv+Z7CVQ==The resulting output should be put into a keyring file, for example
/etc/ceph/ceph.keyring.