Bug 6562 - pstore文件系统无法正常使用
Summary: pstore文件系统无法正常使用
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: fs (show other bugs) fs
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yixingrui
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-12 18:06 UTC by yugart
Modified: 2023-09-13 15:18 UTC (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yugart uniontech_group 2023-09-12 18:06:25 UTC
Description of problem:
自从引入这个提交之后“89dc5218d30b anolis: pstore: add multibackends support“,在pstore配置默认使能的情况下无法使用pstore文件系统

Version-Release number of selected component (if applicable):


How reproducible:
必现

Steps to Reproduce:
1.make ARCH=x86_64 anolis_defconfig
2.make -j$(nproc) && make modules_install && make install
3.新内核启动
4.cat /proc/filesystems |grep pstore 

Actual results:
查询不到

Expected results:
默认使能的情况下可以查询到该文件系统

Additional info:
Comment 1 xiangzao alibaba_cloud_group 2023-09-12 18:58:22 UTC
你好,014版本之后需要通过cmdline使能pstore后端方可查询到pstore文件系统

# cat /proc/filesystems | grep pstore
nodev	pstore
# uname -r
5.10.134-15.an8.x86_64
Comment 2 yugart uniontech_group 2023-09-12 20:30:34 UTC
(In reply to xiangzao from comment #1)
> 你好,014版本之后需要通过cmdline使能pstore后端方可查询到pstore文件系统
> 
> # cat /proc/filesystems | grep pstore
> nodev	pstore
> # uname -r
> 5.10.134-15.an8.x86_64

未配置后端pstore文件系统就不可用这与上游社区的机制有差异,是否合理?
Comment 3 yixingrui alibaba_cloud_group 2023-09-13 10:43:39 UTC
(In reply to yugart from comment #2)
> (In reply to xiangzao from comment #1)
> > 你好,014版本之后需要通过cmdline使能pstore后端方可查询到pstore文件系统
> > 
> > # cat /proc/filesystems | grep pstore
> > nodev	pstore
> > # uname -r
> > 5.10.134-15.an8.x86_64
> 
> 未配置后端pstore文件系统就不可用这与上游社区的机制有差异,是否合理?

pstore文件系统的作用在于,将后端数据内容保存到pstore文件系统目录下给用户展示。如果不配置后端,那么空有文件系统没有任何意义,并且会对用户造成使能了pstore后端的误解。

你可以尝试配置一种后端,比如ramoops,在cmdline中添加类似的参数“ramoops.mem_address=0xb2000000 ramoops.mem_size=0x40000 ramoops.console_size=0x10000 ramoops.tty_size=0x20000 ramoops.ecc=0 ramoops.dump_oops=0”,在机器重启后,可以在/proc/filesystems 查看到pstore的同时,在/proc/fs下会生成pstore目录并且有ramoops的保存结果。
Comment 4 yugart uniontech_group 2023-09-13 11:24:16 UTC
(In reply to yixingrui from comment #3)
> (In reply to yugart from comment #2)
> > (In reply to xiangzao from comment #1)
> > > 你好,014版本之后需要通过cmdline使能pstore后端方可查询到pstore文件系统
> > > 
> > > # cat /proc/filesystems | grep pstore
> > > nodev	pstore
> > > # uname -r
> > > 5.10.134-15.an8.x86_64
> > 
> > 未配置后端pstore文件系统就不可用这与上游社区的机制有差异,是否合理?
> 
> pstore文件系统的作用在于,将后端数据内容保存到pstore文件系统目录下给用户展示。
> 如果不配置后端,那么空有文件系统没有任何意义,并且会对用户造成使能了pstore后端的误解。
> 
> 你可以尝试配置一种后端,比如ramoops,在cmdline中添加类似的参数“ramoops.mem_address=0xb2000000
> ramoops.mem_size=0x40000 ramoops.console_size=0x10000
> ramoops.tty_size=0x20000 ramoops.ecc=0
> ramoops.dump_oops=0”,在机器重启后,可以在/proc/filesystems
> 查看到pstore的同时,在/proc/fs下会生成pstore目录并且有ramoops的保存结果。

好的,了解了,谢谢
Comment 5 苟浩 uniontech_group 2023-09-13 15:18:12 UTC
(In reply to yixingrui from comment #3)
> pstore文件系统的作用在于,将后端数据内容保存到pstore文件系统目录下给用户展示。
> 如果不配置后端,那么空有文件系统没有任何意义,并且会对用户造成使能了pstore后端的误解。
> 
> 你可以尝试配置一种后端,比如ramoops,在cmdline中添加类似的参数“ramoops.mem_address=0xb2000000
> ramoops.mem_size=0x40000 ramoops.console_size=0x10000
> ramoops.tty_size=0x20000 ramoops.ecc=0
> ramoops.dump_oops=0”,在机器重启后,可以在/proc/filesystems
> 查看到pstore的同时,在/proc/fs下会生成pstore目录并且有ramoops的保存结果。

这好像不太合理,不论是否支持单端还是多端与注册文件系统本身是没有关系的。关键这么一改就和其它内核行为不一样了。

anolis510现在实现是psback这个列表没初始化,就不让注册pstorefs,这2者之间好像不是必须的。就像以前的psinfo没有初始化,但是也不会影响registerfs。