Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-25-2008, 01:45 AM   #1
LQ Newbie
Registered: Jul 2008
Posts: 5

Rep: Reputation: 0
Smile Removed multiple hardisks in RAID5 (Linux) and corrupted filesystem


I have 4 Disk working on RAID5 with RHEL 4.6 Installed on a Dell 2950 server.
By mistake on running Linux to check if RAID is working or not, i removed two hardisk instead i should have removed one, which corrupted my linux filesystem.

I then shutdown the system, inserted the both disks which were withdrawn but it did not boot.

I even did fsck -r, it reparied plenty of files but no luck.
Please suggest what is the best way to repair the OS in cases like this.

Old 07-25-2008, 05:40 AM   #2
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 978

Rep: Reputation: 118Reputation: 118
So, you mean you
1) shutdown the pc
2) removed the HDDs
3) started up the pc
4) shutdown the pc
5) reinstalled the HDDs
6) started up the pc => pc not booting (so you have raid5 as root, right?)

Not sure if it was a good idea to run a fsck -r.

Once 2 HDDs out of 4 failed because of my controller blowing up and the pc didn't want to recognize the raid5 anymore, and I was able to fix it and be able to access all the data with: (I then took a note of what I did )
If in a RAID array two HDDs or more fail / get an unhealthy status at the same time, there is the possibility that something might have gone wrong with the drivers of the controller. Try to restart the array with all the HDDs (e.g. a RAID 5 with 4 HDDs)...
mdadm --assemble --force /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1
...and check in "cat /proc/mdstat" if both the HDDs are still marked as "failed". If not, try to re-add the faulty HDD with...
mdadm --manage /dev/md0 --add /dev/sdd1
...or whichever HDD failed and see if the RAID rebuilds correctly and still works afterwards.
Old 07-29-2008, 11:54 PM   #3
LQ Newbie
Registered: Jul 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks Pearl.
I will try these steps and see if it works for me.

Thanks again!


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
RAID5 data rebuilding by mdadm results in corrupted data! rtyagi Linux - Newbie 0 03-26-2008 01:59 AM
ext3 Filesystem resize after raid5 array growth MaL3aS Linux - Server 4 11-30-2007 06:39 AM
Removed RAID5 array and now no boot Child of Wonder Ubuntu 2 07-27-2007 09:58 PM
Filesystem corruption on software RAID5 drkdiggler Linux - General 6 02-23-2004 08:39 PM
corrupted filesystem gbolly_bolly Linux - Distributions 2 05-06-2002 03:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:07 AM.

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