AIX Filesystem fsck Check and Repair

Do not use -y with fsck initially as it will delete files; you can first run -vn

fsck -vn

fsck -y

fsck -p

fsck failure, superblock corruption

1. Back up the primary [superblock]

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

2. Restore backup to primary

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

Rollback

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

Manually fixing dirty JFS2 filesystems

Reference link (kristijan.org)

fsdb /fs_name

This fsdb is interactive

Enter and select superblock

Then set the dirtry location to 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.
10 views Updated 2026-11-07

More in this groupSystem Configuration & Administration

View all 2 in this group

Can't find an answer?

Upload a log for AI diagnosis, or ask the AI assistant directly in the console.