From ef0f78971d39ebbcd7be57eaaafe7c69e014bf0f Mon Sep 17 00:00:00 2001 From: oneoneonepig Date: Thu, 7 Nov 2019 13:01:53 +0800 Subject: [PATCH] Add chown ceph:ceph for /tmp/ceph.mon.keyring The keyring will be 600 by default with the owner of the current user who issues the command, which will make command "sudo -u ceph ceph-mon --mkfs" fail since the user "ceph" don't have access to the keyring file. Because of that, the mon data directory won't have keyring and when "sudo systemctl start ceph-mon" it will show error "unable to read magic from mon data" Signed-off-by: Jeffrey Chu --- doc/install/manual-deployment.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/install/manual-deployment.rst b/doc/install/manual-deployment.rst index b30bd143371a5..a42a80f83db56 100644 --- a/doc/install/manual-deployment.rst +++ b/doc/install/manual-deployment.rst @@ -174,6 +174,10 @@ The procedure is as follows: sudo ceph-authtool /tmp/ceph.mon.keyring --import-keyring /etc/ceph/ceph.client.admin.keyring sudo ceph-authtool /tmp/ceph.mon.keyring --import-keyring /var/lib/ceph/bootstrap-osd/ceph.keyring +#. Change the owner for ``ceph.mon.keyring``. :: + + sudo chown ceph:ceph /tmp/ceph.mon.keyring + #. Generate a monitor map using the hostname(s), host IP address(es) and the FSID. Save it as ``/tmp/monmap``:: -- 2.39.5