Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
recovering faulty raid5 array
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Flamie
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 106
Location: Gothenburg, Sweden

PostPosted: Thu Jan 27, 2005 3:43 pm    Post subject: recovering faulty raid5 array Reply with quote

Hi, yesterday my array was working nicely using evms.
a reboot later things didn't work at all, 2 devices reported broken.

both of these devices works and get listed when I boot up (I can cfdisk them as well).

I read some on google and these forums, but my problem seem unique.

here is some information:
Code:

roze root # mdadm -E /dev/hda
/dev/hda:
          Magic : a92b4efc
        Version : 00.90.00
           UUID : 17772939:b659f8ec:f3d658e2:5a70ec8d
  Creation Time : Wed Jan 26 08:19:04 2005
     Raid Level : raid5
    Device Size : 160086464 (152.67 GiB 163.93 GB)
   Raid Devices : 4
  Total Devices : 4
Preferred Minor : 0

    Update Time : Thu Jan 27 12:52:33 2005
          State : clean
 Active Devices : 2
Working Devices : 2
 Failed Devices : 4
  Spare Devices : 0
       Checksum : 52c1b6fb - correct
         Events : 0.83802

         Layout : left-symmetric
     Chunk Size : 32K

      Number   Major   Minor   RaidDevice State
this     0       3        0        0      active sync   /dev/hda

   0     0       3        0        0      active sync   /dev/hda
   1     1       3       64        1      active sync   /dev/hdb
   2     2       0        0        2      faulty removed
   3     3       0        0        3      faulty removed


now, I have not made any partitions, but instead raided the entire disks.
all four ones, a through d, was used for a raid5 array.

suddenly after a reboot hdc and hdd loose their superblocks.
if possible, I'd like to reset their superblocks and add them to the array again.

I've tried playing around with raidtools, evms and mdadm.
(now I've removed raidtools and evms, they cause too much trouble)

Code:

mdadm --assemble -u 17772939:b659f8ec:f3d658e2:5a70ec8d -f /dev/md/0


gives me a segfault.
I've tried compiling i with i386 as suggested in another thread as well as using the newer masked version.

can someone please tell me why the superblock disappeared so I can avoid that in the future, and how to restore my array from this state?

thanks in advance, Flamie
Back to top
View user's profile Send private message
Flamie
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 106
Location: Gothenburg, Sweden

PostPosted: Thu Jan 27, 2005 8:17 pm    Post subject: Reply with quote

oki folks, I found a way to reconstruct the broken superblocks.

Code:

# mkraid --force /dev/md/0


make the array working again, however it is reconstructing the data in it as well, so I can't be sure it uses the right data, all seems to be hanging on whether or not I wrote the right stuff in raidtab (checked with mdadm for the info, so let's hope this works).

I will be back later today or tomorrow with the results.
Back to top
View user's profile Send private message
Flamie
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 106
Location: Gothenburg, Sweden

PostPosted: Fri Jan 28, 2005 8:26 am    Post subject: Reply with quote

Turned out the entire array synced up with bad data.
I noticed in my dmesg that I have the DriveReady SeekComplete error I once had before.

all of my googling and forum reading suggests this is a problem with either the cables or disks, and I tested all my disks with smarttools and they are working.

could this also be a cause of a faulty ide-controller? kernel-bug? (just went back to plain gentoo-sources in case it is)

*sighs heavily*

just another day in my wonderful life...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum