[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:52826] bad blocks のチェック(md)



渡辺と申します。お世話になります。

Lenny にて、RAID1 を行っております。

[   40.015849] PCI: Setting latency timer of device 0000:00:1b.0 to 64
[  128.371130] ata2.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0
[  128.371130] ata2.00: irq_stat 0x40000008
[  128.371130] ata2.00: cmd 60/00:00:f7:06:14/02:00:00:00:00/40 tag 0 ncq 262144 in
[  128.371130]          res 51/40:00:59:08:14/23:00:00:00:00/00 Emask 0x409 (media error) <F>
[  128.371130] ata2.00: status: { DRDY ERR }
[  128.371130] ata2.00: error: { UNC }
[  128.465648] ata2.00: configured for UDMA/133
[  128.465648] ata2: EH complete
[  128.465648] sd 1:0:0:0: [sdb] 156301488 512-byte hardware sectors (80026 MB)
[  128.465648] sd 1:0:0:0: [sdb] Write Protect is off
[  128.465648] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[  128.465648] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  138.993716] ata2.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0
[  138.993716] ata2.00: irq_stat 0x40000008
[  138.993716] ata2.00: cmd 60/00:00:f7:06:14/02:00:00:00:00/40 tag 0 ncq 262144 in
[  138.993716]          res 51/40:00:64:08:14/24:00:00:00:00/00 Emask 0x409 (media error) <F>
[  138.997125] ata2.00: status: { DRDY ERR }
[  138.997163] ata2.00: error: { UNC }
[  139.087233] ata2.00: configured for UDMA/133
[  139.087233] ata2: EH complete
[  139.087233] sd 1:0:0:0: [sdb] 156301488 512-byte hardware sectors (80026 MB)
[  139.087233] sd 1:0:0:0: [sdb] Write Protect is off
[  139.087233] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[  139.087233] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  157.206083] ata2.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0
[  157.206083] ata2.00: irq_stat 0x40000008
[  157.206083] ata2.00: cmd 60/08:00:e7:b1:19/00:00:00:00:00/40 tag 0 ncq 4096 in
[  157.206083]          res 51/40:08:e9:b1:19/24:00:00:00:00/00 Emask 0x409 (media error) <F>
[  157.206083] ata2.00: status: { DRDY ERR }
[  157.206083] ata2.00: error: { UNC }
[  157.283581] ata2.00: configured for UDMA/133
[  157.283581] ata2: EH complete
[  157.283581] sd 1:0:0:0: [sdb] 156301488 512-byte hardware sectors (80026 MB)
[  157.283581] sd 1:0:0:0: [sdb] Write Protect is off
[  157.343576] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[  157.343599] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  179.982854] ata2.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0
[  179.982854] ata2.00: irq_stat 0x40000008
[  179.982854] ata2.00: cmd 60/28:00:7f:40:03/00:00:00:00:00/40 tag 0 ncq 20480 in
[  179.982854]          res 51/40:28:81:40:03/24:00:00:00:00/00 Emask 0x409 (media error) <F>
[  179.982854] ata2.00: status: { DRDY ERR }
[  179.982854] ata2.00: error: { UNC }
[  180.055303] ata2.00: configured for UDMA/133
[  180.055303] ata2: EH complete
[  180.055303] sd 1:0:0:0: [sdb] 156301488 512-byte hardware sectors (80026 MB)
[  180.055303] sd 1:0:0:0: [sdb] Write Protect is off
[  180.055303] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[  180.055303] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  182.754888] ata2.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0
[  182.754888] ata2.00: irq_stat 0x40000008
[  182.754888] ata2.00: cmd 60/28:00:7f:40:03/00:00:00:00:00/40 tag 0 ncq 20480 in
[  182.754888]          res 51/40:28:81:40:03/24:00:00:00:00/00 Emask 0x409 (media error) <F>
[  182.754888] ata2.00: status: { DRDY ERR }
[  182.754888] ata2.00: error: { UNC }
[  182.831697] ata2.00: configured for UDMA/133
[  182.831697] ata2: EH complete
[  182.831697] sd 1:0:0:0: [sdb] 156301488 512-byte hardware sectors (80026 MB)
[  182.831697] sd 1:0:0:0: [sdb] Write Protect is off
[  182.831697] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[  182.831697] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  185.457677] ata2.00: exception Emask 0x0 SAct 0x1 SErr 0x0 action 0x0
[  185.457677] ata2.00: irq_stat 0x40000008
[  185.457677] ata2.00: cmd 60/28:00:7f:40:03/00:00:00:00:00/40 tag 0 ncq 20480 in
[  185.457677]          res 51/40:28:81:40:03/24:00:00:00:00/00 Emask 0x409 (media error) <F>
[  185.461664] ata2.00: status: { DRDY ERR }
[  185.461702] ata2.00: error: { UNC }
[  185.529566] ata2.00: configured for UDMA/133
[  185.529566] ata2: EH complete
[  185.529566] sd 1:0:0:0: [sdb] 156301488 512-byte hardware sectors (80026 MB)
[  185.529566] sd 1:0:0:0: [sdb] Write Protect is off
[  185.529566] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[  185.529566] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  187.014039] EXT3 FS on md0, internal journal
[  187.358186] loop: module loaded

[    8.212160] scsi 0:0:0:0: Direct-Access     ATA      ST380815AS       3.AA PQ: 0 ANSI: 5
[    8.212160] scsi 1:0:0:0: Direct-Access     ATA      ST380815AS       3.AA PQ: 0 ANSI: 5
[    8.212160] scsi 2:0:0:0: Direct-Access     ATA      ST3320620AS      3.AA PQ: 0 ANSI: 5
[    8.232763] scsi 3:0:0:0: Direct-Access     ATA      ST3320620AS      3.AA PQ: 0 ANSI: 5
[    8.232763] scsi 4:0:0:0: CD-ROM            ATAPI    iHAS120   6      7L0F PQ: 0 ANSI: 5
[    8.233619] scsi 5:0:0:0: CD-ROM            TSSTcorp CD/DVDW TS-H653A TI02 PQ: 0 ANSI: 5

/dev/sd[ab] と sd[cd] のそれぞれで、RAID1 を行っております。

$ cat /proc/mdstat 
Personalities : [raid1] 
md3 : active raid1 sdc1[0] sdd1[1]
      312568576 blocks [2/2] [UU]
      
md1 : active raid1 sda2[0] sdb2[2](F)
      77168128 blocks [2/1] [U_]
      
md0 : active raid1 sda1[0] sdb1[1]
      979840 blocks [2/2] [UU]
      
unused devices: <none>

sd 1:0:0:0(/dev/sdb)に問題があるようなので、
つまり、md[01] のどちらかに問題があるようだったのですが、
負荷をかけた時のパーティションから想像すると、md1(/dev/sdb2)の可能性が高いと判断しました。

md0 が EXT3 の root で、
md1 は LVM2 を使っていて、LVM2 の PV が載っています。

bad blocks のチェックを行いたかったのですが、

# mdadm /dev/md1 --fail /dev/sdb2
mdadm: set /dev/sdb2 faulty in /dev/md1
# mdadm /dev/md1 --remove /dev/sdb2  
mdadm: hot removed /dev/sdb2
# fsck -y /dev/sdb2  
fsck 1.41.3 (12-Oct-2008)
fsck: fsck.mdraid: not found
fsck: Error 2 while executing fsck.mdraid for /dev/sdb2
# mdadm /dev/md1 --add /dev/sdb2
mdadm: re-added /dev/sdb2

と、やって上手く行くかと思っていたのですが、ご覧の通りダメでした。
(ファイルシステムが直接使われていないので、当たり前ですね。すみません)

ローカルドキュメントや Google で md の bad blocks について検索したのですが、
私の検索の仕方が悪いせいか、思うようなドキュメントが見つかりませんでした。

どなたか、md array における bad blocks のチェックに関する詳しい情報源をご存じありませんか?

新しい HDD は注文済みなので、
もし、気が向いたら、ご教授願います。