From: nathan Date: Thu, 23 Apr 2009 20:54:00 +0000 (+0000) Subject: b=19047 X-Git-Tag: v1_9_170~25 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=7c56e3c31e230be251a9aaffce4fc0d2d31aa679 b=19047 i=adilger i=nathan add llog_reader man page --- diff --git a/lustre/doc/Makefile.am b/lustre/doc/Makefile.am index 7481540..0a79a29 100644 --- a/lustre/doc/Makefile.am +++ b/lustre/doc/Makefile.am @@ -47,8 +47,9 @@ TEXEXPAND = texexpand SUFFIXES = .lin .lyx .pdf .ps .sgml .html .txt .tex .fig .eps .dvi MANFILES = lustre.7 lfs.1 mount.lustre.8 mkfs.lustre.8 tunefs.lustre.8 lctl.8 \ - llverdev.8 llbackup.8 llapi_quotactl.3 llobdstat.8 llstat.8 plot-llstat.8 \ - l_getgroups.8 lst.8 routerstat.8 ll_recover_lost_found_objs.8 + llverdev.8 llbackup.8 llapi_quotactl.3 llobdstat.8 llstat.8 \ + plot-llstat.8 l_getgroups.8 lst.8 routerstat.8 \ + ll_recover_lost_found_objs.8 llog_reader.8 if UTILS man_MANS = $(MANFILES) diff --git a/lustre/doc/llog_reader.8 b/lustre/doc/llog_reader.8 new file mode 100644 index 0000000..b77542c --- /dev/null +++ b/lustre/doc/llog_reader.8 @@ -0,0 +1,40 @@ +.TH llog_reader 8 "2009 Apr 02" Lustre "System management commands" +.SH NAME +llog_reader \- lustre on-disk log parsing utility +.SH SYNOPSIS +.B "llog_reader filename" +.br +.SH DESCRIPTION +.B llog_reader +parses the binary format of Lustre's on-disk configuration logs. +It can only read the logs. Use +.B tunefs.lustre +to write to them. +.LP +To examine a log file on a stopped Lustre server, first mount its +backing file system as ldiskfs, then use +.B llog_reader +to dump the log file's contents, e.g. +.IP +.nf +mount -t ldiskfs /dev/sda /mnt/mgs +llog_reader /mnt/mgs/CONFIGS/tfs-client +.fi +.LP +To examine the same log file on a running Lustre server, use the +ldiskfs-enabled debugfs utility (called +.B debug.ldiskfs +on some distros) to extract the file, e.g. +.IP +.nf +debugfs -c -R 'dump CONFIGS/tfs-client /tmp/tfs-client' /dev/sda +llog_reader /tmp/tfs-client +.fi +.SH CAVEATS +Although they are stored in the CONFIGS directory, \fImountdata\fR +files do not use the config log format and will confuse \fBllog_reader\fR. +.SH SEE ALSO +Lustre Operations Manual, Section 21.1, \fITroubleshooting Lustre\fR. +.br +.BR lustre (7), +.BR tunefs.lustre (8)