LinuxQuestions.org
Review your favorite Linux distribution.
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 05-28-2008, 10:06 AM   #1
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Rep: Reputation: 30
help with mdadm disk failure


I previously created a raid 5 from 4 disks using mdadm (sd[e-h]1)
After using it for awhile, one if the disk fails (mdadm report failure). The disk disappear when using "$fdisk -l"
My OS is redhat EL4, kernel 2.6.9-22

I restart the machine and call fdisk again, no suprise, the disk is back.

$fdisk -l
Code:
Disk /dev/sde: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1               1       60801   488384001   fd  Linux raid autodetect

Disk /dev/sdf: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdf1               1       60801   488384001   fd  Linux raid autodetect

Disk /dev/sdg: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdg1               1       60801   488384001   fd  Linux raid autodetect

Disk /dev/sdh: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdh1               1       60801   488384001   fd  Linux raid autodetect
I then try to restart the RAID, but it failed.
I am sure that the drive is good, but somehow mdadm does not like the drive. How do I fix this problem?

[root@ss1 /]# mdadm --assemble /dev/md1 /dev/sd[e-h]1
Code:
mdadm: /dev/md1 assembled from 2 drives and 1 spare - not enough to start the array.
[root@ss1 /]# cat /proc/mdstat
Code:
Personalities :
md1 : inactive sde1[0] sdf1[4] sdh1[3] sdg1[2]
      1953535744 blocks
unused devices: <none>
 
Old 05-28-2008, 06:26 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
The message is "not enough to start the array", which presumably means the drive that failed has unique data on it. You will need to rebuild an array and restore from backup.

You can 'add' a device to an array to replace a faulty gizmo, but if that drive had unique data (such as when you do plain striping), then this operation is impossible really - you need to wipe and rebuild.

Last edited by pinniped; 05-28-2008 at 06:27 PM.
 
Old 05-29-2008, 08:59 AM   #3
tmwsiy2012
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
I would interpret that message differently.

In a RAID 5 array you will need a minimum of three active disks.

your md1 that is built with 2 drives and a spare does not meet this minimum requirement. You would need 3 drives and a spare or 4 drives to have a vail RAID 5.

I would try to investigate why mdadm is only seeing three of the four drives.

You should be fine any way you slice it if you only lost one drive in RAID5 after all that is the point of RAID 5. the parity data written to the other drives is enough to rebuild a single drive of data.

Anyway just putting in my 2 cents.

Please post back with any developments
 
Old 05-29-2008, 09:59 AM   #4
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Original Poster
Rep: Reputation: 30
I am not sure either why mdadm see only 3 drives. I checked each drive by reformatting it one by one, then mount it sucessfully.
I re-create the RIAD 5 again and it works now.

The problem has been happening many time and i have to re-create the RAID 5 with mdadm. I am not sure if the problem is the disk itself.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mdadm RAID 5 single drive failure atarghe1 Linux - Server 7 12-14-2012 06:20 PM
Raid 5, mdadm failure report ufmale Linux - Server 1 05-24-2008 12:57 PM
is this a disk failure msg - hdc: request senense failure walterj Linux - Hardware 3 03-25-2008 11:01 PM
replace failure disk and rebuild RAID with mdadm ufmale Linux - Software 0 11-15-2007 02:24 PM
Major problem with software raid (mdadm) and disk failure norwolf Linux - Server 8 07-27-2007 06:14 AM


All times are GMT -5. The time now is 01:27 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration