クラッシュした HDD に xfs_repair

Debian HS-DHGL

先日アクセスエラーが出るようになり、換装した HS-DHGL の HDD に xfs_repair をかけてみる。

sdb2

ここは先日かけたので、エラーはないはず

その前に lost+found のチェック

sil:/tmp# mkdir /tmp/sdb2
sil:/tmp# mount /dev/sdb2 /tmp/sdb2/
sil:/tmp# ls /tmp/sdb2/lost+found/
sil:/tmp# umount /tmp/sdb2/
sil:/tmp#
空っぽ。

xfs_repair をかける

sil:/tmp# xfs_repair /dev/sdb2
Phase 1 - find and verify superblock...
Phase 2 - using internal log
        - zero log...
        - scan filesystem freespace and inode maps...
        - found root inode chunk
Phase 3 - for each AG...
        - scan and clear agi unlinked lists...
        - process known inodes and perform inode discovery...
        - agno = 0
        - agno = 1
        - agno = 2
corrupt block 0 in directory inode 8500756
        will junk block
no . entry for directory 8500756
no .. entry for directory 8500756
problem with directory contents in inode 8500756
cleared inode 8500756
        - agno = 3
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 0
        - agno = 1
entry "subversion" at block 2 offset 2288 in directory inode 4197777 references free inode 8500756
        clearing inode number in entry at offset 2288...
        - agno = 2
        - agno = 3
Phase 5 - rebuild AG headers and trees...
        - reset superblock...
Phase 6 - check inode connectivity...
        - resetting contents of realtime bitmap and summary inodes
        - traversing filesystem ...
bad hash table for directory inode 4197777 (no data entry): rebuilding
rebuilding directory inode 4197777
        - traversal finished ...
        - moving disconnected inodes to lost+found ...
disconnected inode 8500757, moving to lost+found
disconnected inode 8500758, moving to lost+found
disconnected inode 8500759, moving to lost+found
disconnected inode 8500760, moving to lost+found
disconnected inode 8500761, moving to lost+found
disconnected inode 8500762, moving to lost+found
disconnected inode 8500763, moving to lost+found
disconnected inode 8500764, moving to lost+found
disconnected inode 8500765, moving to lost+found
disconnected inode 8500766, moving to lost+found
disconnected inode 8500769, moving to lost+found
disconnected dir inode 13313451, moving to lost+found
Phase 7 - verify and correct link counts...
resetting inode 224 nlinks from 2 to 3
resetting inode 4197777 nlinks from 346 to 345
cache_purge: shake on cache 0x94008 left 1 nodes!?
done
sil:/tmp#
幾つかのファイル?が lost+found 送りになった。
これは本格的にダメだな。

sdb4

どうように、lost+found を見る
sil:/tmp# mount /dev/sdb4 /tmp/mnt
sil:/tmp# ls /tmp/mnt/lost+found
ls: cannot access /tmp/mnt/lost+found: No such file or directory
sil:/tmp# umount /tmp/mnt
sil:/tmp#
ない。

xfs_repair をかける

sil:/tmp# xfs_repair /dev/sdb4
Phase 1 - find and verify superblock...
Phase 2 - using internal log
        - zero log...
        - scan filesystem freespace and inode maps...
        - found root inode chunk
Phase 3 - for each AG...
        - scan and clear agi unlinked lists...
        - process known inodes and perform inode discovery...
        - agno = 0
imap claims a free inode 130 is in use, correcting imap and clearing inode
cleared realtime summary inode 130
imap claims a free inode 228521 is in use, correcting imap and clearing inode
        - agno = 1
bad magic number 0x0 on inode 1857086992
        - agno = 2
        - agno = 3
xfs_repair: read failed: Input/output error
cannot read inode 3221457728, disk block 1458557096, cnt 16
Aborted
sil:/tmp#
Input/output error と。

すて




HS-DHGL
バッファローダイレクト
楽天市場
Yahoo!ショッピング
ValuMore!
ムラウチドットコム


HDD の換装
ハックの記録
LinkStation/玄箱 をハックしよう

OpenStreetMap がデフォルトの「今ココなう!Proxy」のインストール #osmjp

Copyright (C) 2003-2011 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市