LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-16-2009, 09:10 AM   #1
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158
Blog Entries: 1

Rep: Reputation: 30
RAID5 won't start


root@RCH-SERVER:/home/admiral# mdadm --assemble --scan
Quote:
mdadm: /dev/md/0 assembled from 2 drives - not enough to start the array.
The server is Ubuntu 8.10 Server, running one HDD for the OS & four 250 GB HDDs for the RAID5 array, running strictly the server (no other OS on the box). It's been up & working since December, built with all brand-new WD drives. Suddenly, it stopped, wouldn't let me rename a folder (from my WinXP box). So, I shutdown the server & rebooted it, and now the array won't assemble.

Any ideas how to get it back, or at least get the data online long enough to get a backup - I have a blank 1 TB drive installed in my WinXP box, ready to copy the data.

Thanks,
David
 
Old 08-16-2009, 09:28 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi David,

Looks like 2 of the drives in your raid5 aren't present, you could try booting off cd and seeing if all drives are actually detected. You didnt mention the drive technology.. are some/all of them scsi ? Could you please give us the disk connection layout ?

cheers,

kbp
 
Old 08-16-2009, 09:53 AM   #3
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
kbp,

Thanks for the response. I've just rebooted, checked bios, and all 5 drives show to be present. All 5 drives are SATA2, the motherboard is an ASUS, with 5 SATA slots. The drives are configured in BIOS as SATA, even tho it will configure fake-raids. The raid is fully configured by the OS. All 4 of the RAID5 drives are model# WD2500AAKS.

What CD should I use to boot from? I can definitely build a bootable cd, if I know what I need to have on it.

Thanks,
David
 
Old 08-16-2009, 10:20 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Hi David,

If they're all detected, try running 'mdadm -Af /dev/md0', this will (f)orce (A)ssemble the array depending on the cause of the original failure... I think its unlikely that you had 2 simultaneous disk failures so hopefully you'll get your data back... (just had a thought, I hope one hadn't quietly failed some time back.. ) good luck

kbp
 
Old 08-16-2009, 11:07 AM   #5
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
kbp,

I ran: mdadm -Af /dev/md0
Quote:
root@RCH-SERVER:/etc/mdadm# mdadm -Af /dev/md0
mdadm: /dev/md0 not identified in config file.
My mdadm.conf file shows:
Quote:
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
ARRAY /dev/md/0 level=raid5 metadata=1.0 num-devices=4 UUID=13782a18:85c82f51:e999ccd0:c2ca0614 name=0

# This file was auto-generated on Sun, 11 Jan 2009 19:39:47 -0600
"mdadm.conf" 23L, 729C
So, I ran: mdadm -Af /dev/md/0
Quote:
root@RCH-SERVER:/etc/mdadm# mdadm -Af /dev/md/0
mdadm: no devices found for /dev/md/0
Thanks,
David
 
Old 08-16-2009, 11:33 AM   #6
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by DarkFlame View Post
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
ARRAY /dev/md/0 level=raid5 metadata=1.0 num-devices=4 UUID=13782a18:85c82f51:e999ccd0:c2ca0614 name=0

# This file was auto-generated on Sun, 11 Jan 2009 19:39:47 -0600
"mdadm.conf" 23L, 729C
At fist blush your mdadm.conf file seems to have an error....try replacing the following line...

Code:
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR root

# definitions of existing MD arrays
ARRAY /dev/md/0 level=raid5 metadata=1.0 num-devices=4 UUID=13782a18:85c82f51:e999ccd0:c2ca0614 name=0

# This file was auto-generated on Sun, 11 Jan 2009 19:39:47 -0600
"mdadm.conf" 23L, 729C
With this...
Code:
ARRAY /dev/md0 level=raid5 metadata=1.0 num-devices=4 UUID=13782a18:85c82f51:e999ccd0:c2ca0614 name=0
Looks like you put an extra slash maybe?
 
Old 08-16-2009, 12:55 PM   #7
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Custangro, I changed it, but there's no apparent change:

Quote:
root@RCH-SERVER:/home/admiral# mdadm --assemble --scan
mdadm: /dev/md0 assembled from 2 drives - not enough to start the array.
Is there a place with good instructions on building a LIVE CD from which I can boot the system? I HAVE a 2nd 80gb OS HDD that I built in December, and had the system where I could swap them out & not lose a second (except reboot time). I tried that with no changes in the results. Would a LIVE CD be the same thing? Or would it be different?

I can also built one using OpenSuSE & a GUI that would allow me to reassemble the RAID5 array without losing data - That's how I started this a year ago, building the system with OpenSuSE & then getting dissatisfied with it's workings and going to Ubuntu Server 8.10, but using the same RAID5 array created when OpenSuSE was built. I could go back and start that over, if that will help.

Your thoughts?

Thanks,
David
 
Old 08-16-2009, 03:57 PM   #8
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
What does...

Code:
root@host# fdisk -l
...show?

judging from this error...

Code:
mdadm: /dev/md0 assembled from 2 drives - not enough to start the array.
Either 1) You DON'T have a RIAD5 or 2) A disk has failed

-C

Last edited by custangro; 08-16-2009 at 03:59 PM.
 
Old 08-16-2009, 04:47 PM   #9
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
Quote:
root@RCH-SERVER:/# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x41413535

Device Boot Start End Blocks Id System
/dev/sda1 1 30401 244196001 fd Linux raid autodetect

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0002d3a2

Device Boot Start End Blocks Id System
/dev/sdb1 1 30401 244196001 fd Linux raid autodetect

Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00010f8f

Device Boot Start End Blocks Id System
/dev/sdc1 1 30401 244196001 fd Linux raid autodetect

Disk /dev/sdd: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00055741

Device Boot Start End Blocks Id System
/dev/sdd1 1 9327 74919096 83 Linux
/dev/sdd2 9328 9729 3229065 5 Extended
/dev/sdd5 9328 9729 3229033+ 82 Linux swap / Solaris

Disk /dev/sde: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b3fcd

Device Boot Start End Blocks Id System
/dev/sde1 1 30401 244196001 fd Linux raid autodetect
I HAD a RAID5 array when I started renaming a few photograph folders. It's ACTING like 2 of the 4 disks have failed, but I can't find any physical evidence thereof, and I can't imagine that two HDDs, less than 9 months old, would have failed simultaneously - after all, this is a home server, not an enterprise machine. I could be wrong about the 2 (not) failing simultaneously, but it just looks like something marked them as bad (or busy) so that they won't load.

Thanks,
David
 
Old 08-16-2009, 05:01 PM   #10
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by DarkFlame View Post
I HAD a RAID5 array when I started renaming a few photograph folders. It's ACTING like 2 of the 4 disks have failed, but I can't find any physical evidence thereof, and I can't imagine that two HDDs, less than 9 months old, would have failed simultaneously - after all, this is a home server, not an enterprise machine. I could be wrong about the 2 (not) failing simultaneously, but it just looks like something marked them as bad (or busy) so that they won't load.

Thanks,
David
I'm not _too_ familiar with mdadm...so this is a long shot...try replacing the "ARRAY" line with something like this (reboot after making changes)...

Code:
ARRAY /dev/md0 devices=/dev/sda1,/dev/sdb1,/dev/sdc1,/dev/sdd1
Not sure how many disks are in your array...but it looks like you have 4...


Also try....

Code:
 mdadm --detail --scan

Last edited by custangro; 08-16-2009 at 05:32 PM.
 
Old 08-19-2009, 09:56 PM   #11
DarkFlame
Member
 
Registered: Nov 2008
Location: San Antonio, TX, USA
Distribution: Ubuntu Server 8.10 & SAMBA 3.2.3
Posts: 158

Original Poster
Blog Entries: 1

Rep: Reputation: 30
I downloaded & installed SmartMonTools, and ran diagnostics. It is consistently showing the 3 drives /dev/sda, /dev/sdb, & /dev/sde are fine (/dev/sdd is the OS drive, so that one doesn't count), but that /dev/sdc has a consistent read error.

So, I ordered a new drive, exact same model # as the original 4, and it'll be in tomorrow. After I get off work tomorrow, I'll unmount the old drive, fsdisk the new one to match one of the others, and then mount the new one, and it SHOULD have my data back & operational before bed time.

I'll post results here after I'm done.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Raid5 array works but won't start on boot hazmatt20 Linux - Server 3 12-14-2007 01:28 AM
Help w/ Raid5 failure! compjock Linux - Newbie 2 01-24-2007 04:36 PM
RAID5 capacity jovie Linux - Hardware 2 06-14-2006 07:08 AM
Raid5 subho Linux - Newbie 1 03-24-2006 04:33 PM
Raid5 IwantLINUX Linux - Newbie 2 03-17-2005 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration