From 2c2af474b2462a0e55505f6c22536bc1cee6cf3b Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 24 Feb 2020 09:03:54 -0600 Subject: [PATCH] doc/mgr/cephadm: document how to see the logs Signed-off-by: Sage Weil --- doc/cephadm/index.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/doc/cephadm/index.rst b/doc/cephadm/index.rst index fdd07b3764920..96ebdc9d05ca0 100644 --- a/doc/cephadm/index.rst +++ b/doc/cephadm/index.rst @@ -104,6 +104,28 @@ administrator key in a global location:: [any node] $ sudo install -m 0644 ceph.conf /etc/ceph/ceph.conf [any node] $ sudo install -m 0600 ceph.keyring /etc/ceph/ceph.keyring +Watching cephadm log messages +============================= + +Cephadm logs to the ``cephadm`` cluster log channel, which means you can monitor progress in realtime with:: + + ceph -W cephadm + +By default it will show info-level events and above. To see +debug-level messages too,:: + + ceph config set mgr/cephadm/log_to_cluster_level debug + ceph -W cephadm --watch-debug + +Be careful: the debug messagse are very verbose! + +You can see recent events with:: + + ceph log last cephadm + +These events are also logged to the ``ceph.cephadm.log`` file on +monitor hosts and/or to the monitor-daemon stderr. + Adding hosts to the cluster =========================== -- 2.39.5