Solved

boot linux raid

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWS- KeepAlived notify script not working 23 49
linux redhat 7.2 10 47
AWS ELB 5 17
Red Hat 7 Linux on Azure cannot run a command as root 22 13
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" …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.

863 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

20 Experts available now in Live!

Get 1:1 Help Now