Solved

boot linux raid

Posted on 2004-10-12
2
221 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

685 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