Author Topic: failed RAID1  (Read 6773 times)

Harris

  • Newbie
  • *
  • Posts: 9
    • View Profile
failed RAID1
« on: May 22, 2010, 08:53:20 am »
i got my other 2tb hard drive and am attempting to set them in a RAID1 setup, they are connected through a software RAID card, i do not have a RAID setup through its BIOS, i followed the wiki instructions when i go to build the RAID it just comes back as "degraded, rebuilding" and refreshing the page comes back as "failed". i followed the troubleshooting steps on the wiki, but i'm still having an issue, when i run "sudo mdadm --stop /dev/md1", i get "mdadm: error opening /dev/md1: No such device or address" in return, i have rebuilt the partition and formated each drive in EXT3 multiple times and it refuses to work...

any suggestions are welcome.

thanks.

jimbodude

  • Guru
  • ****
  • Posts: 372
    • View Profile
Re: failed RAID1
« Reply #1 on: May 24, 2010, 06:46:05 pm »
If you only have one md device it will be "/dev/md0", not "/dev/md1", by the way.  Look at the output from "mdadm --detail" - read the mdadm man page to figure out how to get additional information about the state of the array.

Harris

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: failed RAID1
« Reply #2 on: June 02, 2010, 03:44:11 am »
sorry for the long wait in replying, life happens and i wasn't apply to work on it for awhile, i tried "sudo mdadm --stop /dev/md0" and still get the same results, when i do "mdadm --detail" it returns "mdadm: No devices given." when i do "fdisk -l" i get:

Cannot open /dev/sda
Cannot open /dev/sdb

thanks for the reply.

DeathMagnetic

  • Veteran
  • ***
  • Posts: 53
    • View Profile
Re: failed RAID1
« Reply #3 on: June 02, 2010, 10:42:08 am »
Same problem here with RAID 5. I eventually gave up and just used them seperately.

jimbodude

  • Guru
  • ****
  • Posts: 372
    • View Profile
Re: failed RAID1
« Reply #4 on: June 02, 2010, 11:21:21 pm »
sorry for the long wait in replying, life happens and i wasn't apply to work on it for awhile, i tried "sudo mdadm --stop /dev/md0" and still get the same results, when i do "mdadm --detail" it returns "mdadm: No devices given." when i do "fdisk -l" i get:

Cannot open /dev/sda
Cannot open /dev/sdb

thanks for the reply.

...If you're going to use mdadm commands, you're going to need to read the mdadm documentation...  You need to specify which device you want details about.
Code: [Select]
mdadm --detail /dev/md0
Your user cannot open the sd devices because it is not in the disk group.  Retry the command as root using sudo.

DeathMagnetic

  • Veteran
  • ***
  • Posts: 53
    • View Profile
Re: failed RAID1
« Reply #5 on: June 03, 2010, 11:34:20 am »
Fized my problem. RAID support wasn't enabled. Check with:

Code: [Select]
cat /proc/mdstat
If you find no file use:

Code: [Select]
sudo modprobe md-mod
then retry

Code: [Select]
cat /proc/mdstat
and you should get something to come up. Then try the webadmin page for RAIDing.

EDIT: I tried to set up the RAID array on the webadmin page and after the array is built I just get an error saying it's damaged. Also, I tried restarting the computer and the array didn't reinitialise. I had to go into the konsole and use mdadm to assemble the array again.
« Last Edit: June 03, 2010, 01:05:49 pm by typhoon_2099 »

Harris

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: failed RAID1
« Reply #6 on: June 04, 2010, 06:00:19 am »
whoops, i apologize, i was blindly reading your reply about using mdadm --details, i got "mdadm: md device /dev/md0 does not appear to be active." so i ran "sudo modprobe md-mod" and then "cat /proc/mdstat" and recreated the RAID. now i am also looked at "damaged" under status "sudo mdadm --detail /dev/md3" comes back with:

/dev/md3:                                     
        Version : 00.90                       
  Creation Time : Thu Jun  3 22:38:58 2010   
     Raid Level : raid1                       
     Array Size : 1953511936 (1863.01 GiB 2000.40 GB)
  Used Dev Size : 1953511936 (1863.01 GiB 2000.40 GB)
   Raid Devices : 2                                 
  Total Devices : 2                                 
Preferred Minor : 3                                 
    Persistence : Superblock is persistent           

    Update Time : Thu Jun  3 22:39:02 2010
          State : active, resyncing       
 Active Devices : 2                       
Working Devices : 2                       
 Failed Devices : 0                       
  Spare Devices : 0                       

 Rebuild Status : 0% complete

           UUID : 139730f9:b046d070:bd9f1658:0a1d2015 (local to host dcerouter)
         Events : 0.3                                                         

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       1       8       17        1      active sync   /dev/sdb1


so i'm making progress, i'm trying to read up on mdadm but i don't do well trying to read technical documents.

thank you jimbodude and typhoon_2099, i feel like i'm getting somewhere now :)

DeathMagnetic

  • Veteran
  • ***
  • Posts: 53
    • View Profile
Re: failed RAID1
« Reply #7 on: June 09, 2010, 01:00:51 am »
I left the college on thursday and the array was being rebuilt. I'll see what it says tomorrow when it'll have no doubt been turned off over the weekend.