]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/cephadm/administration: clarify log gathering 33627/head
authorNathan Cutler <ncutler@suse.com>
Fri, 28 Feb 2020 17:16:17 +0000 (18:16 +0100)
committerNathan Cutler <ncutler@suse.com>
Fri, 28 Feb 2020 17:16:17 +0000 (18:16 +0100)
This is an attempt to bring the current state of the documentation more
into line with the current state of the cephadm code.

However, when I try to grab logs from a daemon on a host other than the
one where the daemon is running, I get an empty log...

References: https://tracker.ceph.com/issues/44354
Signed-off-by: Nathan Cutler <ncutler@suse.com>
doc/cephadm/administration.rst

index 30340d0fbb6ecb38fa064b734248011ddff94f89..855f2df940267a8d97b0b5e61b651bde675d2ab8 100644 (file)
@@ -202,10 +202,17 @@ To read the log file of one specific daemon, run::
 
     cephadm logs --name <name-of-daemon>
 
+Note: this only works when run on the same host where the daemon is running. To
+get logs of a daemon running on a different host, give the ``--fsid`` option::
+
+    cephadm logs --fsid <fsid> --name <name-of-daemon>
+
+Where the ``<fsid>`` corresponds to the cluster id printed by ``ceph status``.
+
 To fetch all log files of all daemons on a given host, run::
 
     for name in $(cephadm ls | jq -r '.[].name') ; do
-      cephadm logs --name "$name" > $name;
+      cephadm logs --fsid <fsid> --name "$name" > $name;
     done
 
 Collecting systemd status