mirror of
https://github.com/ceph/ceph
synced 2025-01-30 23:13:44 +00:00
doc: fill keyring with caps before passing it to ceph-monstore-tool
to make sure the recovered monitor store is ready for use. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
b4bd4004a8
commit
af8e211637
@ -430,8 +430,13 @@ information stored in OSDs.::
|
||||
rsync -avz user@host:$ms $ms
|
||||
done
|
||||
# rebuild the monitor store from the collected map, if the cluster does not
|
||||
# use cephx authentication, there is no need to pass the "--keyring" option.
|
||||
# i.e. use "ceph-monstore-tool /tmp/mon-store rebuild" instead
|
||||
# use cephx authentication, we can skip the following steps to update the
|
||||
# keyring with the caps, and there is no need to pass the "--keyring" option.
|
||||
# i.e. just use "ceph-monstore-tool /tmp/mon-store rebuild" instead
|
||||
ceph-authtool /path/to/admin.keyring -n mon. \
|
||||
--cap mon allow 'allow *'
|
||||
ceph-authtool /path/to/admin.keyring -n client.admin \
|
||||
--cap mon allow 'allow *' --cap osd 'allow *' --cap mds 'allow *'
|
||||
ceph-monstore-tool /tmp/mon-store rebuild -- --keyring /path/to/admin.keyring
|
||||
# backup corrupted store.db just in case
|
||||
mv /var/lib/ceph/mon/mon.0/store.db /var/lib/ceph/mon/mon.0/store.db.corrupted
|
||||
|
Loading…
Reference in New Issue
Block a user