LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-01-2011, 02:14 AM   #1
moodah
LQ Newbie
 
Registered: Sep 2010
Posts: 15

Rep: Reputation: 1
mdadm raid 5 help needed (before I send myself bald)


Hi Guys. Are there any resident mdadm experts that can help me out?

I am getting these ridiculous output after I create a new raid 5 array.

This is the command I used along with the output of the creation..

Quote:
mdadm --create --verbose /dev/md0 --level=5 --raid-devices=6 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sda1 appears to contain an ext2fs file system
size=1953512000K mtime=Thu Jan 1 10:00:00 1970
mdadm: /dev/sda1 appears to be part of a raid array:
level=raid5 devices=6 ctime=Tue Mar 1 16:33:54 2011
mdadm: /dev/sdb1 appears to contain an ext2fs file system
size=1953512000K mtime=Thu Jan 1 10:00:00 1970
mdadm: /dev/sdb1 appears to be part of a raid array:
level=raid5 devices=6 ctime=Mon Feb 28 20:48:21 2011
mdadm: /dev/sdc1 appears to contain an ext2fs file system
size=1953512000K mtime=Thu Jan 1 10:00:00 1970
mdadm: /dev/sdc1 appears to be part of a raid array:
level=raid5 devices=6 ctime=Mon Feb 28 20:48:21 2011
mdadm: /dev/sdd1 appears to contain an ext2fs file system
size=1953512000K mtime=Thu Jan 1 10:00:00 1970
mdadm: /dev/sdd1 appears to be part of a raid array:
level=raid5 devices=6 ctime=Mon Feb 28 20:48:21 2011
mdadm: /dev/sde1 appears to contain an ext2fs file system
size=1953512000K mtime=Thu Jan 1 10:00:00 1970
mdadm: /dev/sde1 appears to be part of a raid array:
level=raid5 devices=6 ctime=Mon Feb 28 20:48:21 2011
mdadm: /dev/sdf1 appears to contain an ext2fs file system
size=1953512000K mtime=Thu Jan 1 10:00:00 1970
mdadm: /dev/sdf1 appears to be part of a raid array:
level=raid5 devices=6 ctime=Mon Feb 28 07:52:30 2011
mdadm: size set to 1953511936K
Continue creating array? y
mdadm: array /dev/md0 started.
All good so far... but now look what happens..

Quote:
mdadm --detail --scan /dev/md0
/dev/md0:
Version : 00.90
Creation Time : Tue Mar 1 17:26:44 2011
Raid Level : raid5
Array Size : 9767559680 (9315.07 GiB 10001.98 GB)
Used Dev Size : 1953511936 (1863.01 GiB 2000.40 GB)
Raid Devices : 6
Total Devices : 6
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Tue Mar 1 17:29:01 2011
State : clean, degraded
Active Devices : 5
Working Devices : 5
Failed Devices : 1
Spare Devices : 0

Layout : left-symmetric
Chunk Size : 64K

UUID : 3dfd8336:af24ffde:13fd50f2:7be02c9e
Events : 0.6

Number Major Minor RaidDevice State
0 8 1 0 active sync /dev/sda1
1 8 17 1 active sync /dev/sdb1
2 8 33 2 active sync /dev/sdc1
3 8 49 3 active sync /dev/sdd1
4 8 65 4 active sync /dev/sde1
5 0 0 5 removed

6 8 81 - faulty spare /dev/sdf1
root@mediacentre2:~# mdadm --detail --scan
ARRAY /dev/md0 level=raid5 num-devices=6 metadata=00.90 UUID=3dfd8336:af24ffde:13fd50f2:7be02c9e
What the hell! I've been trying to build this damn thing for 20 hours now and I keep getting all these weird kinds of errors. I figure its about time that looked for some professional help.
 
Old 03-01-2011, 10:20 PM   #2
moodah
LQ Newbie
 
Registered: Sep 2010
Posts: 15

Original Poster
Rep: Reputation: 1
=( Is there noone out there that can help me?
 
Old 03-02-2011, 09:04 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,404

Rep: Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783
The main thing I see is that sdf1 is 'faulty'. Possibly you just need to

1. remove from array using mdadm --fail & --remove : see Manage mode notes http://linux.die.net/man/8/mdadm
2. go into fdisk, (re-)create a partition on that disk and set type as 'fd'.
3. mdadm --add ....

You also try a fsck on it after the partition, but before 'add'ing it. NB disk should be umounted for a fsck.
Possibly it really is a dead Disk... (loose cable?)
 
  


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
Why can't I mount this md0 raid? (mdadm and software raid) cruiserparts Linux - Software 35 01-05-2013 04:35 PM
Broken raid 5 (11 drives in mdadm) -- data recovery/raid reconstruction needed -- ple jml48197 Linux - Server 4 07-27-2010 01:57 PM
[SOLVED] Software RAID (mdadm) - RAID 0 returns incorrect status for disk failure/disk removed Marjonel Montejo Linux - General 4 10-04-2009 07:15 PM
Dell/Intel ICH7 soft-RAID and mdadm raid-level mistake PhilipTheMouse Linux - General 0 03-14-2009 06:59 PM
RAID mdadm - Sending E-Mails on RAID Failure? rootking Linux - General 1 12-25-2007 04:59 AM

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

All times are GMT -5. The time now is 03:29 PM.

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