LinuxQuestions.org
Visit Jeremy's Blog.
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 12-08-2010, 10:10 AM   #1
Bubbagump210
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
RAID 10 won't assemble


I have a situation where a box rebooted and "forgot" its software RAID setup. Here is the layout:

Main disk that has grub and the /boot partition

A RAID 10 volume at / with everything else.

Grub processes, the kernel "starts" and then fails when trying to access everything in /.

As a recovery attempt I booted to Knoppix.

The partition layout is as follows:

/dev/hde1 * 1 25 200781 fd Linux raid autodetect
/dev/hde2 26 36267 291113865 fd Linux raid autodetect


/dev/hdf1 242 36483 291113865 fd Linux raid autodetect
/dev/hdf2 * 1 241 1935801 fd Linux raid autodetect


/dev/hdg1 * 1 25 200781 fd Linux raid autodetect
/dev/hdg2 26 36267 291113865 fd Linux raid autodetect


/dev/hdh1 242 36483 291113865 fd Linux raid autodetect
/dev/hdh2 * 1 241 1935801 fd Linux raid autodetect


My RAID 10 is made up of /dev/hde2, /dev/hdf1, /dev/hdg2, and /dev/hdh2

In Knoppix I have run

# modprobe md
# mdadm --examine --scan > /etc/mdadm/mdadm.conf

Output looks like:
Code:
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=6b60a409:23bc50ac:dc2b204c:ef5d2cd3

ARRAY /dev/md2 level=raid10 num-devices=4 UUID=b209a118:62760902:cdbbd73f:a6e41fb8

ARRAY /dev/md1 level=raid1 num-devices=2 UUID=364c8a59:438e7372:a5be47de:d442581d

Then I ran

# mdadm --assemble -f -R /dev/md2 /dev/hde2 /dev/hdf1 /dev/hdg2 /d ev/hdh1


Which gives me the error:

mdadm: cannot open device /dev/hde2: Device or resource busy
mdadm: /dev/hde2 has no superblock - assembly aborted


Any ideas how I can get this thing to mount and work?
 
Old 12-08-2010, 12:03 PM   #2
Bubbagump210
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Ok, I booted to a newer version of Knoppix and I am getting very different results.

I ran

# mdadm --assemble --run -f /dev/md2 /dev/sda2 /dev/sdb1 /dev/sdc2 /dev/sdd1

With the result

mdadm: no recogniseable superblock on /dev/sda2
mdadm: /dev/sda2 has no superblock - assembly aborted


However, an --examine now shows no data on any partitions.

Is there a similar procedure as with hardware RAID where you can "retag" the drives without data loss?

Last edited by Bubbagump210; 12-08-2010 at 12:14 PM.
 
  


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
Raid array won't auto-assemble Metapsyborg Slackware - Installation 1 09-25-2009 03:50 PM
How do I get mdadm to assemble a raid using local and nbd devices adrian_stephens Linux - Server 3 05-29-2009 10:42 AM
Cannot assemble my clean RAID... silicon.pyro Linux - Server 12 08-20-2007 01:40 AM
Dismantle Raid 1 Array, then re-assemble...? freefall235 Linux - Hardware 4 07-31-2007 10:42 PM
mdadm fails to assemble my RAID device tomhildebrand Fedora 6 06-28-2007 12:08 AM

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

All times are GMT -5. The time now is 06:35 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