LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   RAID 5 problem (http://www.linuxquestions.org/questions/linux-general-1/raid-5-problem-700697/)

orenga 01-28-2009 11:10 PM

RAID 5 problem
 
Hi everyone


I had raid 5 for data, with 3 disks: /dev/sdb /dev/sdc /dev/sdd.
Also there is a system disk /dev/sda.
I add another system disk that become /dev/sdb so the raid disks become /dev/sdc /dev/sdd /dev/sde.
Since the raid disk didn't start I made a mistake and try to assemble the raid with the previous configuration:

Code:

echo 'DEVICE /dev/sdb /dev/sdc /dev/sdd' > mdadm.conf
mdadm --examine --scan --config=mdadm.conf >> mdadm.conf
mdadm -A --scan

Immediately after that I understood what I did and now I try to fix it.
Now the situation is that I have the raid but can't mount it:

Code:

# mdadm -D /dev/md0

/dev/md0:
        Version : 0.90
  Creation Time : Wed Aug 27 19:35:26 2008
    Raid Level : raid5
    Array Size : 625142272 (596.18 GiB 640.15 GB)
  Used Dev Size : 312571136 (298.09 GiB 320.07 GB)
  Raid Devices : 3
  Total Devices : 3
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Thu Jan 29 06:05:11 2009
          State : clean
 Active Devices : 3
Working Devices : 3
 Failed Devices : 0
  Spare Devices : 0

        Layout : left-symmetric
    Chunk Size : 64K

          UUID : ce1bae3d:532e86e3:14e9d8a5:05270762
        Events : 0.28

    Number  Major  Minor  RaidDevice State
      0      8      32        0      active sync  /dev/sdc
      1      8      16        1      active sync  /dev/sdb
      2      8      48        2      active sync  /dev/sdd

Code:

# mount /dev/md0 /mnt/RaidData/

mount: wrong fs type, bad option, bad superblock on /dev/md0,
      missing codepage or helper program, or other error
      In some cases useful info is found in syslog - try
      dmesg | tail  or so

Can anyone help me before I do something wrong.
Thanks
Oren

Pearlseattle 02-03-2009 01:12 PM

What does "cat /proc/mdstat" say? Any harddisk down? (when instead of the "U" thre is a "_").
E.g. for me it looks like this:

Code:

Personalities : [raid6] [raid5] [raid4] [raid1]
md0 : active raid5 sde1[0] sdb1[3] sdd1[2] sdc1[1]
      732587712 blocks level 5, 32k chunk, algorithm 2 [4/4] [UUUU]
     
md1 : active raid1 sdf1[0] sdg1[1]
      1465135936 blocks [2/2] [UU]
     
unused devices: <none>



All times are GMT -5. The time now is 07:57 AM.