RAID/LVM Root Filesystem on SuSE8.2
Matthew Carpenter
matt
Tue Feb 8 22:40:53 PST 2005
(I'm *so* sorry for the last post! I didn't mean to hit send. I wasn't
done editing or describing the problems.)
Hi all,
After reading about making RAID and LVM work on your boot system (and
foolishly misplacing the article. Not the online one, but the one they
didn't place online), I engaged in a little trial and error run.
I took a 30GB drive (/dev/hda) which is running my primary
firewall/dns/dhcp for my home network, added in another 30GB drive
(/dev/hdc) and went to town.
First off, creating two partitions on /dev/hdc setting them to partition
type FD (auto-raid):
/dev/hdc1 128mb
/dev/hdc2 28GB
Then, creating the md0 and md1 device (I stupidly created the md0
device as LVM and left md1 to the /boot partition)
I then created two LV's on /dev/md0:
/dev/BigBlock/Root (/)
/dev/BigBlock/Active (/var - /home is a symlink to /var/home)
Copied all the data over from /dev/hda to the appropriate partition on
/dev/md1 (/boot) and /dev/BigBlock/(Active|Root)
I then edited /boot/grub/menu.lst, adding:
title BigBlock-RAID
root (hd0,0)
kernel (hd0,0)/boot/vmlinuz root=/dev/BigBlock/Root console=tty1
console=ttyS0,9600n8
initrd (hd0,0)/boot/initrd
To be safe, I also created /etc/mdadm.conf and /etc/raidtab. I also
added lvm-mod and raid1 into the initrd (which were compiled as modules
instead of into the kernel). SuSE allows this by adding these module
names into /etc/sysconfig/kernel and running mkinitrd.
Rebooting using this new entry kicks out the following error messages
(many lines snipped):
Linux version 2.4.20-4GB (root at Pentium.suse.de) (gcc version 3.3
20030226 (prerelease) (SuSE Linux)) #1 Mon Jun 28 16:21:04 UTC 2004
<snip>
Kernel command line: root=/dev/BigBlock/Root console=tty1
console=ttyS0,9600n8
<snip>
RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize
loop: loaded (max 16 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00beta-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
PIIX4: IDE controller at PCI slot 00:07.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
hda: WDC WD307AA, ATA DISK drive
hdb: WDC WD1600JB-00DUA0, ATA DISK drive
blk: queue c03ac500, I/O limit 4095Mb (mask 0xffffffff)
blk: queue c03ac654, I/O limit 4095Mb (mask 0xffffffff)
hdc: QUANTUM FIREBALLP AS30.0, ATA DISK drive
hdd: TOSHIBA CD-ROM XM-5702B, ATAPI CD/DVD-ROM drive
blk: queue c03ac980, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 60074784 sectors (30758 MB) w/2048KiB Cache, CHS=3739/255/63, UDMA(33)
hdb: attached ide-disk driver.
hdb: host protected area => 1
hdb: 312581808 sectors (160042 MB) w/8192KiB Cache, CHS=19457/255/63,
UDMA(33)
hdc: attached ide-disk driver.
hdc: host protected area => 1
hdc: 58633344 sectors (30020 MB) w/1902KiB Cache, CHS=58168/16/63, UDMA(33)
ide-floppy driver 0.99.newide
Partition check:
hda: hda1 hda2 < hda5 hda6 >
hdb: hdb1 hdb2 < hdb5 >
hdc:<6> [PTBL] [3649/255/63] hdc1 hdc2
ide-floppy driver 0.99.newide
SCSI subsystem driver Revision: 1.00
kmod: failed to exec /sbin/modprobe -s -k scsi_hostadapter, errno = 2
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
[events: 00000012]
[events: 00000014]
md: autorun ...
md: considering hdc2 ...
md: adding hdc2 ...
md: created md0
md: bind<hdc2,1>
md: running: <hdc2>
md: hdc2's event counter: 00000014
md: RAID level 1 does not need chunksize! Continuing anyway.
kmod: failed to exec /sbin/modprobe -s -k md-personality-3, errno = 2
md: personality 3 is not loaded!
md :do_md_run() returned -22
md: md0 stopped.
md: unbind<hdc2,0>
md: export_rdev(hdc2)
md: considering hdc1 ...
md: adding hdc1 ...
md: created md1
md: bind<hdc1,1>
md: running: <hdc1>
md: hdc1's event counter: 00000012
md: RAID level 1 does not need chunksize! Continuing anyway.
kmod: failed to exec /sbin/modprobe -s -k md-personality-3, errno = 2
md: personality 3 is not loaded!
md :do_md_run() returned -22
md: md1 stopped.
md: unbind<hdc1,0>
md: export_rdev(hdc1)
md: ... autorun DONE.
<snip>
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 430k freed
VFS: Mounted root (ext2 filesystem).
Loading module jbd ...
Using /lib/modules/2.4.2Journalled Block Device driver loaded
0-4GB/kernel/fs/jbd/jbd.o
Loading module ext3 ...
Using /lib/mmd: raid1 personality registered as nr 3
odules/2.4.20-4GB/kernel/fs/ext3LVM version 1.0.5+(mp-v6a)(22/07/2002)
module loaded
/ext3.o
Loadingmd: Autodetecting RAID arrays.
module raid1 .. [events: 00000014]
.
Using /lib/mo [events: 00000012]
dules/2.4.20-4GBmd: autorun ...
/kernel/drivers/md: considering hdc1 ...
md/raid1.o
Loadmd: adding hdc1 ...
ing module lvm-mmd: created md1
od ...
Using /lmd: bind<hdc1,1>
ib/modules/2.4.2md: running: 0-4GB/kernel/dri<hdc1>vers/md/lvm-mod.
o
raidautorun .md: hdc1's event counter: 00000012
..
md: RAID level 1 does not need chunksize! Continuing anyway.
md1: max total readahead window set to 508k
md1: 1 data-disks, max readahead per data-disk: 508k
raid1: device hdc1 operational as mirror 0
raid1: raid set md1 active with 1 out of 1 mirrors
md: updating md1 RAID superblock on device
md: hdc1 [events: 00000013]<6>(write) hdc1's sb offset: 104320
[events: 00000000]
md: invalid raid superblock magic on md1
md: md1 has invalid sb, not importing!
md: no nested md device found
md: considering hdc2 ...
md: adding hdc2 ...
md: created md0
md: bind<hdc2,1>
md: running: <hdc2>
md: hdc2's event counter: 00000014
md: RAID level 1 does not need chunksize! Continuing anyway.
md0: max total readahead window set to 508k
md0: 1 data-disks, max readahead per data-disk: 508k
raid1: device hdc2 operational as mirror 0
raid1: raid set md0 active with 1 out of 1 mirrors
md: updating md0 RAID superblock on device
md: hdc2 [events: 00000015]<6>(write) hdc2's sb offset: 29206080
[events: 2f007300]
md: invalid raid superblock magic on md0
md: md0 has invalid sb, not importing!
md: no nested md device found
md: ... autorun DONE.
done ...
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Insert root floppy and press ENTER
Any hints would be much appreciated! Thank you so very much.
More information about the Linux-users
mailing list