You are not logged in.

#1 2006-12-20 14:37:26

astrocrep
Member
Registered: 2006-06-02
Posts: 34

More raid woes...

I've install arch linux 0.72 a while back and for the life of me, cannot do it again.

Two sata 37gb raptors, each partitioned like this:

100mb
1gb
35gb

First I do:

mdadm -C /dev/md0 -l 1 -n 2 /dev/sda1 /dev/sdb1
mke2fs /dev/md0

This makes a raid 1 array for my /boot folder, and formats it as ext2

Then I do:

mdadm -C /dev/md1 -l 0 -n 2 /dev/sda3 /dev/sdb3
mke2fs -j /dev/md1

This makes a raid 0 array for my / folder and formats it as ext3

Next I mount /dev/md1 as /mnt
and /dev/md0 as /mnt/boot

I start up /arch/setup, configure ethernet, download and install base packages along with a 2.6 kernel.

Then I leave the installer.

I edit /mnt/etc/fstab, adding:
/dev/md1 / ext3 defaults 0 0
/dev/md0 /boot ext2 defaults 0 0

Then I edit /mnt/etc/mkinitcpio.conf, adding:
raid to the last line.

I edit the /mnt/boot/grub/menu.lst making making the kernel paramters:
root=/dev/md1 ro md=1,/dev/sda3,/dev/sdb3
and change initrd.img to kernel26-fallback.img

I chroot the system.
I do a "makedevs"
then a "grub"
I root(hd0,0)
and it says its an ext2fs
I do a setup (hd0)
and it looks like everything is done fine.
I quit and reboot...

I boot grub, its loads the kernel, and then after about 15 seconds it hits a kernel panic about failing to mount the root file system.

To me it "seems" like its not creating the md1 (/dev/sda3,/dev/sdb3) in time before the mount of the root

Ive tried many different combinations of parameters and the like... I have no idea what I am doing wrong.

I did get it to work once, sort of... I actually booted the kernel 100% through grub... but I forget to setup the fstab, and the filesystem was left in RO.  I reboot and booted of the cd, mounted the filesystem and raid array, edited the fstab like above, and rebooted... it failed, and hasn't worked since.

Im dieing here... I dunno what I am doing wrong... I (in a moment of weakness) install ubuntu onto the raid array with no hassle.

Please help,
Thanks,
Rich


HP DM1Z-4100 // 11.6" LED 1366x768 // 1.65ghz AMD E-450 // 4gb Ram // 320gb hdd // ATI 6320 // 100% Archlinux

Offline

#2 2006-12-21 10:53:24

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: More raid woes...

Did you remember to build a new initrd after changing /etc/mkinitcpio?

Chroot your new install and rebuild the image:

chroot /mnt/ /bin/bash
mkinitcpio -c /etc/mkinitcpio.conf

A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#3 2006-12-21 14:49:21

astrocrep
Member
Registered: 2006-06-02
Posts: 34

Re: More raid woes...

Issue resolved using 0.8!

Awesome work!

-Rich


HP DM1Z-4100 // 11.6" LED 1366x768 // 1.65ghz AMD E-450 // 4gb Ram // 320gb hdd // ATI 6320 // 100% Archlinux

Offline

Board footer

Powered by FluxBB