linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* booting 2.5.68 with root on software raid and devfs?
@ 2003-04-21 14:05 Pierfrancesco Caci
  2003-04-21 14:30 ` Christoph Hellwig
  0 siblings, 1 reply; 5+ messages in thread
From: Pierfrancesco Caci @ 2003-04-21 14:05 UTC (permalink / raw)
  To: linux-kernel


Hi,

anyone has an idea why 2.5.68 can't boot (it sends a panic, can't
mount root on md(9,0) message and dies) off a raid1+devfs setup that
works perfectly on 2.4.x ?

I have the suspect that something in the naming of devices has
changed, but I can't find any reference by googling around.

Here's my setup, as 2.4.21-pre7 sees it:

root@penny:~ # mount            
/dev/md/0 on / type ext3 (rw)
proc on /proc type proc (rw)
/dev/penny/niglia on /usr type ext3 (rw)
/dev/penny/viola on /var type ext3 (rw)
/dev/penny/tippete on /home type ext3 (rw)
/dev/kim/felix on /usr/src type ext3 (rw)
/dev/kim/isidoro on /home/ftp/pub type ext3 (rw,noatime)
/dev/gattaia/pink on /scratch type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)


root@penny:~ # cat /proc/mdstat 
Personalities : [raid0] [raid1] 
read_ahead 1024 sectors
md0 : active raid1 ide/host0/bus1/target1/lun0/part1[1] ide/host0/bus0/target0/lun0/part1[0]
      248896 blocks [2/2] [UU]
      
md1 : active raid1 ide/host0/bus1/target1/lun0/part2[1] ide/host0/bus0/target0/lun0/part2[0]
      39896576 blocks [2/2] [UU]
      
unused devices: <none>

root@penny:~ # head /etc/lilo.conf
#disk=/dev/hda
# bios=0x80
#disk=/dev/hdd
# bios=0x81
boot=/dev/md0
root=/dev/md0
raid-extra-boot=/dev/hda,/dev/hdd
#compact
#linear
lba32


Any ideas where to start looking ?

Thanks

Pf

-- 

-------------------------------------------------------------------------------
 Pierfrancesco Caci | ik5pvx | mailto:p.caci@tin.it  -  http://gusp.dyndns.org
  Firenze - Italia  | Office for the Complication of Otherwise Simple Affairs 
     Linux penny 2.4.21-pre7 #1 Sat Apr 12 09:12:33 CEST 2003 i686 GNU/Linux


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: booting 2.5.68 with root on software raid and devfs?
  2003-04-21 14:05 booting 2.5.68 with root on software raid and devfs? Pierfrancesco Caci
@ 2003-04-21 14:30 ` Christoph Hellwig
  2003-04-21 15:04   ` Pierfrancesco Caci
  0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2003-04-21 14:30 UTC (permalink / raw)
  To: Pierfrancesco Caci; +Cc: linux-kernel

On Mon, Apr 21, 2003 at 04:05:53PM +0200, Pierfrancesco Caci wrote:
> root@penny:~ # head /etc/lilo.conf
> #disk=/dev/hda
> # bios=0x80
> #disk=/dev/hdd
> # bios=0x81
> boot=/dev/md0
> root=/dev/md0
> raid-extra-boot=/dev/hda,/dev/hdd
> #compact
> #linear
> lba32

No idea how lilo maps all this to a kernel command line, but
in 2.5 you need to pass the devfs names to the kernel if using devfs,
not the old ones.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: booting 2.5.68 with root on software raid and devfs?
  2003-04-21 14:30 ` Christoph Hellwig
@ 2003-04-21 15:04   ` Pierfrancesco Caci
  0 siblings, 0 replies; 5+ messages in thread
From: Pierfrancesco Caci @ 2003-04-21 15:04 UTC (permalink / raw)
  To: linux-kernel

:-> "Christoph" == Christoph Hellwig <hch@infradead.org> writes:

    > On Mon, Apr 21, 2003 at 04:05:53PM +0200, Pierfrancesco Caci wrote:
    >> root@penny:~ # head /etc/lilo.conf
    >> #disk=/dev/hda
    >> # bios=0x80
    >> #disk=/dev/hdd
    >> # bios=0x81
    >> boot=/dev/md0
    >> root=/dev/md0
    >> raid-extra-boot=/dev/hda,/dev/hdd
    >> #compact
    >> #linear
    >> lba32

    > No idea how lilo maps all this to a kernel command line, but
    > in 2.5 you need to pass the devfs names to the kernel if using devfs,
    > not the old ones.

Yep. Passing /dev/md/0 did it, and I'm now stuck with my partitions on
LVM that I don't know how to mount... Ahh, the bleeding edge :-)

Thanks :)

Pf


-- 

-------------------------------------------------------------------------------
 Pierfrancesco Caci | ik5pvx | mailto:p.caci@tin.it  -  http://gusp.dyndns.org
  Firenze - Italia  | Office for the Complication of Otherwise Simple Affairs 
     Linux penny 2.4.21-pre7 #1 Sat Apr 12 09:12:33 CEST 2003 i686 GNU/Linux


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: booting 2.5.68 with root on software raid and devfs?
@ 2003-04-22 11:57 Chuck Ebbert
  0 siblings, 0 replies; 5+ messages in thread
From: Chuck Ebbert @ 2003-04-22 11:57 UTC (permalink / raw)
  To: linux-kernel

Pierfrancesco Caci wrote:


> after manually applying the patch below (it complained it contains
> only garbage... duh?)


  Hmm.. patch is making judgement calls now?



------
 Chuck

^ permalink raw reply	[flat|nested] 5+ messages in thread

* booting 2.5.68 with root on software raid and devfs?
@ 2003-04-22  0:12 Chuck Ebbert
  0 siblings, 0 replies; 5+ messages in thread
From: Chuck Ebbert @ 2003-04-22  0:12 UTC (permalink / raw)
  To: Pierfrancesco Caci; +Cc: linux-kernel


> I have the suspect that something in the naming of devices has
> changed, but I can't find any reference by googling around.


  Try this:


--- linux-2.5.66-ref/drivers/pci/bus.c	Sat Mar 29 09:16:22 2003
+++ linux-2.5.66-uni/drivers/pci/bus.c	Fri Apr 18 19:08:04 2003
@ -75,7 +75,8 @
  * Add newly discovered PCI devices (which are on the bus->devices
  * list) to the global PCI device list, add the sysfs and procfs
  * entries.  Where a bridge is found, add the discovered bus to
- * the parents list of child buses, and recurse.
+ * the parents list of child buses, and recurse (breadth-first
+ * to be compatible with 2.4)
  *
  * Call hotplug for each new devices.
  */
@ -98,6 +99,12 @
 #endif
 		pci_create_sysfs_dev_files(dev);
 
+	}
+
+	list_for_each_entry(dev, &bus->devices, bus_list) {
+
+		BUG_ON(list_empty(&dev->global_list));
+
 		/*
 		 * If there is an unattached subordinate bus, attach
 		 * it and then scan for unattached PCI devices.



------
 Chuck

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-04-22 11:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-21 14:05 booting 2.5.68 with root on software raid and devfs? Pierfrancesco Caci
2003-04-21 14:30 ` Christoph Hellwig
2003-04-21 15:04   ` Pierfrancesco Caci
2003-04-22  0:12 Chuck Ebbert
2003-04-22 11:57 Chuck Ebbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).