Skip to content

Instantly share code, notes, and snippets.

@jakoberpf
Last active January 19, 2022 22:00
Show Gist options
  • Save jakoberpf/622944a0d587e2c4b31f1e02440b9b57 to your computer and use it in GitHub Desktop.
Save jakoberpf/622944a0d587e2c4b31f1e02440b9b57 to your computer and use it in GitHub Desktop.
Cheatsheet for setting up a new ceph client

[manual] ceph client setup

Cheatsheet for setting up a new ceph client

Gather key and config

From any autheticated ceph host/client.

root@ceph:~$ ceph auth get-or-create client.fs
[client.fs]
        key = lexugt/DKGcqH5xDJT11QTNglh01UEYiQy5QarEuHng=
root@ceph:~$ ceph config generate-minimal-conf
# minimal ceph.conf for 6f64798f-d20c-42f1-b9ae-5c5c99c1d549
[global]
        fsid = 6f64798f-d20c-42f1-b9ae-5c5c99c1d549
        mon_host = [v2:192.168.1.5:3300/0,v1:192.168.1.5:6789/0]

Set files ion client

Set on the new ceph client

tee -a /etc/ceph/client.keyring <<EOF
[client.fs]
        key = lexugt/DKGcqH5xDJT11QTNglh01UEYiQy5QarEuHng=
EOF
tee -a /etc/ceph/ceph.conf <<EOF
# minimal ceph.conf for 6f64798f-d20c-42f1-b9ae-5c5c99c1d549
[global]
        fsid = 6f64798f-d20c-42f1-b9ae-5c5c99c1d549
        mon_host = [v2:192.168.1.5:3300/0,v1:192.168.1.5:6789/0]
EOF

Sources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment