Disk I/O Error

HS-DHGL

あるファイルをコピーしていたら、 Input/output error が出た。
死んだか??

再起動

再起動してみた。

ERROR 16 で起動せず。ぐぬぬ

切り分け

HDD が死んだか、電源が死んだかの切り分けのため、 標準ファームの HDD をセットして起動

やっぱり E16

切り分けその2

LS-GL の筐体に HS-DHGL の HDD をセットして起動

立ち上がってきた。

死んだ電源

というわけで、死んだのは電源。

これで3台ある HS-DHGL、3台とも電源が死んだ。
LS-GL は2台とも大丈夫なのに、、

そろそろコンデンサ買って修理しようか、、、

HDD も死んでいる?

HDD はこのまま LS-GL にセットして使うことにする。
ログインしてチェックしようとしたら、、、
sil:/mnt# ls /mnt
ls: reading directory /mnt: Input/output error
sil:/mnt# umount /mnt
umount: /mnt: device is busy
umount: /mnt: device is busy
sil:/mnt#
がー。

fsck

LS-QL に USB で接続
Aug 10 13:12:43 qube kernel: usb 2-1: new high speed USB device using ehci_marvell and address 2
Aug 10 13:12:43 qube kernel: usb 2-1: configuration #1 chosen from 1 choice
Aug 10 13:12:43 qube kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Aug 10 13:12:48 qube kernel: scsi 2:0:0:0: Direct-Access ViPowER VP-89118(SD1) 2.10 PQ: 0 ANSI: 4
Aug 10 13:12:48 qube kernel: sd 2:0:0:0: [sdd] 2930277168 512-byte hardware sectors (1500302 MB)
Aug 10 13:12:48 qube kernel: sd 2:0:0:0: [sdd] Write Protect is off
Aug 10 13:12:48 qube kernel: sd 2:0:0:0: [sdd] 2930277168 512-byte hardware sectors (1500302 MB)
Aug 10 13:12:48 qube kernel: sd 2:0:0:0: [sdd] Write Protect is off
Aug 10 13:12:48 qube kernel: sdd: sdd1 sdd2 sdd3 sdd4
Aug 10 13:12:48 qube kernel: sd 2:0:0:0: [sdd] Attached SCSI disk
Aug 10 13:12:48 qube kernel: sd 2:0:0:0: Attached scsi generic sg3 type 0
パーティションの認識はした。

sdd1 を fsck する

root@qube:~# fsck /dev/sdd1
fsck from util-linux-ng 2.17.2
e2fsck 1.41.12 (17-May-2010)
Superblock last mount time (Wed Dec 11 06:06:44 2030,
 now = Sat Aug 10 13:14:20 2013) is in the future.
Fix<y>? yes
Superblock last write time (Wed Dec 11 06:11:32 2030,
 now = Sat Aug 10 13:14:20 2013) is in the future.
Fix<y>? yes
/dev/sdd1 has filesystem last checked time in the future, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdd1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sdd1: 13/50200 files (15.4% non-contiguous), 18408/200780 blocks
root@qube:~#
まあ無事。

続いて、sdd2

root@qube:~# fsck /dev/sdd2
fsck from util-linux-ng 2.17.2
If you wish to check the consistency of an XFS filesystem or
repair a damaged filesystem, see xfs_check(8) and xfs_repair(8).
root@qube:~#
そうか、XFS か
root@qube:~# xfs_check /dev/sdd2
root@qube:~#
特に問題無さそう。

続いて、sdd4

root@qube:~# xfs_check /dev/sdd4
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed. Mount the filesystem to replay the log, and unmount it before
re-running xfs_check. If you are unable to mount the filesystem, then use
the xfs_repair -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.
root@qube:~#
xfs_check する前に、mount して umount しろと。
root@qube:~# mount /dev/sdd4 /tmp/mnt
root@qube:~#
もっと時間がかかるかと思ったが、すぐ戻ってきた。
root@qube:~# ls /tmp/mnt
Backup Music Video buffalo tmp wk
root@qube:~#
中身もそれなりに残っている。 アンマウントする
root@qube:~# umount /tmp/mnt
root@qube:~#
もう一度 xfs_check
root@qube:~# !xfs
xfs_check /dev/sdd4
むむ、なかなか戻ってこない。
block 1/15792 expected type free1 got unknown
block 1/2498 expected type unknown got free1
Killed
root@qube:~#
Killed って???

xfs_repair

ダメそうなので、xfs_repair する。
root@qube:~# xfs_repair -v /dev/sdd4
Phase 1 - find and verify superblock...
 - block cache size set to 512 entries
Phase 2 - using internal log
 - zero log...
zero_log: head block 254997 tail block 254997
 - scan filesystem freespace and inode maps...
agf_freeblks 2159260, counted 2159249 in ag 3
sb_fdblocks 69422094, counted 69422083
 - 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
data fork in ino 2147955805 claims free block 268468464
data fork in ino 2147955807 claims free block 134220226
 - agno = 2
 - 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
 - agno = 2
 - agno = 3
Phase 5 - rebuild AG headers and trees...
 - agno = 0
 - agno = 1
 - agno = 2
 - agno = 3
 - reset superblock...
Phase 6 - check inode connectivity...
 - resetting contents of realtime bitmap and summary inodes
 - traversing filesystem ...
 - agno = 0
 - agno = 1
 - agno = 2
 - agno = 3
 - traversal finished ...
 - moving disconnected inodes to lost+found ...
disconnected inode 33518, moving to lost+found
disconnected inode 2147893157, moving to lost+found
disconnected inode 2147893736, moving to lost+found
Phase 7 - verify and correct link counts...
 XFS_REPAIR Summary Sat Aug 10 13:56:50 2013
Phase Start End Duration
Phase 1: 08/10 13:55:32 08/10 13:55:32
Phase 2: 08/10 13:55:32 08/10 13:55:41 9 seconds
Phase 3: 08/10 13:55:41 08/10 13:56:11 30 seconds
Phase 4: 08/10 13:56:11 08/10 13:56:44 33 seconds
Phase 5: 08/10 13:56:44 08/10 13:56:44
Phase 6: 08/10 13:56:44 08/10 13:56:50 6 seconds
Phase 7: 08/10 13:56:50 08/10 13:56:50
Total run time: 1 minute, 18 seconds
done
root@qube:~#

起動

HDD を LS-GL に戻して再度起動。
Debian GNU/Linux 5.0
sil login: yasunari
Password:
Last login: Wed Dec 11 06:07:09 JST 2030 from shinjuw.yamasita.jp on pts/0
Linux sil 2.6.16.16-arm1 #6 Fri Aug 31 13:07:15 JST 2007 armv5tejl
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
yasunari@sil:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 3997976 552824 3445152 14% /
tmpfs 63052 0 63052 0% /lib/init/rw
tmpfs 63052 0 63052 0% /dev/shm
/dev/root.old 13303 11362 1941 86% /initrd
/dev/sda1 194442 12070 172333 7% /boot
/dev/sda4 1460538888 1181214716 279324172 81% /mnt
yasunari@sil:~$ ls /mnt
Backup Music Video buffalo lost+found tmp wk
yasunari@sil:~$
大丈夫そうだ。

やれやれ





LinkStation 400シリーズファームウェア アップデーターVer.1.11
ハックの記録
LinkStation/玄箱 をハックしよう
LinkStation 400シリーズファームウェア アップデータを見る

ツイート Tweet to @yasunari_y @yasunari_yをフォロー

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

AltStyle によって変換されたページ (->オリジナル) /