[ukai] A crow may be drowned by aping a cormorant
Fumitoshi UKAI's hacking life

Sat, 18 Jun 2005

Failed to repair broken disk ...

After FSIJ monthly seminar, we discussed possibility of "summer of code" in Japan. What theme is good for "summer of code"?

Anyway, since a disk is broken in snapshot.debian.net archive, we tried to fix this issue.

gniibe, knok and ukai go to Akihabara to buy 250GB HDD (WD 2500JB) and have supper at Kitchen Jiro.

Then, we go to Ootemachi NOC.

Here is record

# cat /proc/mdstat
Personalities : [raid1] [raid5] [multipath]
read_ahead 1024 sectors
md5 : active raid5 sdh1[3](F) sdg1[2] sdf1[1] sde1[0] sdd1[7] sdc1[6] sdb1[5] sda1[4]
      1709370880 blocks level 5, 128k chunk, algorithm 0 [8/7] [UUU_UUUU]
(snip)
# mdadm --detail /dev/md5
/dev/md5:
        Version : 00.90.00
  Creation Time : Sun May  9 20:27:05 2004
     Raid Level : raid5
     Array Size : 1709370880 (1630.18 GiB 1750.40 GB)
    Device Size : 244195840 (232.88 GiB 250.06 GB)
   Raid Devices : 8
  Total Devices : 8
Preferred Minor : 5
    Persistence : Superblock is persistent

    Update Time : Fri May 20 01:46:33 2005
          State : active, degraded
 Active Devices : 7
Working Devices : 7
 Failed Devices : 1
  Spare Devices : 0

         Layout : left-asymmetric
     Chunk Size : 128K

           UUID : 57db5f7d:550a2aed:f3dc21f8:2dc771c6
         Events : 0.4

    Number   Major   Minor   RaidDevice State
       0       8       65        0      active sync   /dev/sde1
       1       8       81        1      active sync   /dev/sdf1
       2       8       97        2      active sync   /dev/sdg1
       3       8      113        3      faulty   /dev/sdh1
       4       8        1        4      active sync   /dev/sda1
       5       8       17        5      active sync   /dev/sdb1
       6       8       33        6      active sync   /dev/sdc1
       7       8       49        7      active sync   /dev/sdd1

Hmm, /dev/sdh1 is faulty. So, I remove it from /dev/md5 and shutdown the machine.

# mdadm /dev/md5 -r /dev/sdh1
# shutdown -h now

Unfortunately, we don't have a key to open the HDD case! That is, broken 250GB HDD is locked in the USB box! gniibe say the key should be in the office at Bunkyo Green Court. Bravely, we decompose it and try to open it by force. We finally replace the disk with new one. Reboot the machine.

The disk is recognized successfully, However, it fails to access the disk. I can't even fdisk on the disk. Oh my god... We discuss and conclude that opening the HDD box by force is the cause of the failure. Then, there are nothing to do today. So, I configure the RAID5 with only 7 disks and mount as read only.

# mdadm --assemble /dev/md5 --run /dev/sd{a,b,c,d,e,f,g}1
# mount -o ro /dev/md5 /archive

gniibe will find the key in the office and replace/repair the HDD box tomorrow. Thanks!

[20:05] | [debian/snapshot] | # | TB| G



Name:


E-mail:


URL:


Comment:


< June 2005 >
SuMoTuWeThFrSa
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
2627282930  

Categories

Archives

My Sites
ukai.jp
mu
me
Diary
[rss]

Web Sites
Debian
Debian JP
snapshot.debian.net
Japan Linux Association
Free Software Initiative of Japan

powered by pyblosxom