renzhengeek / issues

0 stars 0 forks source link

dir block header #20

Open renzhengeek opened 8 years ago

renzhengeek commented 8 years ago
desktop:/mnt/shared # ./dirblk-trailer -t 0 -f dirblock/  /dev/sda6
DB_BLKNO: change dir blockno from 17269531 to 0x1234
        Trailer Block: 4660   Inode: 1516137   Len: 64
DB_BLKNO: change dir blockno from 17269532 to 0x1234
        Trailer Block: 4660   Inode: 1516137   Len: 64
DB_BLKNO: change dir blockno from 17269533 to 0x1234
        Trailer Block: 4660   Inode: 1516137   Len: 64
DB_BLKNO: change dir blockno from 17269534 to 0x1234
        Trailer Block: 4660   Inode: 1516137   Len: 64
DB_BLKNO: change dir blockno from 17269535 to 0x1234
        Trailer Block: 4660   Inode: 1516137   Len: 64

desktop:/mnt/shared # journalctl -f
-- Logs begin at Tue 2015-08-11 11:19:19 CST. --
Oct 28 17:42:09 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #17269531 has an invalid db_blkno of 4660
Oct 28 17:42:09 desktop kernel: (ls,17640,1):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:42:09 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #17269532 has an invalid db_blkno of 4660
Oct 28 17:42:09 desktop kernel: (ls,17640,1):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:42:09 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #17269533 has an invalid db_blkno of 4660
Oct 28 17:42:09 desktop kernel: (ls,17640,1):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:42:10 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #17269534 has an invalid db_blkno of 4660
Oct 28 17:42:10 desktop kernel: (ls,17640,1):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:42:10 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #17269535 has an invalid db_blkno of 4660
Oct 28 17:42:10 desktop kernel: (ls,17640,1):ocfs2_read_dir_block:655 ERROR: status = -22
renzhengeek commented 8 years ago
desktop:/sys/fs/ocfs2/sda6 # echo check 1516137 > filecheck                                                                                                                         
desktop:/sys/fs/ocfs2/sda6 # cat filecheck 
INO             TYPE    DONE    ERROR                                                                                                                                               
1516137         0       1       BLOCKNO                                                                                                                                             
desktop:/sys/fs/ocfs2/sda6 # echo fix 1516137 > filecheck 
desktop:/sys/fs/ocfs2/sda6 # cd /mnt/shared/                                                                                                                                        
dirblock/   inline/     lost+found/                                                                                                                                                 
desktop:/sys/fs/ocfs2/sda6 # cd /mnt/shared/dirblock/                                                                                                                               
desktop:/mnt/shared/dirblock # ls                                                                                                                                                   
^C                                                                                                                                                                                  
desktop:/mnt/shared/dirblock #                                 

Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_repair_dir_trailer:605 ERROR: Filecheck: reset directory block #17269429: db_blkno to 17269429
Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_repair_dir_trailer:624 ERROR: Filecheck: reset dir block #17269429: compute meta ecc
Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 1516137 rec[251]: cpos 36309 clusters 16 blkno 17269451

Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_repair_dir_trailer:605 ERROR: Filecheck: reset directory block #17269451: db_blkno to 17269451
Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_repair_dir_trailer:624 ERROR: Filecheck: reset dir block #17269451: compute meta ecc
Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 1516137 rec[9]: cpos 36325 clusters 37 blkno 1069574

Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_extent_list:506 ocfs2_filecheck_extent_list: inode 1516137 tree_depth 0 count 252 next_free_rec 3
Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 1516137 rec[0]: cpos 36325 clusters 16 blkno 17269476

Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_repair_dir_trailer:605 ERROR: Filecheck: reset directory block #17269476: db_blkno to 17269476
Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_repair_dir_trailer:624 ERROR: Filecheck: reset dir block #17269476: compute meta ecc
Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 1516137 rec[1]: cpos 36341 clusters 16 blkno 17269501

Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_repair_dir_trailer:605 ERROR: Filecheck: reset directory block #17269501: db_blkno to 17269501
Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_repair_dir_trailer:624 ERROR: Filecheck: reset dir block #17269501: compute meta ecc
Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 1516137 rec[2]: cpos 36357 clusters 5 blkno 17269531

Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_repair_dir_trailer:605 ERROR: Filecheck: reset directory block #17269531: db_blkno to 17269531
Oct 28 17:51:14 desktop kernel: (bash,9582,3):ocfs2_filecheck_repair_dir_trailer:624 ERROR: Filecheck: reset dir block #17269531: compute meta ecc
Oct 28 17:51:56 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #1548290 has an invalid db_blkno of 4660
Oct 28 17:51:57 desktop kernel: (ls,19309,3):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:51:57 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #1548291 has an invalid db_blkno of 4660
Oct 28 17:51:57 desktop kernel: (ls,19309,3):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:51:57 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #1548292 has an invalid db_blkno of 4660
Oct 28 17:51:57 desktop kernel: (ls,19309,3):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:51:57 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #1548293 has an invalid db_blkno of 4660
Oct 28 17:51:57 desktop kernel: (ls,19309,3):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:51:57 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #1548294 has an invalid db_blkno of 4660
Oct 28 17:51:57 desktop kernel: (ls,19309,3):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:51:57 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #1548295 has an invalid db_blkno of 4660
Oct 28 17:51:58 desktop kernel: (ls,19309,3):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:51:58 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #1548296 has an invalid db_blkno of 4660
Oct 28 17:51:58 desktop kernel: (ls,19309,3):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:51:58 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #1548297 has an invalid db_blkno of 4660
Oct 28 17:51:58 desktop kernel: (ls,19309,0):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:51:58 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #1548298 has an invalid db_blkno of 4660
Oct 28 17:51:58 desktop kernel: (ls,19309,0):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:51:58 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #1548299 has an invalid db_blkno of 4660
Oct 28 17:51:58 desktop kernel: (ls,19309,1):ocfs2_read_dir_block:655 ERROR: status = -22
Oct 28 17:51:58 desktop kernel: OCFS2: ERROR (device sda6): ocfs2_check_dir_trailer: Directory block #1548300 has an invalid db_blkno of 4660
renzhengeek commented 8 years ago
Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[203]: cpos 7280 clusters 16 blkno 626360

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[204]: cpos 7296 clusters 16 blkno 626396

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[205]: cpos 7312 clusters 16 blkno 626430

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[206]: cpos 7328 clusters 16 blkno 626463

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[207]: cpos 7344 clusters 16 blkno 626490

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[208]: cpos 7360 clusters 16 blkno 626516

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[209]: cpos 7376 clusters 16 blkno 626553

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[210]: cpos 7392 clusters 16 blkno 626586

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[211]: cpos 7408 clusters 16 blkno 626614

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[212]: cpos 7424 clusters 16 blkno 626640

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[213]: cpos 7440 clusters 16 blkno 626670

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[214]: cpos 7456 clusters 16 blkno 626701

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[215]: cpos 7472 clusters 16 blkno 626731

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[216]: cpos 7488 clusters 16 blkno 626764

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[217]: cpos 7504 clusters 16 blkno 626791
        Trailer Block: 626826   Inode: 593000   Len: 64
DB_SIGNATURE: change signature to aaaaaaaa
        Trailer Block: 626827   Inode: 593000   Len: 64
DB_SIGNATURE: change signature to aaaaaaaa
        Trailer Block: 626828   Inode: 593000   Len: 64
DB_SIGNATURE: change signature to aaaaaaaa
        Trailer Block: 626829   Inode: 593000   Len: 64
DB_SIGNATURE: change signature to aaaaaaaa
        Trailer Block: 626830   Inode: 593000   Len: 64
DB_SIGNATURE: change signature to aaaaaaaa
        Trailer Block: 626831   Inode: 593000   Len: 64
DB_SIGNATURE: change signature to aaaaaaaa
        Trailer Block: 626832   Inode: 593000   Len: 64
desktop:~/dir-test # cat check-bad-sig.log 
-- Logs begin at Tue 2015-08-11 11:19:19 CST. --
Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[208]: cpos 7360 clusters 16 blkno 626516

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[209]: cpos 7376 clusters 16 blkno 626553

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[210]: cpos 7392 clusters 16 blkno 626586

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[211]: cpos 7408 clusters 16 blkno 626614

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[212]: cpos 7424 clusters 16 blkno 626640

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[213]: cpos 7440 clusters 16 blkno 626670

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[214]: cpos 7456 clusters 16 blkno 626701

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[215]: cpos 7472 clusters 16 blkno 626731

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[216]: cpos 7488 clusters 16 blkno 626764

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[217]: cpos 7504 clusters 16 blkno 626791

Oct 30 14:19:32 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[218]: cpos 7520 clusters 14 blkno 626819

Oct 30 14:19:32 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:506 ocfs2_filecheck_extent_list: inode 593000 tree_depth 1 count 243 next_free_rec 2
Oct 30 14:19:32 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[0]: cpos 0 clusters 4032 blkno 146966

Oct 30 14:19:32 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:506 ocfs2_filecheck_extent_list: inode 593000 tree_depth 0 count 252 next_free_rec 252
Oct 30 14:19:32 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[0]: cpos 0 clusters 16 blkno 612865

Oct 30 14:19:32 desktop kernel: (bash,14059,2):ocfs2_filecheck_validate_dir_trailer:554 ERROR: Filecheck: invalid dirblock #612865: signature = aaaaaaa
Oct 30 14:19:32 desktop kernel: (bash,14059,2):ocfs2_filecheck_extent_list:559 ERROR: status = -1005
desktop:~/dir-test # cat fix-bad-sig.log 
-- Logs begin at Tue 2015-08-11 11:19:19 CST. --
Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[215]: cpos 7472 clusters 16 blkno 626731

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[216]: cpos 7488 clusters 16 blkno 626764

Oct 30 14:16:19 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[217]: cpos 7504 clusters 16 blkno 626791

Oct 30 14:19:32 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[218]: cpos 7520 clusters 14 blkno 626819

Oct 30 14:19:32 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:506 ocfs2_filecheck_extent_list: inode 593000 tree_depth 1 count 243 next_free_rec 2
Oct 30 14:19:32 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[0]: cpos 0 clusters 4032 blkno 146966

Oct 30 14:19:32 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:506 ocfs2_filecheck_extent_list: inode 593000 tree_depth 0 count 252 next_free_rec 252
Oct 30 14:19:32 desktop kernel: (bash,14059,3):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[0]: cpos 0 clusters 16 blkno 612865

Oct 30 14:19:32 desktop kernel: (bash,14059,2):ocfs2_filecheck_validate_dir_trailer:554 ERROR: Filecheck: invalid dirblock #612865: signature = aaaaaaa
Oct 30 14:19:32 desktop kernel: (bash,14059,2):ocfs2_filecheck_extent_list:559 ERROR: status = -1005
Oct 30 14:20:21 desktop kernel: (bash,14059,1):ocfs2_filecheck_extent_list:506 ocfs2_filecheck_extent_list: inode 593000 tree_depth 1 count 243 next_free_rec 2
Oct 30 14:20:21 desktop kernel: (bash,14059,1):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[0]: cpos 0 clusters 4032 blkno 146966

Oct 30 14:20:21 desktop kernel: (bash,14059,1):ocfs2_filecheck_extent_list:506 ocfs2_filecheck_extent_list: inode 593000 tree_depth 0 count 252 next_free_rec 252
Oct 30 14:20:21 desktop kernel: (bash,14059,1):ocfs2_filecheck_extent_list:547 ocfs2_filecheck_extent_list: inode 593000 rec[0]: cpos 0 clusters 16 blkno 612865

Oct 30 14:20:21 desktop kernel: (bash,14059,1):ocfs2_filecheck_repair_dir_trailer:596 ERROR: Filecheck: Invalid dirblock #612865: signature = aaaaaaa
Oct 30 14:20:21 desktop kernel: (bash,14059,1):ocfs2_filecheck_extent_list:559 ERROR: status = -1005