From: oneoneonepig Date: Thu, 7 Nov 2019 05:01:53 +0000 (+0800) Subject: Add chown ceph:ceph for /tmp/ceph.mon.keyring X-Git-Tag: v15.1.0~954^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F31452%2Fhead;p=ceph.git 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 --- diff --git a/doc/install/manual-deployment.rst b/doc/install/manual-deployment.rst index b30bd143371a..a42a80f83db5 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``::