×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Troubleshooting

Fixing a bad file system that failes fsck by MoshiachNow
Posted: 7 Feb 02

Fixing a bad filesystem with fsdb.

Sometimes fsck will consistently fail on severall bad inodes .

The technics to fix it is :

1.    I find the problematic dir/file inode by "ls -lai" - assume it's "16"
2.    Unmount the <fs>
3.    fsdb /dev/<fs>

File System:                           /dev/slv1.6

File System Size:                           3932160  (512 byte blocks)
Disk Map Size:                                   36  (4K blocks)
Inode Map Size:                                  36  (4K blocks)
Fragment Size:                                 4096  (bytes)
Allocation Group Size:                         2048  (fragments)
Inodes per Allocation Group:                   2048
Total Inodes:                                491520
Total Fragments:                             491520

4.       16i  (this is to access the bad inode)

16i
i#:     16  md: d---rwxrwx---  ln:    3  uid:    0  gid:    0
szh:        0  szl:      512  (actual size:      512)
a0: 0x8f        a1: 0x00        a2: 0x00        a3: 0x00        
a4: 0x00        a5: 0x00        a6: 0x00        a7: 0x00        
at: Thu May 24 08:12:10 2001
mt: Wed Feb 21 09:06:10 2001
ct: Wed Feb 21 09:06:10 2001

displays the directory params.
Now zero the link and length values:

5. ln=0
6. szl =0

this effectively zeroes the params of this directory.

7.  quit and fsck,answering "NO" to all suggestions to reconnect,"YES" to suggestions to clear/remove.


Back to IBM: AIX FAQ Index
Back to IBM: AIX Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close