LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-26-2011, 03:17 PM   #1
DavidHH
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
Problem while reassebling raid using mdadm


Help.

I have been using mdadm raid5 array on my old ubuntu for over 5 years withount problem. Then I decided to reinstall.

Now, I got new fresh clean install of Ubuntu (lucid lynx) and did commands
Code:
sudo apt-get install mdadm
sudo mdadm --create /dev/md0 --level=5 -n 4 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
which failed with (as far as I remember)
Code:
/dev/sda device or resource busy
/dev/sdb seems to be part of raid ...
/dev/sdc seems to be part of raid ...
/dev/sdd seems to be part of raid ...
Then I went to google for solution. After some time, I tried that command again but I have got somthing like
Code:
/dev/sda is too small. 0K
/dev/sdb device or resource busy
/dev/sdc seems to be part of raid ...
/dev/sdd seems to be part of raid ...
sda is now _empty_ and sdb busy now? I got feeling something is messing with my disk, finished with first one and now it is destroying my second one. I kicked power cord out of my computer, disconnected these 4 disks and now I am seeking for profesional help.

Last edited by DavidHH; 08-26-2011 at 03:18 PM.
 
Old 08-26-2011, 05:40 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
How did you partition the drives during the install phase? And, what doesfdisk -l /dev/sdX1 on each drive show?
 
Old 08-26-2011, 09:12 PM   #3
DavidHH
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Update:

Problem "solved".
After talking to my more experienced friend, I exhumed my old system to find the raid volume is completely ok. What a relief. Then I uninstalled dmraid on my new system (which got somewhat automatically installed and maybe caused all that) and copied mdadm.config from the old system. That was enough to make the raid volume work. I still don't know what caused what happened to me before, but now everything works fine and you can mark this thread as "solved".

Last edited by DavidHH; 08-26-2011 at 09:17 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem creating new mdadm raid 1 array jlowry Linux - Software 12 03-04-2011 05:13 PM
Weird problem with software raid-5 mdadm NewAgeRetroHippie Linux - Server 3 02-21-2011 08:13 AM
mdadm software raid problem after every reboot agurkas Linux - General 3 08-04-2010 09:53 AM
Dell/Intel ICH7 soft-RAID and mdadm raid-level mistake PhilipTheMouse Linux - General 0 03-14-2009 05:59 PM
Major problem with software raid (mdadm) and disk failure norwolf Linux - Server 8 07-27-2007 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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