All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: How to storage SEL in firmware chip
       [not found] <4e1959db.ba35.16ded5385b2.Coremail.dzg0528@163.com>
@ 2019-10-21 23:09 ` Bills, Jason M
  2019-10-22  9:47   ` 杜正高
  0 siblings, 1 reply; 3+ messages in thread
From: Bills, Jason M @ 2019-10-21 23:09 UTC (permalink / raw)
  To: 杜正高, openbmc



On 10/21/2019 12:58 AM, 杜正高 wrote:
> Hi Jason,
> 
> I am new learner of openbmc,Can I ask you some questions ?
> While I scan openbmc in github,I found you add SEL(base on journal) feature.
> and I find a question,I reset BMC,the log can not store,
> I want to know,Can you storage the SEL in frimware chip ?

Hi dzg,

I'm adding the OpenBMC mailing list in case others have similar questions.

I ran into some issues when attempting to persist the journal to flash. 
You can see the details in my last update here: 
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-host-ipmid/+/12951.

To persist the SEL to flash, we use rsyslog to get SEL entries from the 
journal when they are logged and add them to a syslog file that is 
stored in the persistent /var/log folder.

Here is our rsyslog configuration: 
https://github.com/Intel-BMC/openbmc/blob/intel/meta-openbmc-mods/meta-common/recipes-extended/rsyslog/rsyslog/rsyslog.conf.

Thanks,
-Jason

> 
> 
> thank you very much!
> dzg
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re:Re: How to storage SEL in firmware chip
  2019-10-21 23:09 ` How to storage SEL in firmware chip Bills, Jason M
@ 2019-10-22  9:47   ` 杜正高
  2019-10-22 16:23     ` Bills, Jason M
  0 siblings, 1 reply; 3+ messages in thread
From: 杜正高 @ 2019-10-22  9:47 UTC (permalink / raw)
  To: Bills, Jason M; +Cc: openbmc


[-- Attachment #1.1: Type: text/plain, Size: 716 bytes --]

Hi Jason,


1,I merge your code #12951 to my openbmc project,and modify the rsyslog.conf follow yours ,
find the ipmi_sel will genated in the /var/log/,but it still can not storage sel while bmc reboot.
and ipmitool sel list show the log is cleared.and record new log after bmc reboot.



2,While I "mkdir log " in /run/initramfs/rw/cow/var/, the SEL will storage the ipmi_sel,but sel list still show the new log and have no old log.
Are you know the where is user the "/run/initramfs/rw/cow/var/log" to storage log ? and how to make the path be default?


Hope the information will help you!


thank you



dzg















在 2019-10-22 07:09:46,"Bills, Jason M" <jason.m.bills@linux.intel.com> 写道:

/var/log

[-- Attachment #1.2: Type: text/html, Size: 1354 bytes --]

[-- Attachment #2: 图片.png --]
[-- Type: image/png, Size: 31146 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to storage SEL in firmware chip
  2019-10-22  9:47   ` 杜正高
@ 2019-10-22 16:23     ` Bills, Jason M
  0 siblings, 0 replies; 3+ messages in thread
From: Bills, Jason M @ 2019-10-22 16:23 UTC (permalink / raw)
  To: 杜正高; +Cc: openbmc



On 10/22/2019 2:47 AM, 杜正高 wrote:
> Hi Jason,
> 
> 1,I merge your code #12951 to my openbmc project,and modify the 
> rsyslog.conf follow yours ,
> find the ipmi_sel will genated in the /var/log/,but it still can not 
> storage sel while bmc reboot.
> and ipmitool sel list show the log is cleared.and record new log after 
> bmc reboot.
You need to make /var/log persist to your non-volatile storage.  For our 
platforms, we mount /var/log as an overlay on our flash filesystem 
during init: 
https://github.com/Intel-BMC/openbmc/blob/intel/meta-openbmc-mods/meta-common/recipes-phosphor/preinit-mounts/preinit-mounts/init.

> 
> 2,While I "mkdir log " in /run/initramfs/rw/cow/var/, the SEL will 
> storage the ipmi_sel,but sel list still show the new log and have no old 
> log.
> Are you know the where is user the "/run/initramfs/rw/cow/var/log" to 
> storage log ? and how to make the path be default?
The file is set in rsyslog.conf as /var/log.  If you didn't change that 
location, then /var/log on your system could be symlinked or possibly 
overlayed onto /run/initramfs/rw/cow/var/log.

> 
> Hope the information will help you!
> 
> thank you
> 
> dzg

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-10-22 16:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4e1959db.ba35.16ded5385b2.Coremail.dzg0528@163.com>
2019-10-21 23:09 ` How to storage SEL in firmware chip Bills, Jason M
2019-10-22  9:47   ` 杜正高
2019-10-22 16:23     ` Bills, Jason M

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.