LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



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

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


Hi

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.

Thanks
 
Old 07-25-2008, 06:40 AM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 716

Rep: Reputation: 81
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 )
Quote:
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-30-2008, 12:54 AM   #3
jeetender
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!
 
  


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


All times are GMT -5. The time now is 10:38 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration