LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-28-2006, 06:19 AM   #1
grpprod
LQ Newbie
 
Registered: Nov 2005
Posts: 13

Rep: Reputation: 0
Raid0 rebuild


Hello,
I have a CentOS 4.2 with two identical HDDs, and the following software RAID configuration:

/dev/md0 (/boot) defined as RAID1
/dev/md1 (/swap) defined as RAID0
/dev/md2 (/) defined as RAID0

The system seems to have crashed, but no disks seem to have failed. Only /dev/md0 seems to be still active (using cat /proc/mdstat). I understand that RAID0 is not redundant, however using CentOS CD-ROM in rescue mode gives me the opportunity to access my root partition (/dev/md2). I can access my data although in a striped volume. So it seems that this RAID0 volume needs to be somehow 'reactivated'.

In rescue mode, I have created an /etc/raidtab, and then tried to use the following:

raidhotadd /dev/md2 /dev/hda3
raidhotadd /dev/md2 /dev/hdb3

but the response is:

can not hot-add disk: invalid argument

Any help would be appreciated.

Last edited by grpprod; 04-28-2006 at 06:22 AM.
 
Old 04-28-2006, 10:57 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
CentOS4 uses mdadm, not raidtools.

Could you be more specific as to what you mean by “crashed” and what modifications you made just prior to the “crash”? Error messages would be helpful.

If you can mount and chroot in rescue mode, then it really doesn’t sound like a raid issue.


As a side issue, why do you have swap defined as a raid0? You should define the two partitions in fstab to be first priority swap (pri=1), which gives raid0 functionality.
 
Old 05-01-2006, 04:00 AM   #3
grpprod
LQ Newbie
 
Registered: Nov 2005
Posts: 13

Original Poster
Rep: Reputation: 0
I mean that the system does not boot anymore. I thought it is a RAID issue because proc/mdstat does not show the RAID volumes to be active (UU).

I am not sure I understand what you mean for the swap issue, I would appreciate it if you could be a little bit more explanative.
 
Old 05-01-2006, 09:43 AM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
If you can boot into rescue mode, search for the installation, mount it and chroot as you infer, then the raids are functioning.

If you boot into rescue mode, but don’t search/mount/chroot, then the raids are not started.

Regarding swap configuration, see the Software Raid HowTo section “2.3 Swapping on RAID”: http://tldp.net/HOWTO/html_single/So...D-HOWTO/#ss2.3
 
Old 05-02-2006, 01:13 AM   #5
grpprod
LQ Newbie
 
Registered: Nov 2005
Posts: 13

Original Poster
Rep: Reputation: 0
So in this case, can the RAID still be rebuilt? Perhaps using mdadm?
 
  


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
Adding Via Raid0 to Grub??? Jordees SUSE / openSUSE 4 10-25-2006 11:41 AM
RAID0 Question aylov Linux - Hardware 0 12-14-2005 04:36 AM
Booting to RAID0 OpenCircuit Slackware 5 12-08-2005 11:54 PM
MDK10 on RAID0 Jestrik Linux - Hardware 0 04-15-2004 06:50 AM
boot to PATA raid0 on Promise 378 *and see* SATA raid0 ICH5 ? patr Linux - Hardware 2 02-25-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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