Help with degraded array

Discussion in 'Technical' started by bernholdt, Oct 17, 2011.

  1. bernholdt

    bernholdt Member

    Hey Guys
    Been updating fron Lenny to squeeze recently, but now im having trouble with a degraded array.

    Been searching sround the web for solutuins but havent been able to find any.

    Here are some output of the commands asked for other places.
    I really need some help solving this I really cant seem to find the time to reinstall the server right now, so any help would be apreciated.

    blkid
    df -Tah
    mdstat

    mdadm --misc --detail /dev/md1
    mdadm --misc --detail /dev/md2
     
  2. till

    till Super Moderator

    Have you tried to readd the missing devices sdb2 and sdb3 to the arrays md1 and md2?
     
  3. bernholdt

    bernholdt Member

    Hey Till
    No i haven't i couldnt see wich devises that were missing, how did you see that?

    How would i go add the devises to the array again?

    Regards
    Michael
     
  4. till

    till Super Moderator

    You can see that in the mdstat output. If you compare the working array md0:

    md0 : active (auto-read-only) raid1 sda1[0] sdb1[1]

    with e.g. the broken md1:

    md1 : active raid1 sda2[0]

    then you see that the first line lists all devices that are part of the array. in md1, the array consist only of the sda2 device, the sdb2 device is missing.

    Before you start to repair the array, please ensure that you have a backup of all data of that server. It might always happen that data gets lost.

    Then try to readd the sdb2 device to md1:

    mdadm --manage /dev/md1 --add /dev/sdb2

    and the sdc2 device to md2:

    mdadm --manage /dev/md2 --add /dev/sdb3

    If this worked, you should see with mdstats that the devices get resynced now:

    cat /proc/mdstat
     
  5. bernholdt

    bernholdt Member

    Hi till
    I apreciate your help, im gonna give it a go during the night.

    Regards
    Michael
     
  6. bernholdt

    bernholdt Member

    Hey Till
    Thank you so much for your help, i managed to rebuild the array without any dataloss.

    Regards
    Michael
     

Share This Page