booting/swap questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi all, 

First I would like to thank Neil for developing mdadm.
I am new to SW RAID and struggled a bit in the beginning.
Once I ditched the raid tools and used mdadm, my life became
easier. Many Thanks to Neil and the others that maintain this
effort for SW RAID on Linux.

I am still at a novice level wrt RAID. So bare with me.
I've thoroughly read "Boot+Root+Raid..." and the Software-RAID-HOWTO.

I am booting into raid (/dev/md1 in my case) just fine.
However, is it possible to have a lilo menu option to choose
which disk to boot of off? Such that I can choose my LinuxRaid
label, my Linux-hda label, or my Linux-hdc label. (see lilo.conf
below) I off course would leave LinuxRaid my default.
Also when I run lilo, get Warnings about BIOS device codes and such.
Can I safely ignore those?

Swap is one more issue. I have all partitions using RAID, except swap.
I didn't want to change the flag on the partition with fdisk from 
82 to fd without checking first. This is close to finished, and I didn't
want to botch it up at the end.
Am I supposed to change it to auto-detect? 
Also do I need to create my /dev/md2 (in my case) with /dev/hda2 missing?
do a 'mkswap /dev/md1', change /etc/fstab and reboot?


Here is an exhaustive look at what I have, if someone needs more, 
let me know...


two 20Gig WD disks
Slackware 8.0
kernel 2.4.5
LILO 22.1
mdadm - v0.7 -  8 March 2002


fdisk -l  /dev/hda /dev/hdc
=====================================================================
Disk /dev/hda: 255 heads, 63 sectors, 2434 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1        77    618471   fd  Linux raid autodetect
/dev/hda2            78       332   2048287+  82  Linux swap
/dev/hda3           333       587   2048287+  fd  Linux raid autodetect
/dev/hda4           588      2434  14836027+   5  Extended
/dev/hda5           588       970   3076416   fd  Linux raid autodetect
/dev/hda6           971      1098   1028128+  fd  Linux raid autodetect
/dev/hda7          1099      1353   2048256   fd  Linux raid autodetect
/dev/hda8          1354      1481   1028128+  fd  Linux raid autodetect
/dev/hda9          1482      1609   1028128+  fd  Linux raid autodetect
/dev/hda10         1610      2434   6626781   fd  Linux raid autodetect

Disk /dev/hdc: 255 heads, 63 sectors, 2434 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *         1        77    618471   fd  Linux raid autodetect
/dev/hdc2            78       332   2048287+  82  Linux swap
/dev/hdc3           333       587   2048287+  fd  Linux raid autodetect
/dev/hdc4           588      2434  14836027+   5  Extended
/dev/hdc5           588       970   3076416   fd  Linux raid autodetect
/dev/hdc6           971      1098   1028128+  fd  Linux raid autodetect
/dev/hdc7          1099      1353   2048256   fd  Linux raid autodetect
/dev/hdc8          1354      1481   1028128+  fd  Linux raid autodetect
/dev/hdc9          1482      1609   1028128+  fd  Linux raid autodetect
/dev/hdc10         1610      2434   6626781   fd  Linux raid autodetect
=====================================================================



output of 'mdadm -D -b' for all md devices:
=====================================================================
ARRAY /dev/md1 level=raid1 disks=2 UUID=3bd090ae:48c5d5e0:942aebe1:9cd10235
ARRAY /dev/md3 level=raid1 disks=2 UUID=cb1edb5e:4597def7:725846f4:88a126e9
ARRAY /dev/md5 level=raid1 disks=2 UUID=c5da4462:8d5bdb55:2a8f275f:ca1fbe5c
ARRAY /dev/md6 level=raid1 disks=2 UUID=750ebc45:c74abad6:8a52c3b6:e1e26c51
ARRAY /dev/md7 level=raid1 disks=2 UUID=8fa15ec8:376de6d3:a4e7ac3a:148d783b
ARRAY /dev/md8 level=raid1 disks=2 UUID=2cfb8b7c:e8069247:a71b1adf:3db7e1ec
ARRAY /dev/md9 level=raid1 disks=2 UUID=28f07e88:6096ef41:003440ef:03630fcd
ARRAY /dev/md10 level=raid1 disks=2 UUID=a3b9b94d:56b2684d:58d45e31:d318bff5
=====================================================================

my /proc/mdstat file:
=====================================================================
Personalities : [linear] [raid0] [raid1] [raid5] 
read_ahead 1024 sectors
md1 : active raid1 ide/host0/bus1/target0/lun0/part1[0]
ide/host0/bus0/target0/lun0/part1[1]
      618368 blocks [2/2] [UU]
      
md3 : active raid1 ide/host0/bus1/target0/lun0/part3[0]
ide/host0/bus0/target0/lun0/part3[1]
      2048192 blocks [2/2] [UU]
      
md5 : active raid1 ide/host0/bus1/target0/lun0/part5[0]
ide/host0/bus0/target0/lun0/part5[1]
      3076352 blocks [2/2] [UU]
      
md6 : active raid1 ide/host0/bus1/target0/lun0/part6[0]
ide/host0/bus0/target0/lun0/part6[1]
      1028032 blocks [2/2] [UU]
      
md7 : active raid1 ide/host0/bus1/target0/lun0/part7[0]
ide/host0/bus0/target0/lun0/part7[1]
      2048192 blocks [2/2] [UU]
      
md8 : active raid1 ide/host0/bus1/target0/lun0/part8[0]
ide/host0/bus0/target0/lun0/part8[1]
      1028032 blocks [2/2] [UU]
      
md9 : active raid1 ide/host0/bus1/target0/lun0/part9[0]
ide/host0/bus0/target0/lun0/part9[1]
      1028032 blocks [2/2] [UU]
      
md10 : active raid1 ide/host0/bus1/target0/lun0/part10[0]
ide/host0/bus0/target0/lun0/part10[1]
      6626688 blocks [2/2] [UU]
      
unused devices: <none>
=====================================================================

my lilo.conf
=====================================================================
boot=/dev/md1
lba32
install=/boot/boot-menu.b
message=/boot/boot_message.txt
menu-title="RAID Boot Menu - espresso.cgicafe.com"
prompt
timeout = 300
read-only
vga=normal
disk=/dev/hda bios=0x80 heads=255 sectors=63 cylinders=2434
disk=/dev/hdc bios=0x81 heads=255 sectors=63 cylinders=2434
partition=/dev/md1
start=63

image=/vmlinuz
   root=/dev/md1
   label = LinuxRaid
   read-only
image=/vmlinuz
   root=/dev/hda1
   label = Linux-hda
   read-only
image=/vmlinuz
   root=/dev/hdc1
   label = Linux-hdc
   read-only
======================================================================

output of 'lilo -v'
======================================================================
LILO version 22.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2001 John Coffman
Released 31-Oct-2001 and compiled at 13:53:52 on Jan 14 2002.
MAX_IMAGES = 27

Warning: Int 0x13 function 8 and function 0x48 return different
head/sector geometries for BIOS drive 0x80
Warning: using BIOS device code 0x81 for RAID boot blocks
Reading boot sector from /dev/md1
Warning: /dev/md1 is not on the first disk
Merging with /boot/boot-menu.b
Mapping message file /boot/boot_message.txt
Boot image: /vmlinuz
Added LinuxRaid *

Boot image: /vmlinuz
Added Linux-hda

Boot image: /vmlinuz
Added Linux-hdc

/boot/boot.0901 exists - no backup copy made.
Writing boot sector.
The boot record of  /dev/md1  has been updated.




-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux