[Pkg-sysvinit-devel] Bug#349054: /etc/init.d/checkroot.sh: checkroot.sh hangs at /sbin/findfs "LABEL=root"

Norbert Kiesel nkiesel at tbdnetworks.com
Fri Jan 20 18:52:45 UTC 2006


Package: initscripts
Version: 2.86.ds1-6
Severity: normal
File: /etc/init.d/checkroot.sh

Hi,

I noticed this since about 1 month now (perhaps even longer, not sure):
during boot, checkroot.sh hangs for me.  I can proceed booting by
hitting Ctrl-C.  However, this leaves / mounted ro and causes some later
startup scripts to bark (which might be another problem in itself).

I found that spot by adding "set -x" into checkroot.sh.

Running '/sbin/findfs "LABEL=root"' after booting works fine (and returns
the correct /dev/vg0/root, so I'd assume it has to do something with
lvm2/dm not being initialized yet at this point.

Not sure what info you need, so I jsust append what might be a good
starting point.  I'll be happy to provide more info if needed.

% cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system>	<mount point>	<type>	<options>			<dump>	<pass>
proc		/proc		proc	defaults
sysfs		/sys		sysfs	defaults
usbfs		/proc/bus/usb	usbfs	defaults
nfsd		/proc/fs/nfsd	nfsd	defaults
LABEL=root	/		ext3	defaults,errors=remount-ro	0	1
LABEL=boot	/boot		ext3	defaults			0	2
LABEL=usr	/usr		ext3	defaults			0	2
LABEL=var	/var		ext3	defaults			0	2
LABEL=tmp	/tmp		ext2	defaults			0	2
LABEL=home	/home		ext3	defaults			0	2
LABEL=music	/music		ext3	defaults			0	2
LABEL=swap	none		swap	sw
/dev/fd0	/media/floppy	auto	defaults,user,noauto
/dev/cdrom	/media/cdrom	iso9660	defaults,ro,user,noauto

% cat /proc/mounts
rootfs on / type rootfs (rw)
/dev/vg0/root on / type ext3 (rw,data=ordered)
proc on /proc type proc (rw,nodiratime)
sysfs on /sys type sysfs (rw)
/dev/vg0/root on /dev/.static/dev type ext3 (rw,data=ordered)
tmpfs on /dev type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/hdd1 on /boot type ext3 (rw,data=ordered)
/dev/vg0/usr on /usr type ext3 (rw,data=ordered)
/dev/vg0/var on /var type ext3 (rw,data=ordered)
/dev/vg0/tmp on /tmp type ext2 (rw,nogrpid)
/dev/vg0/home on /home type ext3 (rw,data=ordered)
/dev/mapper/vg0-music on /music type ext3 (rw,data=ordered)
devpts on /dev/pts type devpts (rw)
tmpfs on /dev/shm type tmpfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

% pvs
  /dev/hda: open failed: No medium found
  PV         VG   Fmt  Attr PSize   PFree
  /dev/hdd2  vg0  lvm2 a-   150.75G 67.75G
% vgs
  /dev/hda: open failed: No medium found
  VG   #PV #LV #SN Attr   VSize   VFree
  vg0    1   8   0 wz--n- 150.75G 67.75G
% lvs
  /dev/hda: open failed: No medium found
  LV     VG   Attr   LSize  Origin Snap%  Move Log Copy%
  anindo vg0  -wi-a- 20.00G
  home   vg0  -wi-ao 20.00G
  music  vg0  -wi-ao 15.00G
  root   vg0  -wi-ao  5.00G
  swap   vg0  -wi-ao  2.00G
  tmp    vg0  -wi-ao  1.00G
  usr    vg0  -wi-ao 10.00G
  var    vg0  -wi-ao 10.00G

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages initscripts depends on:
ii  coreutils     5.93-5                     The GNU core utilities
ii  dpkg          1.13.11.1                  package maintenance system for Deb
ii  e2fsprogs     1.38+1.39-WIP-2005.12.31-1 ext2 file system utilities and lib
ii  libc6         2.3.5-12                   GNU C Library: Shared libraries an
ii  lsb-base      3.0-14                     Linux Standard Base 3.0 init scrip
ii  util-linux    2.12r-5                    Miscellaneous system utilities

initscripts recommends no packages.

-- no debconf information




More information about the Pkg-sysvinit-devel mailing list