December 13, 2017, 06:34:23 PM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: recover/repair/remount an md0 device  (Read 1755 times)

Offline julia2009

  • New Member
  • Posts: 2
recover/repair/remount an md0 device
« on: October 13, 2009, 12:42:42 PM »
Hi there,

I have a huge problem: after a power fluctuation, my server crashed. The Centos linux was installed on a 3 USB sticks array : sda2 ,sdb1,sdc1 with a small boot partition on sda1. On reboot it gives me now a kernel panic error. As I still hope to recover some of my data (settings mostly) I'm trying to remount the drives on a laptop.
  Got past some mdadm.conf problems, and now I get:

# mdadm --examine --scan
ARRAY /dev/md0 level=raid0 num-devices=3 UUID=68329964:dfc9489f:29b9f808:170413ab

# mount /dev/md0 /2
mount: you must specify the filesystem type

# mount -t ext2 /dev/md0 /2
mount: wrong fs type, bad option, bad superblock on /dev/md0,
       missing codepage or other error
       (could this be the IDE device where you in fact use
       ide-scsi so that sr0 or sda or so is needed?)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

# mdadm -A /dev/md0
mdadm: /dev/md0 has been started with 3 drives.

# cat /proc/mdstat
Personalities : [raid0]
md0 : active raid0 sda2[0] sdc1[2] sdb1[1]
      11726848 blocks 256k chunks

unused devices: <none>


I'm not sure the order in the mdstat return is correct:   sda2[0] sdc1[2] sdb1[1] or the "256k chunks"
I'm not convinced that all data is lost so if you have any suggestion on what I may try to read something, I'll be eternally grateful.

Thank you



Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
Re: recover/repair/remount an md0 device
« Reply #1 on: October 29, 2009, 03:41:33 PM »
Software raid? Man, that's nasty problem and badluck man.

Have you tried using use recovery cd (i.e sysrescuecd) while the disks are on the server and try to mount it and to forced fsck ?