How to storage SEL in firmware chip
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · 杜正高
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
Quoted 6 lines
thank you very much!
dzg
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" <[email protected]> 写道:
/var/log
Quoted 5 lines · 杜正高
Hi Jason,
1,I merge your code #12951 to my openbmc project,and modify the rsyslog.conf follow yours , find the
ipmi_selwill genated in the/var/log/,butit 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.
Quoted 3 lines
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.
Quoted 6 lines
Hope the information will help you!
thank you
dzg