Jump to content
  • Announcements

    • spinynorman

      Mandriva Official Documentation

      Official documentation for extant versions of Mandriva can be found at doc.mandriva.com.   Documentation for the latest release may take some time to appear there. You can install all the manuals from the main repository if you have Mandriva installed - files are prefixed mandriva-doc.
    • paul

      Forum software upgrade   10/29/17

      So you may have noticed the forum software has upgraded !!!
      A few things that have changed. We no longer have community blogs (was never really used) We no longer have a portal page.
      We can discuss this, and decide whether it is needed (It costs money) See this thread: Here
ianw1974

Installing Mandriva with Software RAID

Recommended Posts

I'm currently using Mandriva 2008.1 with a RAID1+LVM. Here is how I'm setup:

#fdisk -l /dev/hda /dev/hdc
Disk /dev/hda: 122.9 GB, 122942324736 bytes
16 heads, 63 sectors/track, 238216 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x1fd11c08

  Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         130       65488+  fd  Linux raid autodetect
/dev/hda2             131      152510    76799520   fd  Linux raid autodetect
/dev/hda3          152511      154541     1023624   82  Linux swap / Solaris

Disk /dev/hdc: 122.9 GB, 122942324736 bytes
16 heads, 63 sectors/track, 238216 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x15f5dc62

  Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1         130       65488+  fd  Linux raid autodetect
/dev/hdc2             131      152510    76799520   fd  Linux raid autodetect
/dev/hdc3          152511      154541     1023624   82  Linux swap / Solaris

# cat lilo.conf (edited for top only)
default="linux"
boot=/dev/md0
map=/boot/map
install=menu
keytable=/boot/us.klt
raid-extra-boot=mbr
menu-scheme=wb:bw:wb:bw
compact
prompt
nowarn
timeout=20
message=/boot/message

 

Note that raid-extra-boot is set to 'mbr' and NOT the drives. Somehow this knows to write to the boot sectors of your boot device. /dev/hda1 and /dev/hdc1 are the md0 members and md0 is an ext3 partition that is only big enough to put the "/boot" directory in. I had in the past tried to make the boot partition xfs but raid had issues with it. This method is may not be necessary in Mandriva 2009.

 

Hope that helps.

Rois Cannon

Share this post


Link to post
Share on other sites
Guest Shingoshi

I don't know about Mandriva, but my system has no problem with RAID booting XFS.

 

And here's my lilo.conf. Tell me what I have wrong here.

 

 

# LILO configuration file

# generated by 'liloconfig'

#

# Start LILO global section

# Append any additional kernel parameters:

append=" vt.default_utf8=0"

boot = /dev/md0

raid-extra-boot=mbr-only

lba32

compact

fix-table

large-memory

 

# Boot BMP Image.

# Bitmap in BMP format: 1024x768x16M

bitmap = /boot/slack.bmp

# bitmap = /boot/charisma_lowres.bmp

# Menu colors (foreground, background, shadow, highlighted

# foreground, highlighted background, highlighted shadow):

bmp-colors = 255,0,255,0,255,0

# Location of the option table: location x, location y, number of

# columns, lines per column (max 15), "spill" (this is how many

# entries must be in the first column before the next begins to

# be used. We don't specify it here, as there's just one column.

# bmp-table = 60,6,1,16

# Timer location x, timer location y, foreground color,

# background color, shadow color.

bmp-timer = 65,27,0,255

 

# Standard menu.

# Or, you can comment out the bitmap menu above and

# use a boot message with the standard menu:

#message = /boot/boot_message.txt

 

# Wait until the timeout to boot (if commented out, boot the

# first entry immediately):

prompt

# Timeout before the first entry boots.

# This is given in tenths of a second, so 600 for every minute:

timeout = 100

# Override dangerous defaults that rewrite the partition table:

change-rules

reset

# VESA framebuffer console @ 1280x1024x64k

vga = 794

# End LILO global section

#

# Linux bootable partition config begins

# This has been modified for RAID boot devices.

#

# This is from: fdisk -l

# 255 heads, 63 sectors/track, 121601 cylinders

# Units = cylinders of 16065 * 512 = 8225280 bytes

# lilo.conf.sda - primary sata master

# Disk identifier: 0x3da7c347

disk=/dev/sda

bios=0x80

sectors=63

heads=255

cylinders=16065

partition=/dev/md1

start=63

# boot=/dev/sda # this is the first disk

# raid-extra-boot=mbr

map=/boot/map

install=/boot/boot.b

image = /boot/vmlinuz

root=/dev/md0

read-only

label = BEssentialBEing

 

# lilo.conf.sdb - secondary sata master

# Disk identifier: 0x2def0710

disk=/dev/sdb

bios=0x80

sectors=63

heads=255

cylinders=16065

partition=/dev/md1

start=63

# boot=/dev/sdb # this is the second disk

# raid-extra-boot=mbr

map=/boot/map

install=/boot/boot.b

image = /boot/vmlinuz

root=/dev/md0

read-only

label = BEssentialBEing

 

# ------------------------- #

# This is our backup kernel #

# ------------------------- #

 

image = /boot/vmlinuz-stable

# lilo.conf.sda - primary sata master

# Disk identifier: 0x3da7c347

# disk=/dev/md0

bios=0x80

sectors=63

heads=255

cylinders=16065

partition=/dev/md1

start=63

# boot=/dev/sda # this is the first disk

# raid-extra-boot=mbr

map=/boot/map

install=/boot/boot.b

image = /boot/vmlinuz-stable

root=/dev/md0

read-only

label = BEssentialBEing

 

# ---------------------

 

# lilo.conf.sdb - secondary sata master

# Disk identifier: 0x2def0710

# disk=/dev/md0

bios=0x80

sectors=63

heads=255

cylinders=16065

partition=/dev/md1

start=63

# boot=/dev/sdb # this is the second disk

# raid-extra-boot=mbr

map=/boot/map

install=/boot/boot.b

image = /boot/vmlinuz-stable

root=/dev/md0

read-only

label = BEssentialBEing

 

# Linux bootable partition config ends

# ---------------------

 

I get this error from running lilo:

 

Added BEssentialBEing *

Syntax error at or above line 75 in file '/etc/lilo.conf'

 

It never adds the second system.

 

 

Xavian-Anderson Macpherson

Shingoshi

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×