rasdaemon: fix disk error log storm

This commit is contained in:
xujing 2021-05-15 18:24:31 +08:00
parent ddea14517d
commit 959a34bc6f
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 38b9c016f7c301435f9e7ba22678a664cca394a7 Mon Sep 17 00:00:00 2001
From: xujing <xujing99@huawei.com>
Date: Fri, 19 Mar 2021 18:32:08 +0800
Subject: [PATCH] rasdaemon: fix disk error log storm
reason: fix disk error log storm
---
misc/rasdaemon.service.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/misc/rasdaemon.service.in b/misc/rasdaemon.service.in
index e73a08a..04a0489 100644
--- a/misc/rasdaemon.service.in
+++ b/misc/rasdaemon.service.in
@@ -4,7 +4,7 @@ After=syslog.target
[Service]
EnvironmentFile=/etc/sysconfig/rasdaemon
-ExecStart=@sbindir@/rasdaemon -f -r
+ExecStart=@sbindir@/rasdaemon -f
ExecStartPost=@sbindir@/rasdaemon --enable
ExecStop=@sbindir@/rasdaemon --disable
Restart=on-abort
--
2.23.0

View File

@ -1,6 +1,6 @@
Name: rasdaemon
Version: 0.6.6
Release: 4
Release: 5
License: GPLv2
Summary: Utility to get Platform Reliability, Availability and Serviceability (RAS) reports via the Kernel tracing events
URL: https://github.com/mchehab/rasdaemon.git
@ -25,6 +25,7 @@ Patch3: bugfix-fix-fd-check.patch
Patch4: backport-0001-ras-page-isolation-do_page_offline-always-considers-.patch
Patch5: backport-0002-ras-page-isolation-page-which-is-PAGE_OFFLINE_FAILED.patch
Patch6: backport-rasdaemon-Fix-error-print.patch
Patch7: bugfix-fix-disk-error-log-storm.patch
%description
The rasdaemon program is a daemon which monitors the platform
@ -71,6 +72,12 @@ rm INSTALL %{buildroot}/usr/include/*.h
/usr/bin/systemctl enable rasdaemon.service >/dev/null 2>&1 || :
%changelog
* Sat May 15 2021 xujing<17826839720@163.com> - 0.6.6-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix disk error log storm
* Wed Apr 28 2021 Lv Ying <lvying6@huawei.com> - 0.6.6-4
- backport bugfix patches from community:
1. Fix error print handle_ras_events.