LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-12-2003, 08:16 AM   #1
Iced Earth
LQ Newbie
 
Registered: Aug 2003
Location: Le Quebec simonac !
Distribution: Red Hat / Slackware
Posts: 6

Rep: Reputation: 0
Raid software recovery


Hello everybody ! I have setup a test station where I'm simulating RAID crash to help me to understand how recovery a RAID, but I have questions :

Infos about my test station :
-------------------------------------------------------------------
Red Hat Linux 8.0
Kernel 2.4.18-14
raidtools-1.00.2
-------------------------------------------------------------------


Question 1.
-----------------

raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/hdc1
raid-disk 0
device /dev/hda5
raid-disk 1


When I'm simulating the crash of the disk hdc1 in a RAID-1 and that I reboot, the system don't want to complete the boot. That is indicating something "Invalid argument /dev/md0 is not a RAID0 or LINEAR array". Why it is not booting in "degraded mode". So, I have to enter the root password to enter a "maintenance mode". But how recover the RAID ? I can't do execute raidstart /dev/md0 because this error "Invalid argument /dev/md0 is not a RAID0 or LINEAR array" keep coming. So, how I'm suppose to execute my "raidhotadd" </dev/something> ?
Finally I have change my /etc/raidtab for that...

raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/hda5
raid-disk 1
device /dev/hdc1
failed-disk 1

...and the system has finally reboot in degraded mode ! I don't understand. Personnally I was thinking that the file should have be edited just like that :

raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
chunk-size 4
persistent-superblock 1
device /dev/hdc1
failed-disk 1
device /dev/hda5
raid-disk 1

Why the fact of deplacing the entry about the failed drive to the bottom of the /etc/raidtab is important ?



Question 2.
--------------
If after a drive crash I'm adding (with the raidhotadd command) to the RAID a partition which was not listed in the /etc/raidtab initially, have me to edit the /etc/raidtab to add the new drive like listed by /proc/mdstat after the RAID reconstruction ?
 
  


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
Software RAID 10: recovery hamish Linux - Software 1 10-27-2005 02:36 PM
Raid 1 Recovery after a drive failed... Wyntyr Linux - General 2 09-02-2005 05:01 PM
RAID Recovery.... PLEASE HELP!!! kburgess Linux - Newbie 1 04-18-2004 02:04 AM
linear raid recovery beaucoup Linux - Software 0 02-27-2004 03:28 AM
RAID Recovery DavidPhillips Linux - General 0 10-03-2001 11:59 AM


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