From fdbb2634fb74a10bf051e3e3bd341dfeaf3c0ce5 Mon Sep 17 00:00:00 2001 From: Alwin Antreich Date: Tue, 12 Feb 2019 10:44:50 +0100 Subject: [PATCH] Fix #2015: add how to get a auth secret for cephfs Signed-off-by: Alwin Antreich --- pve-storage-cephfs.adoc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pve-storage-cephfs.adoc b/pve-storage-cephfs.adoc index 2613d64..96f4991 100644 --- a/pve-storage-cephfs.adoc +++ b/pve-storage-cephfs.adoc @@ -71,13 +71,20 @@ Create the directory `/etc/pve/priv/ceph` with Then copy the secret - scp :/etc/ceph/cephfs.secret /etc/pve/priv/ceph/.secret + scp cephfs.secret :/etc/pve/priv/ceph/.secret The secret must be named to match your ``. Copying the secret generally requires root privileges. The file must only contain the secret key itself, opposed to the `rbd` backend which also contains a `[client.userid]` section. +A secret can be received from the ceph cluster (as ceph admin) by issuing the +following command. Replace the `userid` with the actual client ID configured to +access the cluster. For further ceph user managment see the Ceph docs +footnote:[Ceph user management http://docs.ceph.com/docs/luminous/rados/operations/user-management/]. + + ceph auth get-key client.userid > cephfs.secret + If Ceph is installed locally on the PVE cluster, i.e., setup with `pveceph`, this is done automatically.