Solved

boot linux raid

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

777 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