FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 05-09-2008, 02:01 PM
"R. Scott Bailey"
 
Default Bug#480334: Regression: local-top scripts run before devices detected

Package: initramfs-tools
Version: 0.92a
Severity: important

This seems very similar to reported (old) bugs, but it's a change in
behavior for me so I'm opening this new problem to flag it. I recently
updated to version 0.92 (I believe -- a couple days prior to 0.92a,
which also exhibits the problem). Boots using initrds built after that
upgrade do not complete automatically...

scripts/local-top/mdadm runs immediately, without waiting for device
discovery to complete, and of course fails to start anything because the
devices don't exist (usually for about another 30-40 seconds). Then lvm2
can't find anything, and after a timeout I get punted into the shell.

Manual recovery (assuming I sit in front of the system) is easy:
# scripts/local-top/mdadm
# scripts/local-top/lvm2
# exit

But this sucks for unattended reboots, obviously. :-p Maybe I should
blame udev instead, but I don't know how to finger the guilty party.

-- Package-specific info:
-- /proc/cmdline
root=/dev/mapper/vg00-rootvol ro

-- /proc/filesystems
ext2
ext3

-- lsmod
Module Size Used by
nfsd 263088 517
lockd 71800 2 nfsd
nfs_acl 4544 1 nfsd
auth_rpcgss 50568 1 nfsd
sunrpc 208840 517 nfsd,lockd,nfs_acl,auth_rpcgss
exportfs 5568 1 nfsd
parport_pc 35928 1
lp 14296 0
parport 41616 2 parport_pc,lp
ipv6 300760 30
dm_crypt 18056 0
crypto_blkcipher 20996 1 dm_crypt
evdev 13952 2
ext3 153168 8
jbd 48552 1 ext3
dm_mirror 29248 0
dm_snapshot 20928 0
raid456 130080 1
async_xor 3520 1 raid456
async_memcpy 2496 1 raid456
async_tx 3264 1 raid456
xor 4304 2 raid456,async_xor
sunhme 33968 0
dm_mod 66752 20 dm_crypt,dm_mirror,dm_snapshot
raid1 25216 2
md_mod 92064 5 raid456,raid1
sd_mod 30360 18
sym53c8xx 81512 10
scsi_transport_spi 28800 1 sym53c8xx
scsi_mod 174112 3 sd_mod,sym53c8xx,scsi_transport_spi

-- /etc/kernel-img.conf
# Do not create symbolic links in /
do_symlinks = No
do_initrd = Yes
do_bootloader = No

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
BOOT=local
DEVICE=eth0
NFSROOT=auto

-- /etc/crypttab
# <target name> <source device> <key file> <options>


-- System Information:
Debian Release: lenny/sid
Architecture: sparc (sparc64)

Kernel: Linux 2.6.25-1-sparc64
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages initramfs-tools depends on:
ii cpio 2.9-13 GNU cpio -- a program to manage ar
ii findutils 4.4.0-2 utilities for finding files--find,
ii klibc-utils 1.5.9-1 small statically-linked utilities
ii module-init-tools 3.4-1 tools for managing Linux kernel mo
ii udev 0.114-2 /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii busybox 1:1.1.3-5 Tiny utilities for small and embed

-- no debconf information



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 05-09-2008, 02:54 PM
maximilian attems
 
Default Bug#480334: Regression: local-top scripts run before devices detected

tags 480334 moreinfo
stop

On Fri, May 09, 2008 at 10:01:15AM -0400, R. Scott Bailey wrote:
>
> This seems very similar to reported (old) bugs, but it's a change in
> behavior for me so I'm opening this new problem to flag it. I recently
> updated to version 0.92 (I believe -- a couple days prior to 0.92a,
> which also exhibits the problem). Boots using initrds built after that
> upgrade do not complete automatically...
>
> scripts/local-top/mdadm runs immediately, without waiting for device
> discovery to complete, and of course fails to start anything because the
> devices don't exist (usually for about another 30-40 seconds). Then lvm2
> can't find anything, and after a timeout I get punted into the shell.
>
> Manual recovery (assuming I sit in front of the system) is easy:
> # scripts/local-top/mdadm
> # scripts/local-top/lvm2
> # exit
>
> But this sucks for unattended reboots, obviously. :-p Maybe I should
> blame udev instead, but I don't know how to finger the guilty party.

well your report leaves many question opens.
as the corresponding code is untouched between 0.91 and 0.92.
i'd guess the change in behaviour is due to newer kernel.

a quick workaround is to use the roodelay boot param.
see man initramfs-tools

--
maks



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 05-09-2008, 03:05 PM
"Bailey, Scott"
 
Default Bug#480334: Regression: local-top scripts run before devices detected

Thanks for your patience, it is hard to know what information is useful
sometimes. Martin also suggested using rootdelay, and I am please to
report that works as advertised. (Even on sparc using silo...) I should
be good going forward with this solution.

I think Martin already closed this report.

Regards,
-Scott



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 11:30 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org