LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 08-15-2010, 03:12 AM   #1
asifbasha
Member
 
Registered: Feb 2009
Posts: 98

Rep: Reputation: 15
Raid , before os install or after os install ?


Hai to all

I have configured software raid 5 during fedora installation process . It works fine and it is a fault tolerant .

but when i configured raid 5 after os installation by using mdadm, it does not seem to fault tolerant . If any of the drive fails in array whole raid partition is failed .

Please suggest me some idea to configure raid 5 after os installation
 
Old 08-15-2010, 03:16 AM   #2
Nemesiz
LQ Newbie
 
Registered: Oct 2007
Posts: 22

Rep: Reputation: 1
You want to use mdadm (soft raid) or you are using some raid controllers ?
 
Old 08-15-2010, 06:15 AM   #3
asifbasha
Member
 
Registered: Feb 2009
Posts: 98

Original Poster
Rep: Reputation: 15
Thanks for your quick response

I dont have hardware raid controllers . I want to configure only by using mdadm
 
Old 08-15-2010, 12:33 PM   #4
Nemesiz
LQ Newbie
 
Registered: Oct 2007
Posts: 22

Rep: Reputation: 1
Can you give more details about your hdd structure. Where is root partition and where is raid5?
 
Old 08-17-2010, 08:15 AM   #5
asifbasha
Member
 
Registered: Feb 2009
Posts: 98

Original Poster
Rep: Reputation: 15
I have configured Raid 5 in my fedora system during the graphical os installation process for that i selected 3 harddrives.This raid5 configuration includes /boot, /, partitions.every thing was
fine.

Just for testing purpose, I removed one harddrive from the raid5 array.still the system works fine. I got happy, Then i moved to configure from commandline using mdadm ....

Now i have 4 harddisk(sda,sdb,sdc,sdd). sda is not in raid5 array it consist of /boot /,and swap partitions formatted with ext3 filesystem . I took rest of three drives to configure raid5(sdb,sdc,sdd).

Using fdisk i formatted (sdb,sdc,sdd) to fd filesystem ....

The following commands i used ...

[root@test]# mdadm --create --verbose /dev/md0 --level=5 --raid-device=3 /dev/sdb1 /dev/sdc1 /dev/sdd1 .

then i got "mdadm: array /dev/md0 started " message


[root@test]# cat /proc/mdstat
.
.
.
[3/3][UUU]


[root@test]# mkfs.ext3 /dev/md0

[root@test]# mdadm --detail --scan --verbose > /etc/mdadm.conf

[root@test]# vi /etc/fstab

/dev/md0 /raidtest ext3 defaults 1 2

[root@test]# mount -a

Then i rebooted my system .

The /raidtest partition is successfully mounted ...( I got happy )

For testing purpose i removed one harddrive from the raid5 array, But my system is not booting.

I got the error messages as follows :

fsck.ext3 : Invalid argument while trying to open /dev/md0
/dev/md0:
The superblock could not be read or does not describe a correct ext2 filesystem .
.
.
.
.
Give root password for maintenance
(or type control-D to continue):

why this happened ?

where did i made mistake ?

This dosen't happened in graphical OS installation process(Fedora DVD) of raid5 configuration ..

any suggestions will help me

Thanks in advance to all ....
 
Old 08-17-2010, 09:36 AM   #6
Soadyheid
Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Posts: 756

Rep: Reputation: 125Reputation: 125
Just to confirm, you created the raid from ssdb, ssdc and ssdd AFTER you had booted the original system configured under the Fedora GUI system? You were running this system when you re-created the RAID volume /dev/md0? I'm confused If you created the RAID while running the OS, didn't you just format md0 which means that you've just overwritten your initial system? (apart from the /boot on ssda which contains the kernel)
You need to initialise disks and RAID systems BEFORE you load an OS surely?

Maybe I've missed something in what you've written...

Play Bonny
 
Old 08-17-2010, 09:55 PM   #7
asifbasha
Member
 
Registered: Feb 2009
Posts: 98

Original Poster
Rep: Reputation: 15
Thanks for your response

let me explain clearly . What i did is that i took 4 new harddisk attached to my system , inserted my fedora dvd started graphical installation process .
During graphical installation process i clicked raid button to create raid 5 everything was in GUI . It worked fine .


task 2 : now i selected another system attached only one harddrive and i installed fedora os. After installation Then i attached 3 more new harddisk . By using command line(mdadm) i started to configure raid 5 but it is not showing fault tolerant
 
Old 08-18-2010, 05:54 PM   #8
Soadyheid
Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Posts: 756

Rep: Reputation: 125Reputation: 125
Ah! Your system is loaded on ssda. The RAID is then set up on ssdb, ssdc & ssdd. Sorry, I misunderstood. Did the system boot OK when you re-inserted the disk? Does the system keep running if you pull the disk when it's up? (Oh! painfull... )

Play Bonny!
 
  


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
md raid on install edgjerp Linux - Software 2 05-02-2008 03:44 AM
How to install Fedora 7/soft RAID-1 on a MB with built-in HW(fake) RAID-1? bozhulich Fedora - Installation 3 08-15-2007 08:04 AM
How to install Fedora 7 on soft raid on VT6420 SATA RAID bozhulich Fedora 3 08-14-2007 01:08 AM
Slackware 10.2 install - SCSI RAID OK but install can not see IDE disks ?? gepas Slackware 3 02-08-2006 03:29 PM


All times are GMT -5. The time now is 11:38 PM.

Main Menu
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