]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add chown ceph:ceph for /tmp/ceph.mon.keyring 31452/head
authoroneoneonepig <peihuachu1112@gmail.com>
Thu, 7 Nov 2019 05:01:53 +0000 (13:01 +0800)
committerJeffrey Chu <peihuachu1112@gmail.com>
Mon, 11 Nov 2019 04:50:49 +0000 (04:50 +0000)
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 <peihuachu1112@gmail.com>
doc/install/manual-deployment.rst

index b30bd143371a55aa3f6134335b978a1175fff2c5..a42a80f83db569f7bffcde70a853c4c1c55da3b3 100644 (file)
@@ -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``::