Solved

boot linux raid

Posted on 2004-10-12
2
217 Views
Last Modified: 2013-12-16
My problem is when I reboot it fails beacuse of duplicate labels. (grub bootloader)
What do I do?

######Fedora Core  1######

/etc/raidtab
raiddev /dev/md0
        raid-level      1
        nr-raid-disks   2
        chunk-size      16
        nr-spare-disks  0
        persistent-superblock   1
        device          /dev/hda
        raid-disk       0
        device          /dev/hdc
        raid-disk       1

/proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 hdc[1] hda[0]
      117220736 blocks [2/2] [UU]
      [==>..................]  resync = 10.8% (12733560/117220736) finish=168.8min speed=10315K/sec
unused devices: <none>
0
Comment
Question by:Ted22
2 Comments
 
LVL 6

Accepted Solution

by:
blkline earned 125 total points
ID: 12296728
I boot from a software RAID 1 box.  Here is my grub.conf:

timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
default=0
title Red Hat Linux (2.4.18-10smp)
        root (hd0,0)
        kernel /vmlinuz-2.4.18-10smp ro root=/dev/sda3
        initrd /initrd-2.4.18-10smp.img
title Red Hat Linux (2.4.18-10)
        root (hd0,0)
        kernel /vmlinuz-2.4.18-10 ro root=/dev/sda3
        initrd /initrd-2.4.18-10.img

and my /etc/raidtab:

raiddev /dev/md0
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock   1
        device  /dev/sda1
        raid-disk       0
        device  /dev/sdb1
        raid-disk       1
 
raiddev /dev/md1
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock   1
        device  /dev/sda2
        raid-disk       0
        device  /dev/sdb2
        raid-disk       1
 
raiddev /dev/md2
        raid-level      1
        nr-raid-disks   2
        nr-spare-disks  0
        chunk-size      4
        persistent-superblock   1
        device  /dev/sda3
        raid-disk       0
        device  /dev/sdb3
        raid-disk       1

What you want to do can be done.  Look over these two files and see if they offer to you any clues.  If you have additional questions please feel free to ask.
0
 
LVL 1

Author Comment

by:Ted22
ID: 12301450
What does your fstab look like?
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now