On Mon, Jan 07, 2002 at 11:26:56AM -0500, Kevin M. Myer wrote:
> 
> I am having some trouble getting GRUB configured to boot from a software RAID 
> device.  The documentation seems to indicate that software RAID devices are 
> supported and I've found posts indicating that people have it working, so at 
> least I don't think I'm trying to do the impossible.

It's definitely not impossible, since I did it with a stock 7.2 system and had
the config set up during the initial install.  I had first tried it after I
installed but could not get it to come up properly during boot.  I then redid
my install, told it to configure mirroring during boot, and it all worked.
7.2, of course, uses Grub by default.

Here's the fdisk info and files that I was using before I shut that system down:

Disk /dev/hdg: 16 heads, 63 sectors, 79780 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdg1   *         1        49     24664+  fd  Linux raid autodetect
/dev/hdg2            50     79780  40184424    5  Extended
/dev/hdg5            50      6145   3072352+  fd  Linux raid autodetect
/dev/hdg6          6146      7161    512032+  fd  Linux raid autodetect
/dev/hdg7          7162      8202    524632+  fd  Linux raid autodetect
/dev/hdg8          8203     10283   1048792+  82  Linux swap
/dev/hdg9         10284     20442   5120104+  fd  Linux raid autodetect
/dev/hdg10        20443     40760  10240240+   c  Win95 FAT32 (LBA)
/dev/hdg11        40761     79780  19666048+  83  Linux

Disk /dev/hde: 16 heads, 63 sectors, 79780 cylinders
Units = cylinders of 1008 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hde1   *         1        49     24664+  fd  Linux raid autodetect
/dev/hde2            50     79780  40184424    5  Extended
/dev/hde5            50      6145   3072352+  fd  Linux raid autodetect
/dev/hde6          6146      7161    512032+  fd  Linux raid autodetect
/dev/hde7          7162      8202    524632+  fd  Linux raid autodetect
/dev/hde8          8203     10283   1048792+  82  Linux swap
/dev/hde9         10284     20442   5120104+  fd  Linux raid autodetect
/dev/hde10        20443     40760  10240240+  83  Linux
/dev/hde11        40761     79780  19666048+  83  Linux

grub.conf:

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/md1
#          initrd /initrd-version.img
#boot=/dev/hde
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.9-13)
        root (hd0,0)
        kernel /vmlinuz-2.4.9-13 ro root=/dev/md1 hdd=ide-scsi
        initrd /initrd-2.4.9-13.img
title Red Hat Linux (2.4.9-7)
        root (hd0,0)
        kernel /vmlinuz-2.4.9-7 ro root=/dev/md1 hdd=ide-scsi
        initrd /initrd-2.4.9-7.img
title Red Hat Linux (2.4.7-10)
        root (hd0,0)
        kernel /vmlinuz-2.4.7-10 ro root=/dev/md1 hdd=ide-scsi
        initrd /initrd-2.4.7-10.img

/etc/fstab:

LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
LABEL=/home             /home                   ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/usr              /usr                    ext3    defaults        1 2
LABEL=/var              /var                    ext3    defaults        1 2
/dev/hde8               swap                    swap    defaults        0 0
/dev/hdg8               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrw             /mnt/cdrw             iso9660 noauto,owner,kudzu,ro 0 0
LABEL=backup1           /backup1                ext3    defaults        1 2
LABEL=backup2           /backup2                ext3    defaults        1 2
LABEL=rh71              /mnt/rh71               ext3    defaults        1 2
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0

/etc/raidtab:

raiddev             /dev/md1
raid-level                  1
nr-raid-disks               2
chunk-size                  64k
persistent-superblock       1
nr-spare-disks              0
    device          /dev/hde7
    raid-disk     0
    device          /dev/hdg7
    raid-disk     1
raiddev             /dev/md3
raid-level                  1
nr-raid-disks               2
chunk-size                  64k
persistent-superblock       1
nr-spare-disks              0
    device          /dev/hde1
    raid-disk     0
    device          /dev/hdg1
    raid-disk     1
raiddev             /dev/md4
raid-level                  1
nr-raid-disks               2
chunk-size                  64k
persistent-superblock       1
nr-spare-disks              0
    device          /dev/hde9
    raid-disk     0
    device          /dev/hdg9
    raid-disk     1
raiddev             /dev/md0
raid-level                  1
nr-raid-disks               2
chunk-size                  64k
persistent-superblock       1
nr-spare-disks              0
    device          /dev/hde5
    raid-disk     0
    device          /dev/hdg5
    raid-disk     1
raiddev             /dev/md2
raid-level                  1
nr-raid-disks               2
chunk-size                  64k
persistent-superblock       1
nr-spare-disks              0
    device          /dev/hde6
    raid-disk     0
    device          /dev/hdg6
    raid-disk     1

I hope this helps!
        .../Ed
-- 
Ed Wilts, Mounds View, MN, USA
mailto:[EMAIL PROTECTED]



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to