LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Software RAID 1 on Fedora 8 question (https://www.linuxquestions.org/questions/linux-server-73/software-raid-1-on-fedora-8-question-614349/)

MyFedoraUser 01-17-2008 04:19 PM

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…

mether 01-18-2008 11:09 AM

Check this out :

http://kbase.redhat.com/faq/FAQ_79_7689.shtm

finegan 01-20-2008 10:15 PM

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

trickykid 01-20-2008 10:21 PM

Quote:

Originally Posted by finegan (Post 3029758)
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?

finegan 01-20-2008 11:40 PM

Quote:

Originally Posted by trickykid (Post 3029765)
finegan, you're alive?

Like Frankenstein's monster on a double espresso baby!

-Finegan


All times are GMT -5. The time now is 05:09 PM.