AIX 文件系统 fsck 检查与修复

fsck 一开始不要-y 会删掉文件,可以先-vn

fsck -vn

fsck -y

fsck -p

fsck 失败、超级块故障

1.备份首要

dd count=1 bs=4k skip=8  if=/dev/LVName of=/tmp/super.bak

2.恢复备份到首要

dd count=1 bs=4k skip=15 seek=8 if=/dev/LVName of=/dev/LVName

回退

dd count=1 bs=4k seek=8  if=/tmp/super.bak of=/dev/LVName

Manually fixing dirty JFS2 filesystems

参考链接(kristijan.org)

fsdb /fs_name

这个fsdb是个交互的

进去选superblock

然后把dirtry那个地设置成0x00

display_super: [m]odify, [s]napshot info or e[x]it: m

Please enter: field-number value > 12 0x0

Line 1 – Invokes fsdb on the /test filesystem.

Line 9 – Shows the superblock.

Line 26 – Show field number [12] s_state is marked as FM_DIRTY, represented by the value 0x2.

Line 38 – Puts fsdb into modify mode.

Line 39 – Changes field number [12] s_state to FM_CLEAN by changing the value to 0x0.
1 次浏览 更新于 2026-11-04

同组文章系统配置与管理

查看本组全部 13 篇

没有找到想要的答案?

上传日志让 AI 帮你诊断,或者在控制台里直接向 AI 提问。