Bug 2158832

Summary: /etc/systemd/pstore.conf exists but "unit systemd-pstore.service could not be found"
Product: Red Hat Enterprise Linux 8 Reporter: Mark Langsdorf <mlangsdo>
Component: systemdAssignee: David Tardon <dtardon>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.7CC: dmoessne, dtardon, fkrska, jamacku, systemd-maint-list, vagrawal, zpytela
Target Milestone: rcKeywords: FeatureBackport, Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-239-73.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2186176 2186177 (view as bug list) Environment:
Last Closed: 2023-05-16 09:07:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2186176, 2186177    

Description Mark Langsdorf 2023-01-06 18:04:29 UTC
Description of problem:
systemd provides the systemd-pstore service to manage oopses, dmesgs, and UEFI/ACPI messages written to ACPI/UEFI persistent storage area. Since that storage area is very small (10s of KiB), systemd-pstore is supposed to run on a successful boot, copy any data in the pstore to larger and longer term storage such as a disk drive, and clear the pstore for future use.

On RHEL-8, although there is an /etc/systemd/pstore.conf, the service does not seem to exist:
$ sudo systemctl status systemd-pstore
Unit systemd-pstore.service could not be found.

On Fedora 35, the services exists but is normally inactive:
$ sudo systemctl status systemd-pstore
○ systemd-pstore.service - Platform Persistent Storage Archival
     Loaded: loaded (/usr/lib/systemd/system/systemd-pstore.service; enabled; vendor preset: enabled)
     Active: inactive (dead)
  Condition: start condition failed at Fri 2023-01-06 04:43:07 CST; 7h ago
       Docs: man:systemd-pstore(8)

Jan 06 04:43:07 redhatnow systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.

Version-Release number of selected component (if applicable):
systemd-239.68.el8

How reproducible:
$ sudo systemctl status systemd-pstore

Actual results:
Unit systemd-pstore.service could not be found.

Expected results:
○ systemd-pstore.service - Platform Persistent Storage Archival
     Loaded: loaded (/usr/lib/systemd/system/systemd-pstore.service; enabled; vendor preset: enabled)

Comment 1 David Tardon 2023-01-09 09:25:36 UTC
> On RHEL-8, although there is an /etc/systemd/pstore.conf, the service does not seem to exist:
It doesn't. It was introduced in systemd 243. But it should be easy to backport.

Comment 4 Plumber Bot 2023-02-27 13:55:56 UTC
fix merged to github main branch -> https://github.com/redhat-plumbers/systemd-rhel8/pull/353

Comment 19 errata-xmlrpc 2023-05-16 09:07:33 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (systemd bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2985