Hi,

I'm trying debug an issue with my one of my disks in my system. I have an ext3 
file system mounted and ls -l is reporting an impossible size for two of the 
files: log_1848_1239927341.core and log_1848_1239927341.core~. The size is 98P. 
This partition (/dev/sdb2) is only a few GB in size. I thought there could be a 
possible corruption of the filesystem, but when I mount the partition with 
debugfs, it reports the correct size for the files. In addition, fsck finds no 
errors.

The OS is Linux, Kernel version 2.6.21.

Please see the capture below.

Thanks,

Chris


r...@localhost:/root> df /mnt/sys/external

Filesystem           1K-blocks      Used Available Use% Mounted on

-                      2949060     71092   2728164   3% /mnt/sys/external



r...@localhost:/root> cd /mnt/sys/external

r...@localhost:/mnt/sys/external> ls -l

total 1108

-rwxrwxrwx 1 root root 109775240942714880 Apr 30 08:12 log_1848_1239927341.core

-rwxrwxrwx 1 root root 109775240942714880 Apr 30 03:53 log_1848_1239927341.core~

drwxrwxrwx 2 root root              16384 Mar  5 02:51 lost+found

-rwxrwxrwx 1 root root              24833 May 14 02:32 test.file

-rwxrwxrwx 1 root root             738836 May 14 02:33 test2.file

r...@localhost:/mnt/sys/external> ls -lh

total 1.1M

-rwxrwxrwx 1 root root  98P Apr 30 08:12 log_1848_1239927341.core

-rwxrwxrwx 1 root root  98P Apr 30 03:53 log_1848_1239927341.core~

drwxrwxrwx 2 root root  16K Mar  5 02:51 lost+found

-rwxrwxrwx 1 root root  25K May 14 02:32 test.file

-rwxrwxrwx 1 root root 722K May 14 02:33 test2.file

r...@localhost:/mnt/sys/external> ls -li

total 1108

13 -rwxrwxrwx 1 root root 109775240942714880 Apr 30 08:12 
log_1848_1239927341.core

12 -rwxrwxrwx 1 root root 109775240942714880 Apr 30 03:53 
log_1848_1239927341.core~

11 drwxrwxrwx 2 root root              16384 Mar  5 02:51 lost+found

14 -rwxrwxrwx 1 root root              24833 May 14 02:32 test.file

15 -rwxrwxrwx 1 root root             738836 May 14 02:33 test2.file

r...@localhost:/mnt/sys/external>

r...@localhost:/mnt/sys/external> cd ..

r...@localhost:/mnt/sys> umount /mnt/sys/external

r...@localhost:/mnt/sys> fsck -a /dev/sdb2

fsck 1.39 (29-May-2006)

/dev/sdb2: clean, 15/374624 files, 29538/749030 blocks (check in 4 mounts)

r...@localhost:/mnt/sys> fsck -V /dev/sdb2

fsck 1.39 (29-May-2006)

[/sbin/fsck.ext3 (1) -- /dev/sdb2] fsck.ext3 /dev/sdb2

e2fsck 1.39 (29-May-2006)

/dev/sdb2: clean, 15/374624 files, 29538/749030 blocks (check in 4 mounts)

r...@localhost:/mnt/sys> debugfs /dev/sdb2

debugfs 1.39 (29-May-2006)

debugfs:  imap 13

13: File not found by ext2_lookup

debugfs:  imap log_1848_1239927341.core

Inode 13 is part of block group 0

        located at block 186, offset 0x0600

debugfs:  stat log_1848_1239927341.core

Inode: 13   Type: regular    Mode:  0777   Flags: 0x0   Generation: 2408179396

User:     0   Group:     0   Size: 25559040

File ACL: 0    Directory ACL: 0

Links: 1   Blockcount: 336

Fragment:  Address: 0    Number: 0    Size: 0

ctime: 0x4a0e6497 -- Sat May 16 07:00:39 2009

atime: 0x4a0e65a6 -- Sat May 16 07:05:10 2009

mtime: 0x49f95d85 -- Thu Apr 30 08:12:53 2009

BLOCKS:

(0):30720, (2-4):30721-30723, (6):30724, (IND):30725, (36-37):30726-30727, (DIND

):30728, (IND):30729, (2084-2085):30730-30731, (IND):30732, (4132-4133):30733-30

734, (IND):30735, (6180-6182):30736-30738, (6198-6214):30739-30755, (6216-6218):

30756-30758, (6237-6239):30759-30761

TOTAL: 42



debugfs:  stat log_1848_1239927341.core

Inode: 13   Type: regular    Mode:  0777   Flags: 0x0   Generation: 2408179396

User:     0   Group:     0   Size: 25559040

File ACL: 0    Directory ACL: 0

Links: 1   Blockcount: 336

Fragment:  Address: 0    Number: 0    Size: 0

ctime: 0x4a0e6497 -- Sat May 16 07:00:39 2009

atime: 0x4a0e65a6 -- Sat May 16 07:05:10 2009

mtime: 0x49f95d85 -- Thu Apr 30 08:12:53 2009

BLOCKS:

(0):30720, (2-4):30721-30723, (6):30724, (IND):30725, (36-37):30726-30727, (DIND

):30728, (IND):30729, (2084-2085):30730-30731, (IND):30732, (4132-4133):30733-30

734, (IND):30735, (6180-6182):30736-30738, (6198-6214):30739-30755, (6216-6218):

30756-30758, (6237-6239):30759-30761

TOTAL: 42



debugfs:  quit



r...@localhost:/mnt/sys> debugfs /dev/sdb2

debugfs 1.39 (29-May-2006)

debugfs:  ls -l

      2   40777 (2)      0      0    4096 14-May-2009 02:33 .

      2   40777 (2)      0      0    4096 14-May-2009 02:33 ..

     11   40777 (2)      0      0   16384  5-Mar-2009 02:51 lost+found

     13  100777 (1)      0      0   25559040 30-Apr-2009 08:12 
log_1848_1239927341.core

     12  100777 (1)      0      0   25559040 30-Apr-2009 03:53 
log_1848_1239927341.core~

     14  100777 (1)      0      0   24833 14-May-2009 02:32 test.file

     15  100777 (1)      0      0   738836 14-May-2009 02:33 test2.file



debugfs:  quit

r...@localhost:/mnt/sys> mount -t ext2 /dev/sdb2 external

r...@localhost:/mnt/sys> cd external

r...@localhost:/mnt/sys/external> ls -l

total 1108

-rwxrwxrwx 1 root root 109775240942714880 Apr 30 08:12 log_1848_1239927341.core

-rwxrwxrwx 1 root root 109775240942714880 Apr 30 03:53 log_1848_1239927341.core~

drwxrwxrwx 2 root root              16384 Mar  5 02:51 lost+found

-rwxrwxrwx 1 root root              24833 May 14 02:32 test.file

-rwxrwxrwx 1 root root             738836 May 14 02:33 test2.file

r...@localhost:/mnt/sys/external> ls -lh

total 1.1M

-rwxrwxrwx 1 root root  98P Apr 30 08:12 log_1848_1239927341.core

-rwxrwxrwx 1 root root  98P Apr 30 03:53 log_1848_1239927341.core~

drwxrwxrwx 2 root root  16K Mar  5 02:51 lost+found

-rwxrwxrwx 1 root root  25K May 14 02:32 test.file

-rwxrwxrwx 1 root root 722K May 14 02:33 test2.file

r...@localhost:/mnt/sys/external> cd ../

r...@localhost:/mnt/sys> umount /dev/sdb2

r...@localhost:/mnt/sys> debugfs /dev/sdb2

debugfs 1.39 (29-May-2006)

debugfs:  show_super_stats

Filesystem volume name:   <none>

Last mounted on:          <not available>

Filesystem UUID:          7b4b6ce4-2418-4d0b-9362-a6de6bacad1e

Filesystem magic number:  0xEF53

Filesystem revision #:    1 (dynamic)

Filesystem features:      has_journal resize_inode dir_index filetype sparse_sup

er large_file

Default mount options:    (none)

Filesystem state:         clean

Errors behavior:          Continue

Filesystem OS type:       Linux

Inode count:              374624

Block count:              749030

Reserved block count:     37451

Free blocks:              719492

Free inodes:              374609

First block:              0

Block size:               4096

Fragment size:            4096

Reserved GDT blocks:      182

Blocks per group:         32768

Fragments per group:      32768

Inodes per group:         16288

Inode blocks per group:   509

Filesystem created:       Thu Mar  5 02:51:38 2009

Last mount time:          Sat May 16 07:13:43 2009

Last write time:          Sat May 16 07:14:50 2009

Mount count:              34

Maximum mount count:      37

Last checked:             Sat May  9 04:24:18 2009

Check interval:           15552000 (6 months)

Next check after:         Thu Nov  5 04:24:18 2009

Reserved blocks uid:      0 (user root)

Reserved blocks gid:      0 (group root)

First inode:              11

Inode size:               128

Journal inode:            8

Default directory hash:   tea

Directory Hash Seed:      c78b70f8-775d-4913-a2ca-d81657c55315

Journal backup:           inode blocks

Directories:              2

 Group  0: block bitmap at 184, inode bitmap at 185, inode table at 186

           15392 free blocks, 16273 free inodes, 2 used directories

 Group  1: block bitmap at 32952, inode bitmap at 32953, inode table at 32954

           32073 free blocks, 16288 free inodes, 0 used directories

 Group  2: block bitmap at 65536, inode bitmap at 65537, inode table at 65538

           32257 free blocks, 16288 free inodes, 0 used directories

 Group  3: block bitmap at 98488, inode bitmap at 98489, inode table at 98490

           32073 free blocks, 16288 free inodes, 0 used directories

 Group  4: block bitmap at 131072, inode bitmap at 131073, inode table at 131074

           32257 free blocks, 16288 free inodes, 0 used directories

 Group  5: block bitmap at 164024, inode bitmap at 164025, inode table at 164026

           32073 free blocks, 16288 free inodes, 0 used directories

 Group  6: block bitmap at 196608, inode bitmap at 196609, inode table at 196610

           32257 free blocks, 16288 free inodes, 0 used directories

 Group  7: block bitmap at 229560, inode bitmap at 229561, inode table at 229562

           32073 free blocks, 16288 free inodes, 0 used directories

 Group  8: block bitmap at 262144, inode bitmap at 262145, inode table at 262146

           32257 free blocks, 16288 free inodes, 0 used directories

 Group  9: block bitmap at 295096, inode bitmap at 295097, inode table at 295098

           32073 free blocks, 16288 free inodes, 0 used directories

 Group 10: block bitmap at 327680, inode bitmap at 327681, inode table at 327682

           32257 free blocks, 16288 free inodes, 0 used directories

 Group 11: block bitmap at 360448, inode bitmap at 360449, inode table at 360450

           32257 free blocks, 16288 free inodes, 0 used directories

 Group 12: block bitmap at 393216, inode bitmap at 393217, inode table at 393218

           32257 free blocks, 16288 free inodes, 0 used directories

 Group 13: block bitmap at 425984, inode bitmap at 425985, inode table at 425986

           32257 free blocks, 16288 free inodes, 0 used directories

 Group 14: block bitmap at 458752, inode bitmap at 458753, inode table at 458754

           32257 free blocks, 16288 free inodes, 0 used directories

 Group 15: block bitmap at 491520, inode bitmap at 491521, inode table at 491522

           32257 free blocks, 16288 free inodes, 0 used directories

 Group 16: block bitmap at 524288, inode bitmap at 524289, inode table at 524290

           32257 free blocks, 16288 free inodes, 0 used directories

 Group 17: block bitmap at 557056, inode bitmap at 557057, inode table at 557058

           32257 free blocks, 16288 free inodes, 0 used directories

 Group 18: block bitmap at 589824, inode bitmap at 589825, inode table at 589826

           32257 free blocks, 16288 free inodes, 0 used directories

 Group 19: block bitmap at 622592, inode bitmap at 622593, inode table at 622594

           32257 free blocks, 16288 free inodes, 0 used directories

 Group 20: block bitmap at 655360, inode bitmap at 655361, inode table at 655362

           32257 free blocks, 16288 free inodes, 0 used directories

 Group 21: block bitmap at 688128, inode bitmap at 688129, inode table at 688130

           32257 free blocks, 16288 free inodes, 0 used directories

 Group 22: block bitmap at 720896, inode bitmap at 720897, inode table at 720898

           27623 free blocks, 16288 free inodes, 0 used directories

debugfs:

debugfs:

debugfs:

debugfs:  quit

r...@localhost:/mnt/sys>



_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to