Dave,

Thanks for the feedback.  Unfortunately that didn't solve my problem.

Here's specifics of my situation:

smartctl is reporting bad sectors on partition /dev/sde1, so I wanted to
find what files are affected.

I used dd to read a series of sectors bracketing the sector reported by
smartctl to /dev/null while reporting sector numbers.  I took note of the
first sector to report read errors, 1084296736.  Then I calculated the JFS
block number as ( SectorNum - PartitionStartSector ) * 512 / 4096.  The
result I got was ( 1084296736 - 63 ) * 512 / 4096 = 135537084.

Following are the results of my jfs_debugfs session for this JFS block:
# jfs_debugfs /dev/sde1
jfs_debugfs version 1.1.12, 24-Aug-2007

Aggregate Block Size: 4096

> d 135537084 0 i
Block: 135537084     Real Address 0x81421bc000
[1] di_inostamp:        0x1c742f61      [19] di_mtime.tv_nsec:  0xc0749d49
[2] di_fileset:         1243045541              [20] di_otime.tv_sec:
0xdc1f418d
[3] di_number:          -1635135392             [21] di_otime.tv_nsec:
0x1f603111
[4] di_gen:             -766206507              [22] di_acl.flag:       0x66
[5] di_ixpxd.len:       3235549         [23] di_acl.rsrvd:      Not
Displayed
[6] di_ixpxd.addr1:     0x54            [24] di_acl.size:       0x40d30d80
[7] di_ixpxd.addr2:     0x06010000      [25] di_acl.len:        5581489
     di_ixpxd.address:  360877981696            [26] di_acl.addr1:      0x62
[8] di_size:    0xed13ca900322260a      [27] di_acl.addr2:      0xd347078f
[9] di_nblocks: 0xd746af90069cd9ed           di_acl.address:    424451442575
[10] di_nlink:          -1245156732             [28] di_ea.flag:        0x0b
[11] di_uid:            1070598493              [29] di_ea.rsrvd:       Not
Displayed
[12] di_gid:            552302989               [30] di_ea.size:
0x941bcb25
[13] di_mode:           0x3882aed2      [31] di_ea.len:         10209947
                0127322       l-wu      [32] di_ea.addr1:       0xb3
[14] di_atime.tv_sec:   0x69a9690b      [33] di_ea.addr2:       0x7456872e
[15] di_atime.tv_nsec:  0x2d9b4085           di_ea.address:     770750973742
[16] di_ctime.tv_sec:   0xdd1dd831      [34] di_next_index:     -2110134214
[17] di_ctime.tv_nsec:  0x1562ad04      [35] di_acltype:        0xd7477518
[18] di_mtime.tv_sec:   0x1160055d
- hit Enter to continue, e[x]it -
> i 1635135392
find_iag:  IAG 399202 not found!
inode: error reading inode

> ia 1635135392
find_iag:  IAG 1635135392 not found!
iag: error reading iag

> d 135537084 0 I
Block: 135537084     Real Address 0x81421bc000
[1] agstart:            5338839946511003489             [12]
extsmap[0]:        20eb798d
[2] iagnum:             -1635135392             [13] extsmap[1]:
3882aed2
[3] inofreefwd:         -766206507              [14] extsmap[2]:
69a9690b
[4] inofreeback:        1412521693              [15] extsmap[3]:
2d9b4085
[5] extfreefwd:         100728832               [16] nfreeinos:
-585246671
[6] extfreeback:        52569610                [17] nfreeexts:
358788356
[7] iagfree:            -317470064              [18] pad:               Not
Displayed
[8] inosmap[0]:         069cd9ed        [19] wmap:              Type 'w'
[9] inosmap[1]:         d746af90        [20] pmap:              Type 'p'
[10] inosmap[2]:        b5c86a84        [21] inoext:            Type 'i'
[11] inosmap[3]:        3fd0095d
- hit Enter to continue, e[x]it -
> q


I was getting the same kind of responses if I used -1635135392 as the inode
of interest instead of 1635135392.  Anyone got more advice?

Craig.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to