143 lines
3.9 KiB
HTML
143 lines
3.9 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of SYSTEMD-PSTORE.SERVICE</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>SYSTEMD-PSTORE.SERVICE</H1>
|
|
Section: systemd-pstore.service (8)<BR>Updated: <BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
systemd-pstore.service, systemd-pstore - A service to archive contents of pstore
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
|
|
/lib/systemd/systemd-pstore
|
|
<P>
|
|
|
|
systemd-pstore.service
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
systemd-pstore.service
|
|
is a system service that archives the contents of the Linux persistent storage filesystem, pstore, to other storage, thus preserving the existing information contained in the pstore, and clearing pstore storage for future error events.
|
|
<P>
|
|
|
|
Linux provides a persistent storage file system, pstore, that can store error records when the kernel dies (or reboots or powers-off). These records in turn can be referenced to debug kernel problems (currently the kernel stuffs the tail of the dmesg, which also contains a stack backtrace, into pstore).
|
|
<P>
|
|
|
|
The pstore file system supports a variety of backends that map onto persistent storage, such as the ACPI ERST and UEFI variables. The pstore backends typically offer a relatively small amount of persistent storage, e.g. 64KiB, which can quickly fill up and thus prevent subsequent kernel crashes from recording errors. Thus there is a need to monitor and extract the pstore contents so that future kernel problems can also record information in the pstore.
|
|
<P>
|
|
|
|
The pstore service is independent of the kdump service. In cloud environments specifically, host and guest filesystems are on remote filesystems (eg. iSCSI or NFS), thus kdump relies (implicitly and/or explicitly) upon proper operation of networking software *and* hardware *and* infrastructure. Thus it may not be possible to capture a kernel coredump to a file since writes over the network may not be possible.
|
|
<P>
|
|
|
|
The pstore backend, on the other hand, is completely local and provides a path to store error records which will survive a reboot and aid in post-mortem debugging.
|
|
<P>
|
|
|
|
The
|
|
<B>systemd-pstore</B>
|
|
executable does the actual work. Upon starting, the
|
|
pstore.conf
|
|
file is read and the
|
|
/sys/fs/pstore
|
|
directory contents are processed according to the options. Pstore files are written to the journal, and optionally saved into
|
|
/var/lib/systemd/pstore.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>CONFIGURATION</H2>
|
|
|
|
<P>
|
|
|
|
The behavior of
|
|
<B>systemd-pstore</B>
|
|
is configured through the configuration file
|
|
/etc/systemd/pstore.conf
|
|
and corresponding snippets
|
|
/etc/systemd/pstore.conf.d/*.conf, see
|
|
<B><A HREF="/cgi-bin/man/man2html?5+pstore.conf">pstore.conf</A></B>(5).
|
|
<A NAME="lbAF"> </A>
|
|
<H3>Disabling pstore processing</H3>
|
|
|
|
<P>
|
|
|
|
To disable pstore processing by
|
|
<B>systemd-pstore</B>, set
|
|
<P>
|
|
<DL COMPACT><DT id="1"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
Storage=none
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
in
|
|
<B><A HREF="/cgi-bin/man/man2html?5+pstore.conf">pstore.conf</A></B>(5).
|
|
<A NAME="lbAG"> </A>
|
|
<H2>USAGE</H2>
|
|
|
|
<P>
|
|
|
|
Data stored in the journal can be viewed with
|
|
<B><A HREF="/cgi-bin/man/man2html?1+journalctl">journalctl</A></B>(1)
|
|
as usual.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+pstore.conf">pstore.conf</A></B>(5)
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="2"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="3"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="4"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="5"><A HREF="#lbAE">CONFIGURATION</A><DD>
|
|
<DL>
|
|
<DT id="6"><A HREF="#lbAF">Disabling pstore processing</A><DD>
|
|
</DL>
|
|
<DT id="7"><A HREF="#lbAG">USAGE</A><DD>
|
|
<DT id="8"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:16 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|