Cr0t l33t
Joined: 27 Apr 2002 Posts: 945 Location: USA
|
Posted: Sun Jan 12, 2025 4:31 pm Post subject: setting up pstore |
|
|
I am trying to setup pstore, but I am not sure if I am doing this right.
> Parameter printk.always_kmsg_dump writes to pstore at kernel shutdown or reboot.
This should create a file on a regular reboot, but it does not create one.
Code: | #grep -i pstore .config
CONFIG_PSTORE=y
CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240
CONFIG_PSTORE_COMPRESS=y
CONFIG_PSTORE_CONSOLE=y
CONFIG_PSTORE_PMSG=y
CONFIG_PSTORE_RAM=y
CONFIG_PSTORE_ZONE=y
CONFIG_PSTORE_BLK=y
CONFIG_PSTORE_BLK_BLKDEV=""
CONFIG_PSTORE_BLK_KMSG_SIZE=128
CONFIG_PSTORE_BLK_MAX_REASON=2
CONFIG_PSTORE_BLK_PMSG_SIZE=128
CONFIG_PSTORE_BLK_CONSOLE_SIZE=128
|
Code: | # journalctl -k |grep -i 'erst\|pstore'
Jan 12 11:10:55 datastorm kernel: ACPI: ERST 0x000000007D3241EC 000270 (v01 DELLOE DELLOSE 00000001 DELL 00000001)
Jan 12 11:10:55 datastorm kernel: ACPI: Reserving ERST table memory at [mem 0x7d3241ec-0x7d32445b]
Jan 12 11:10:55 datastorm kernel: ERST: Error Record Serialization Table (ERST) support is initialized.
Jan 12 11:10:55 datastorm kernel: pstore: Using crash dump compression: deflate
Jan 12 11:10:55 datastorm kernel: pstore: Registered erst as persistent store backend
Jan 12 11:10:55 datastorm kernel: ERST: NVRAM ERST Log Address Range not implemented yet.
Jan 12 11:10:55 datastorm systemd[1]: Starting Load Kernel Module efi_pstore...
Jan 12 11:10:55 datastorm systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
Jan 12 11:10:55 datastorm systemd[1]: Finished Load Kernel Module efi_pstore. |
ERST: NVRAM ERST Log Address Range not implemented yet. --- this worries me
Code: | cat /sys/module/printk/parameters/always_kmsg_dump /sys/module/kernel/parameters/crash_kexec_post_notifiers
Y
Y
|
Code: | cat /etc/systemd/pstore.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file (or a copy of it placed in
# /etc/ if the original file is shipped in /usr/), or by creating "drop-ins" in
# the /etc/systemd/pstore.conf.d/ directory. The latter is generally
# recommended. Defaults can be restored by simply deleting the main
# configuration file and all drop-ins located in /etc/.
#
# Use 'systemd-analyze cat-config systemd/pstore.conf' to display the full config.
#
# See pstore.conf(5) for details.
[PStore]
#Storage=external
#Unlink=yes |
_________________ cya |
|