Re: [gentoo-user] root on raid 1 = no boot

2008-09-24 Thread Volker Armin Hemmann
On Wednesday 17 September 2008, Nicolas Sebrecht wrote:
 Volker Armin Hemmann a écrit:
  and in grub.conf I have this:
  title=raid
  root (hd0,0)
  kernel /vmlinuz root=/dev/md1 md=1,/dev/sda3,/dev/sdb3 nopat

 Did you tried this :
 kernel /vmlinuz root=/dev/md1 md=1,1,/dev/sda3,/dev/sdb3 nopat

thanks, that did the trick. Now I can forget that genkernel crap.




Re: [gentoo-user] root on raid 1 = no boot

2008-09-17 Thread Nicolas Sebrecht

Volker Armin Hemmann a écrit:

  Did you tried this :
  kernel /vmlinuz root=/dev/md1 md=1,1,/dev/sda3,/dev/sdb3 nopat
 
 nope. Why the second one?

The fisrt one is the md device number and the second is to explicitly
give the raid level.

I personally have this line :
kernel /boot/kernel-2.6.25-gentoo-r7-v1 root=/dev/md5
md=5,1,/dev/sda5,/dev/sdb5 ro vga=0x323

-- 
Nicolas Sebrecht




Re: [gentoo-user] root on raid 1 = no boot

2008-09-16 Thread Nicolas Sebrecht

Volker Armin Hemmann a écrit:

 and in grub.conf I have this:
 title=raid
 root (hd0,0)
 kernel /vmlinuz root=/dev/md1 md=1,/dev/sda3,/dev/sdb3 nopat

Did you tried this :
kernel /vmlinuz root=/dev/md1 md=1,1,/dev/sda3,/dev/sdb3 nopat

-- 
Nicolas Sebrecht




Re: [gentoo-user] root on raid 1 = no boot

2008-09-16 Thread Volker Armin Hemmann
On Wednesday 17 September 2008, Nicolas Sebrecht wrote:
 Volker Armin Hemmann a écrit:
  and in grub.conf I have this:
  title=raid
  root (hd0,0)
  kernel /vmlinuz root=/dev/md1 md=1,/dev/sda3,/dev/sdb3 nopat

 Did you tried this :
 kernel /vmlinuz root=/dev/md1 md=1,1,/dev/sda3,/dev/sdb3 nopat

nope. Why the second one?




[gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Volker Armin Hemmann
Hi,

I have tried to setup a software Raid1 for root (/), boot, home and var.

So far, so good. Support is in kernel. The four ones are assembled:
Personalities : [raid1]
md3 : active raid1 sda6[0] sdb6[1]
  421906944 blocks [2/2] [UU]

md2 : active raid1 sda5[0] sdb5[1]
  19534912 blocks [2/2] [UU]

md1 : active raid1 sda3[0] sdb3[1]
  39061952 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
  64128 blocks [2/2] [UU]

looks good. 

and in grub.conf I have this:
title=raid
root (hd0,0)
kernel /vmlinuz root=/dev/md1 md=1,/dev/sda3,/dev/sdb3 nopat

I also created md1,2,3, in /dev.

But on every single boot I get a kernel panic because rootfs is not found. Has 
anybody an idea why and what is going wrong?



Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Xav'


On Thu, 28 Aug 2008 16:41:42 +0200, Volker Armin Hemmann
[EMAIL PROTECTED] wrote:
 Hi,
 
 I have tried to setup a software Raid1 for root (/), boot, home and var.
 
 So far, so good. Support is in kernel. The four ones are assembled:
 Personalities : [raid1]
 md3 : active raid1 sda6[0] sdb6[1]
   421906944 blocks [2/2] [UU]
 
 md2 : active raid1 sda5[0] sdb5[1]
   19534912 blocks [2/2] [UU]
 
 md1 : active raid1 sda3[0] sdb3[1]
   39061952 blocks [2/2] [UU]
 
 md0 : active raid1 sda1[0] sdb1[1]
   64128 blocks [2/2] [UU]
 
 looks good. 
 
 and in grub.conf I have this:
 title=raid
 root (hd0,0)
 kernel /vmlinuz root=/dev/md1 md=1,/dev/sda3,/dev/sdb3 nopat
 
 I also created md1,2,3, in /dev.
 
 But on every single boot I get a kernel panic because rootfs is not
found.
 Has 
 anybody an idea why and what is going wrong?

You have to know that the kernel isn't able to assemble RAID devices
together without the use of mdadm. So you have to use an initrd with the
mdadm binary to use a RAID root ! If you are using genkernel, add --mdraid
to your kernel compilation command line. Once you have an initrd with the
mdadm binary and appropriate script to assemble RAID arrays, you'll be able
to boot from your root RAID array ;)

HTH.

-- 
Xavier




Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Neil Bothwick
On Thu, 28 Aug 2008 16:54:03 +0200, Xav' wrote:

 You have to know that the kernel isn't able to assemble RAID devices
 together without the use of mdadm. So you have to use an initrd with the
 mdadm binary to use a RAID root !

Could you please keep quiet about that, my computers have been using
RAID root devices for years without an initrd and I don't want them to
get the idea they need one now.

Volker, are sda3 and sdb3 marked as Linux Raid autodetect in cfdisk? If
not you may need mdadm, but with the partitions marked as autodetect, the
kernel should figure it out for itself.

This is the kernel line I use in menu.lst, there is no initrd

kernel /boot/vmlinuz root=/dev/md0 vga=794 video=vesafb:ywrap,pmipal,[EMAIL 
PROTECTED]


-- 
Neil Bothwick

Every time I jump on the bandwagon all its wheels fall off.


signature.asc
Description: PGP signature


Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Xav'


On Thu, 28 Aug 2008 15:59:03 +0100, Neil Bothwick [EMAIL PROTECTED]
wrote:
 On Thu, 28 Aug 2008 16:54:03 +0200, Xav' wrote:
 
 You have to know that the kernel isn't able to assemble RAID devices
 together without the use of mdadm. So you have to use an initrd with the
 mdadm binary to use a RAID root !
 
 Could you please keep quiet about that, my computers have been using
 RAID root devices for years without an initrd and I don't want them to
 get the idea they need one now.


Okay sorry but i wasn't aware about that... When i set up RAID, following
HowTos from both gentoo-wiki.com and gentoo.org, and nowhere there is
indications of the auto-detection and assembling by the kernel... Maybe not
the right information source ?

 Volker, are sda3 and sdb3 marked as Linux Raid autodetect in cfdisk? If
 not you may need mdadm, but with the partitions marked as autodetect, the
 kernel should figure it out for itself.
 
 This is the kernel line I use in menu.lst, there is no initrd
 
 kernel /boot/vmlinuz root=/dev/md0 vga=794
 video=vesafb:ywrap,pmipal,[EMAIL PROTECTED]

-- 
Xavier




Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread ert256
[ 28.08.2008 16:41 ], Volker Armin Hemmann :
 Hi,
 
 I have tried to setup a software Raid1 for root (/), boot, home and var.
 
 So far, so good. Support is in kernel. The four ones are assembled:
 Personalities : [raid1]
 md3 : active raid1 sda6[0] sdb6[1]
   421906944 blocks [2/2] [UU]
 
 md2 : active raid1 sda5[0] sdb5[1]
   19534912 blocks [2/2] [UU]
 
 md1 : active raid1 sda3[0] sdb3[1]
   39061952 blocks [2/2] [UU]
 
 md0 : active raid1 sda1[0] sdb1[1]
   64128 blocks [2/2] [UU]
 
 looks good. 
 
 and in grub.conf I have this:
 title=raid
 root (hd0,0)
 kernel /vmlinuz root=/dev/md1 md=1,/dev/sda3,/dev/sdb3 nopat
 
 I also created md1,2,3, in /dev.
 
 But on every single boot I get a kernel panic because rootfs is not found. 
 Has 
 anybody an idea why and what is going wrong?
 
 
If you are sure kernel has compiled-in modules for raid, device mappers
and others to look at the disk ..
Maybe it is type of the partition, it should be FD which means
'Linux raid autodetect' .
-- 
Rafał (ert16) Trójniak
[EMAIL PROTECTED] : [EMAIL PROTECTED]
Jid : [EMAIL PROTECTED] [EMAIL PROTECTED]
GPG  key-ID : DD681D47
749F E1DC A58F 9084 BBC0
797A 0691 53D6 DD68 1D47



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Volker Armin Hemmann
On Donnerstag, 28. August 2008, Neil Bothwick wrote:
 On Thu, 28 Aug 2008 16:54:03 +0200, Xav' wrote:
  You have to know that the kernel isn't able to assemble RAID devices
  together without the use of mdadm. So you have to use an initrd with the
  mdadm binary to use a RAID root !

 Could you please keep quiet about that, my computers have been using
 RAID root devices for years without an initrd and I don't want them to
 get the idea they need one now.

thanks, the last thing I want to deal with is an initrd.


 Volker, are sda3 and sdb3 marked as Linux Raid autodetect in cfdisk? If
 not you may need mdadm, but with the partitions marked as autodetect, the
 kernel should figure it out for itself.

fdisk -l /dev/sda

Platte /dev/sda: 500.1 GByte, 500107862016 Byte
255 Köpfe, 63 Sektoren/Spuren, 60801 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x

Gerät  boot. AnfangEnde Blöcke   Id  System
/dev/sda1   *   1   8   64228+  fd  Linux raid autodetect
/dev/sda2   9 981 7815622+  82  Linux Swap / Solaris
/dev/sda3 982584439062047+  fd  Linux raid autodetect
/dev/sda45845   60801   441442102+   5  Erweiterte
/dev/sda55845827619535008+  fd  Linux raid autodetect
/dev/sda68277   60801   421907031   fd  Linux raid autodetect

fdisk -l /dev/sdb

Platte /dev/sdb: 500.1 GByte, 500107862016 Byte
255 Köpfe, 63 Sektoren/Spuren, 60801 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0x

Gerät  boot. AnfangEnde Blöcke   Id  System
/dev/sdb1   *   1   8   64228+  fd  Linux raid autodetect
/dev/sdb2   9 981 7815622+  82  Linux Swap / Solaris
/dev/sdb3 982584439062047+  fd  Linux raid autodetect
/dev/sdb45845   60801   441442102+   5  Erweiterte
/dev/sdb55845827619535008+  fd  Linux raid autodetect
/dev/sdb68277   60801   421907031   fd  Linux raid autodetect

if I only give root=/dev/md1 it won't boot either.

and from config:
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
# CONFIG_MD_LINEAR is not set
# CONFIG_MD_RAID0 is not set
CONFIG_MD_RAID1=y

are there more kernel options I might have missed?



Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Volker Armin Hemmann
On Donnerstag, 28. August 2008, ert256 wrote:
 [ 28.08.2008 16:41 ], Volker Armin Hemmann :
  Hi,
 
  I have tried to setup a software Raid1 for root (/), boot, home and var.
 
  So far, so good. Support is in kernel. The four ones are assembled:
  Personalities : [raid1]
  md3 : active raid1 sda6[0] sdb6[1]
421906944 blocks [2/2] [UU]
 
  md2 : active raid1 sda5[0] sdb5[1]
19534912 blocks [2/2] [UU]
 
  md1 : active raid1 sda3[0] sdb3[1]
39061952 blocks [2/2] [UU]
 
  md0 : active raid1 sda1[0] sdb1[1]
64128 blocks [2/2] [UU]
 
  looks good.
 
  and in grub.conf I have this:
  title=raid
  root (hd0,0)
  kernel /vmlinuz root=/dev/md1 md=1,/dev/sda3,/dev/sdb3 nopat
 
  I also created md1,2,3, in /dev.
 
  But on every single boot I get a kernel panic because rootfs is not
  found. Has anybody an idea why and what is going wrong?

 If you are sure kernel has compiled-in modules for raid, device mappers
 and others to look at the disk ..
 Maybe it is type of the partition, it should be FD which means
 'Linux raid autodetect' .

it has raid1 compiled in. dm not. Why? I am not using it. And as I have 
written in that other mail - all partitions are fd.




Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Dirk Heinrichs
Am Donnerstag, 28. August 2008 17:30:44 schrieb Volker Armin Hemmann:
 thanks, the last thing I want to deal with is an initrd.

It's initramfs nowadays and that's quite easy to handle.

Bye...

Dirk



Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Volker Armin Hemmann
On Donnerstag, 28. August 2008, Dirk Heinrichs wrote:
 Am Donnerstag, 28. August 2008 17:30:44 schrieb Volker Armin Hemmann:
  thanks, the last thing I want to deal with is an initrd.

 It's initramfs nowadays and that's quite easy to handle.

do you have a nice little howto? Not some general one but a 'you need this to 
get raid1 root booting'. Because I am totally stuck. From the stuff I read it 
should work - but I always get a root not found panic.



Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Luigi Pinna
You don't need all of that...
With mdadm can you put your RAID array as persistent. If it is
persistent your kernel can use the autodetect function and build it
before mount /
I have in my raidtab
# cat /etc/raidtab
raiddev   /dev/md0
raid-level1
chunk-size4k
persistent-superblock 1
nr-raid-disks 2
device/dev/sda2
raid-disk 0
device/dev/sdb2
raid-disk 1

After that I built it I use any tools expect, as you, RAID support built
in kernel
Luigi


 Am Donnerstag, 28. August 2008 17:30:44 schrieb Volker Armin Hemmann:
  thanks, the last thing I want to deal with is an initrd.

 It's initramfs nowadays and that's quite easy to handle.

 Bye...

   Dirk






Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Neil Bothwick
On Thu, 28 Aug 2008 19:41:04 +0200, Volker Armin Hemmann wrote:

 From the stuff I read it 
 should work - but I always get a root not found panic

Root device or root fs?


-- 
Neil Bothwick

Q: What's the proper plural of a 'Net-connected Windows machine?
A: A Botnet


signature.asc
Description: PGP signature


Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Volker Armin Hemmann
On Donnerstag, 28. August 2008, Volker Armin Hemmann wrote:
 On Donnerstag, 28. August 2008, Dirk Heinrichs wrote:
  Am Donnerstag, 28. August 2008 17:30:44 schrieb Volker Armin Hemmann:
   thanks, the last thing I want to deal with is an initrd.
 
  It's initramfs nowadays and that's quite easy to handle.

 do you have a nice little howto? Not some general one but a 'you need this
 to get raid1 root booting'. Because I am totally stuck. From the stuff I
 read it should work - but I always get a root not found panic.

I created an initramfs with genkernel (I hate genkernel). Now it works. grmpf. 
I wish I wouldn't have to use it.





Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Volker Armin Hemmann
On Donnerstag, 28. August 2008, Neil Bothwick wrote:
 On Thu, 28 Aug 2008 19:41:04 +0200, Volker Armin Hemmann wrote:
  From the stuff I read it
  should work - but I always get a root not found panic

 Root device or root fs?

it doesn't find /dev/md1 (unknown block device) and panics. And yes, I created 
md0,1,2,3 with mknod in /dev

The partitions (sda3,b3) themselves are found fine.




Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Xav'
Le Thursday 28 August 2008 20:45:15 Volker Armin Hemmann, vous avez écrit :
 On Donnerstag, 28. August 2008, Neil Bothwick wrote:
  On Thu, 28 Aug 2008 19:41:04 +0200, Volker Armin Hemmann wrote:
   From the stuff I read it
   should work - but I always get a root not found panic
 
  Root device or root fs?

 it doesn't find /dev/md1 (unknown block device) and panics. And yes, I
 created md0,1,2,3 with mknod in /dev

Did you create the nodes with de /dev partition unmounted ? I think you have to 
check this... because when the kernel boot up, the /dev partition is 
unmounted :)
 The partitions (sda3,b3) themselves are found fine.

Regards,

Xavier Parizet



signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Volker Armin Hemmann
On Donnerstag, 28. August 2008, Xav' wrote:
 Le Thursday 28 August 2008 20:45:15 Volker Armin Hemmann, vous avez écrit :
  On Donnerstag, 28. August 2008, Neil Bothwick wrote:
   On Thu, 28 Aug 2008 19:41:04 +0200, Volker Armin Hemmann wrote:
From the stuff I read it
should work - but I always get a root not found panic
  
   Root device or root fs?
 
  it doesn't find /dev/md1 (unknown block device) and panics. And yes, I
  created md0,1,2,3 with mknod in /dev

 Did you create the nodes with de /dev partition unmounted ? I think you
 have to check this... because when the kernel boot up, the /dev partition
 is unmounted :)

yes I did.
I copied root to a spare disk first and booted from it.



Re: [gentoo-user] root on raid 1 = no boot

2008-08-28 Thread Neil Bothwick
On Thu, 28 Aug 2008 20:52:33 +0200, Xav' wrote:

  it doesn't find /dev/md1 (unknown block device) and panics. And yes, I
  created md0,1,2,3 with mknod in /dev  
 
 Did you create the nodes with de /dev partition unmounted ? I think you
 have to check this... because when the kernel boot up, the /dev
 partition is unmounted :)

I don't have any such nodes in my static /dev (only console and null in
there) they are created by the kernel.


-- 
Neil Bothwick

- How many surrealists does it take to change a light bulb?
- Two: one to hold the giraffe, the other to fill the bathtub with
  lots of brightly colored machine tools.


signature.asc
Description: PGP signature