View previous topic :: View next topic |
Author |
Message |
kamika.net n00b
Joined: 04 Jan 2006 Posts: 6
|
Posted: Wed Jan 04, 2006 11:51 am Post subject: Software Raid 1 disappears after reboot |
|
|
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 |
|
|
caspar Apprentice
Joined: 02 Mar 2003 Posts: 228 Location: 240 000 miles away from moon
|
Posted: Wed Jan 04, 2006 12:20 pm Post subject: |
|
|
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Wed Jan 04, 2006 4:30 pm Post subject: Re: Software Raid 1 disappears after reboot |
|
|
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 |
|
|
kamika.net n00b
Joined: 04 Jan 2006 Posts: 6
|
Posted: Thu Jan 05, 2006 6:14 pm Post subject: |
|
|
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
greetings, kamika |
|
Back to top |
|
|
|