Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

boot linux raid

Posted on 2004-10-12
2
Medium Priority
?
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
blkline earned 250 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

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

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…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

704 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