Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Software Raid 1 disappears after reboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
kamika.net
n00b
n00b


Joined: 04 Jan 2006
Posts: 6

PostPosted: Wed Jan 04, 2006 11:51 am    Post subject: Software Raid 1 disappears after reboot Reply with quote

Hello,
I tried and succeeded in setting up a Raid1 for my /home dir.

According to some inforation on the pages/wiki's i added the raid to /etc/mdadm.conf
Code:

ARRAY /dev/md0 level=raid1 num-devices=2 UUID=fe866043:a8811acd:942f65ee:a9b9eccc


I can mount the raid to /home and use it.

But what do I have to do, that the raid appears and gets mounted after a reboot.
I tried the entry in fstab
Code:

/dev/md0                /home           ext3            noatime         0 1


but the raid isn't there any more..

any ideas? ( i guess I just forgot a necessary step)

thanks
Back to top
View user's profile Send private message
caspar
Apprentice
Apprentice


Joined: 02 Mar 2003
Posts: 228
Location: 240 000 miles away from moon

PostPosted: Wed Jan 04, 2006 12:20 pm    Post subject: Reply with quote

I am using EVMS so manual software raid is not really my thing.
But here are some guesses.

- You have to load your raid-modules on startup
- You have to mount your RAID device like this (looks similar to yours)
Code:
/dev/md0 /data reiserfs defaults 0 0


- With this command you get more information about your raid volumes. Look if raid is there after rebooting.
Code:

/dev/md0 /data reiserfs defaults 0 0


- Further information can be found here : http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html

Hope this helps.
_________________
"Dream as if you'll live forever. Live as if you'll die today."
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Wed Jan 04, 2006 4:30 pm    Post subject: Re: Software Raid 1 disappears after reboot Reply with quote

kamika.net wrote:
But what do I have to do, that the raid appears and gets mounted after a reboot.

Make sure you have changed the partition type from "83" to "fd" so that the kernel can autodetect the array.
Back to top
View user's profile Send private message
kamika.net
n00b
n00b


Joined: 04 Jan 2006
Posts: 6

PostPosted: Thu Jan 05, 2006 6:14 pm    Post subject: Reply with quote

hm ok, maybe I should have used a raidtab:
/etc/raidtab
Code:

raiddev /dev/md0
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        persistent-superblock 1
        device          /dev/hda9
        raid-disk       0
        device          /dev/hdb1
        raid-disk       1


here the /etc/mdadm.conf
Code:

ARRAY /dev/md0 level=raid1 num-devices=2 UUID=fe866043:a8811acd:942f65ee:a9b9eccc #or your devices DO NOT COPY THIS


yes, modules are loaded/compiled in and partition table is set up to "fd" (used the raid before in a kubuntu install)

thanks for the help, it's working fine now :D

greetings, kamika
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum