LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-17-2008, 04:19 PM   #1
MyFedoraUser
LQ Newbie
 
Registered: Jan 2008
Posts: 1

Rep: Reputation: 0
Software RAID 1 on Fedora 8 question


I’m having a problem with my Fedora 8 box. Pardon my questions...I'm still learning...

I’m experimenting with software raid level 2 (mirror).

I have two partitions:

/dev/sdb2
/dev/sdb3

(I realize that I shouldn’t use the same device...this is just a test build.)


Here are the steps that I executed:

1. create the 2 partitions
2. use mdadm:
# mdadm --create --verbose /dev/md0 –level=mirror –raid-devices=2 /dev/sdb2 /dev/sdb3

3. After the partitions are synced, create the file system:

# mkfs.ext3 /dev/md0


4. Add the following line to /etc/fstab:

/dev/md0 /share3 ext3 defaults 1 2


Everything seems to work except that I can’t survive a reboot :-(


For some reason /dev/md0 gets wiped out causing fsck.ext3 to respond during reboot:

Fsck.ext3: No such file or directory while trying to open /dev/md0


Now my box won’t reboot at all and drops me to a system recovery mode!


Specifically,

1. any suggestions on the software raid steps?

2. how can I edit the /etc/fstab to remove the “/dev/md0” line? The recovery mode will not let me write to the file system!


Help!


Many thanks…

Last edited by MyFedoraUser; 01-17-2008 at 04:37 PM.
 
Old 01-18-2008, 11:09 AM   #2
mether
Member
 
Registered: Mar 2007
Distribution: RHEL, Fedora, Open Suse
Posts: 151

Rep: Reputation: 31
Check this out :

http://kbase.redhat.com/faq/FAQ_79_7689.shtm
 
Old 01-20-2008, 10:15 PM   #3
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
Its the partition type. I did the same thing way back when I set up my first raid as well :-)

fdisk /dev/sdb
t
2
fd
t
3
fd
w
q

Its the fact that the type is probably set to 82, which is Linux, and not fd, which is Linux raid autodetect.

btw, rockin' format to your question, it was all there :-)

One point of note is that mirroring is raid-level 1, stripping 0, byte level parity is 5, n-2 is 6... blah blah blah.

Cheers,

Finegan
 
Old 01-20-2008, 10:21 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
Quote:
Originally Posted by finegan View Post
Its the partition type. I did the same thing way back when I set up my first raid as well :-)

fdisk /dev/sdb
t
2
fd
t
3
fd
w
q

Its the fact that the type is probably set to 82, which is Linux, and not fd, which is Linux raid autodetect.

btw, rockin' format to your question, it was all there :-)

One point of note is that mirroring is raid-level 1, stripping 0, byte level parity is 5, n-2 is 6... blah blah blah.

Cheers,

Finegan
finegan, you're alive?
 
Old 01-20-2008, 11:40 PM   #5
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 65
Quote:
Originally Posted by trickykid View Post
finegan, you're alive?
Like Frankenstein's monster on a double espresso baby!

-Finegan
 
  


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 (yes, another raid question) aunquarra Linux - Server 3 06-15-2007 05:28 PM
Software RAID 1 on Fedora 6? SlowCoder Linux - General 6 04-19-2007 10:12 AM
software RAID 1 Fedora 2 question jabaker707 Linux - Software 0 10-04-2004 10:06 AM
Fedora software raid 1 norbul Fedora - Installation 4 08-23-2004 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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