ininite rc loop

Matthias Rampke matthias.rampke at googlemail.com
Sun Jan 23 06:53:16 PST 2011


I've been setting up a DF-BSD home server. After compiling netatalk,
avahi, and some convenience tools (sudo, vim, screen, zsh and
pkg_rolling-replace, I think) I wanted to reboot.

Now the machine keeps repeating some part of the boot process (see
screenshot at [1]). There's a short delay after "loading devfs rules";
when I press ctrl+c then I can break the cycle.

Subsequent actions are taken as often as the cycle ran (with some
services complaining that they're already running, other failing to
bind to ports etc.).

I can ssh into the machine or login on the console. Not all
filesystems are mounted, e.g. /home, /tmp, /var/tmp are missing, while
/, /usr, /var and /dev are there (the default HAMMER layout made by
the installer). I can mount the rest with mount -a just fine. (this
may be an artifact of ctrl+c, it appears the system tries to unmount
everything but fails on usr, dev and var)

The system is more-or-less usable for a time then, but either becomes
unresponsive or simply panics due to ressource exhaustion.

I have symlinked /usr/pkg/etc to /etc and I had linked
/usr/pkg/share/examples/rc.d to /etc/rc.d, although I have tried to
untangle the latter (which didn't help). Comparing /etc/rc.d with
/usr/src/etc/rc.d the file names match except for Makefile and
udevd_early missing from /etc/rc.d (from what I can tell the latter
was introduced only after 2.8.2).

I've attached my rc.conf, the output from "rcorder rcorder -s nostart
/etc/rc.d/*", dmesg and /var/log/messages. uname -a is:

DragonFly zz.2pktfkt.net 2.8-RELEASE DragonFly v2.8.2-RELEASE #2: Fri
Oct 29 08:03:52 PDT 2010
root at test29.backplane.com:/usr/obj/usr/src-misc/sys/X86_64_GENERIC_SMP
 x86_64



PS: concerning the symlinking: I know this is bad, and may well have
caused this, but I think it *should* work (because without a
corresponding entry in rc.conf, each script should be a noop) and it
*did* work very well on NetBSD.





[1] http://matthiasr.posterous.com/rcd-weirdness
/etc/rc.d/cryptdisks
/etc/rc.d/initdiskless
/etc/rc.d/rcconf
/etc/rc.d/devfs
/etc/rc.d/initrandom
/etc/rc.d/dumpon
/etc/rc.d/udevd
/etc/rc.d/lvm
/etc/rc.d/vinum
/etc/rc.d/ccd
/etc/rc.d/swap1
/etc/rc.d/fsck
/etc/rc.d/root
/etc/rc.d/bootconf
/etc/rc.d/mountcritlocal
/etc/rc.d/diskless
/etc/rc.d/random
/etc/rc.d/adjkerntz
/etc/rc.d/atm1
/etc/rc.d/ttys
/etc/rc.d/hostname
/etc/rc.d/cleanvar
/etc/rc.d/addswap
/etc/rc.d/fixbootfile
/etc/rc.d/sysctl
/etc/rc.d/ipmon
/etc/rc.d/ipfilter
/etc/rc.d/ipnat
/etc/rc.d/ipfs
/etc/rc.d/sppp
/etc/rc.d/serial
/etc/rc.d/netif
/etc/rc.d/atm2
/etc/rc.d/isdnd
/etc/rc.d/ppp-user
/etc/rc.d/routing
/etc/rc.d/ip6fw
/etc/rc.d/network_ipv6
/etc/rc.d/devd
/etc/rc.d/ipfw
/etc/rc.d/nsswitch
/etc/rc.d/mroute6d
/etc/rc.d/route6d
/etc/rc.d/mrouted
/etc/rc.d/routed
/etc/rc.d/NETWORKING
/etc/rc.d/mountcritremote
/etc/rc.d/sysdb
/etc/rc.d/newsyslog
/etc/rc.d/syslogd
/etc/rc.d/ppp
/etc/rc.d/savecore
/etc/rc.d/SERVERS
/etc/rc.d/named
/etc/rc.d/rpcbind
/etc/rc.d/nisdomain
/etc/rc.d/ypxfrd
/etc/rc.d/ypserv
/etc/rc.d/ypupdated
/etc/rc.d/ypbind
/etc/rc.d/ypset
/etc/rc.d/yppasswdd
/etc/rc.d/accounting
/etc/rc.d/nfsclient
/etc/rc.d/amd
/etc/rc.d/atm3
/etc/rc.d/cleartmp
/etc/rc.d/dmesg
/etc/rc.d/ipsec
/etc/rc.d/ipxrouted
/etc/rc.d/keyserv
/etc/rc.d/ldconfig
/etc/rc.d/quota
/etc/rc.d/nfsserver
/etc/rc.d/mountd
/etc/rc.d/nfsd
/etc/rc.d/statd
/etc/rc.d/lockd
/etc/rc.d/pflog
/etc/rc.d/pf
/etc/rc.d/pppoed
/etc/rc.d/pwcheck
/etc/rc.d/virecover
/etc/rc.d/DAEMON
/etc/rc.d/watchdogd
/etc/rc.d/apm
/etc/rc.d/apmd
/etc/rc.d/battd
/etc/rc.d/bootparams
/etc/rc.d/btconfig
/etc/rc.d/bthcid
/etc/rc.d/dntpd
/etc/rc.d/ftpd
/etc/rc.d/local
/etc/rc.d/lpd
/etc/rc.d/mixer
/etc/rc.d/motd
/etc/rc.d/nscd
/etc/rc.d/powerd
/etc/rc.d/rarpd
/etc/rc.d/rndcontrol
/etc/rc.d/rtadvd
/etc/rc.d/rtsold
/etc/rc.d/rwho
/etc/rc.d/sdpd
/etc/rc.d/timed
/etc/rc.d/usbd
/etc/rc.d/LOGIN
/etc/rc.d/vkernel
/etc/rc.d/varsym
/etc/rc.d/syscons
/etc/rc.d/sshd
/etc/rc.d/sensorsd
/etc/rc.d/sendmail
/etc/rc.d/abi
/etc/rc.d/cron
/etc/rc.d/jail
/etc/rc.d/localdaemons
/etc/rc.d/netoptions
/etc/rc.d/securelevel
/etc/rc.d/resident
/etc/rc.d/othermta
/etc/rc.d/msgs
/etc/rc.d/moused
/etc/rc.d/inetd
/etc/rc.d/hotplugd
/etc/rc.d/hostapd
Attachment:
rc.conf
Description: Binary data
Copyright (c) 2003-2010 The DragonFly Project.
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
DragonFly v2.8.2-RELEASE #2: Fri Oct 29 08:03:52 PDT 2010
    root at test29.backplane.com:/usr/obj/usr/src-misc/sys/X86_64_GENERIC_SMP
TSC clock: 1662938730 Hz, i8254 clock: 1193366 Hz
CPU: Intel(R) Atom(TM) CPU D510   @ 1.66GHz (1662.70-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x106ca  Stepping = 10
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x40e31d<SSE3,DTES64,MON,DS_CPL,TM2,SSSE3,CX16,xTPR,PDCM,MOVBE>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  Cores per package: 2
  Logical CPUs per core: 2
real memory  = 534969344 (510 MB)
avail memory = 488312832 (465 MB)
Changing APIC ID for IO APIC #0 from 1 to 4 in MP table
Changing APIC ID for IO APIC #0 from 1 to 4 on chip
Programming 24 pins in IOAPIC #0
lapic: divisor index 0, frequency 83134451 Hz
DragonFly/MP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  0, version: 0x00050014, at 0xfee00000
 cpu1 (AP):  apic id:  1, version: 0x00050014, at 0xfee00000
 cpu2 (AP):  apic id:  2, version: 0x00050014, at 0xfee00000
 cpu3 (AP):  apic id:  3, version: 0x00050014, at 0xfee00000
 io0 (APIC): apic id:  4, version: 0x00170020, at 0xfec00000
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
objcache(exec-args): too small for ncpus, adjusting cluster_limit 16->64
module_register: module pci/ahci already exists!
Module pci/ahci failed to register: 17
FQ scheduler policy version 1.0 loaded
No policy for md0 specified, or policy not found
disk scheduler: set policy of md0 to noop
md0: Malloc disk
kbd0 at kbdmux0
ACPI: RSDP 0xf99f0 00024 (v2 ACPIAM)
ACPI: XSDT 0x1fe90100 0004C (v1 082510 XSDT0909 20100825 MSFT 00000097)
ACPI: FACP 0x1fe90290 000F4 (v4 082510 FACP0909 20100825 MSFT 00000097)
ACPI: DSDT 0x1fe90440 04F38 (v2 A140PA A140PA22 00000022 INTL 20051117)
ACPI: FACS 0x1fe9e000 00040
ACPI: APIC 0x1fe90390 0006C (v2 082510 APIC0909 20100825 MSFT 00000097)
ACPI: MCFG 0x1fe90400 0003C (v1 082510 OEMMCFG  20100825 MSFT 00000097)
ACPI: OEMB 0x1fe9e040 00082 (v1 082510 OEMB0909 20100825 MSFT 00000097)
ACPI: HPET 0x1fe9a440 00038 (v1 082510 OEMHPET  20100825 MSFT 00000097)
cryptosoft0: <software crypto> on motherboard
acpi0: <082510 XSDT0909> on motherboard
objcache_reclaimlist
objcache_reclaimlist
objcache_reclaimlist
objcache_reclaimlist
acpi0: Power Button (fixed)
Warning: ACPI is disabling APM's device.  You can't run both
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
acpi_hpet0: frequency 14318180
acpi_button0: <Power Button> on acpi0
cpu0: <ACPI CPU> on acpi0
cpu_cst0: <ACPI CPU C-State> on cpu0
cpu1: <ACPI CPU> on acpi0
cpu_cst1: <ACPI CPU C-State> on cpu1
cpu2: <ACPI CPU> on acpi0
cpu_cst2: <ACPI CPU C-State> on cpu2
cpu3: <ACPI CPU> on acpi0
cpu_cst3: <ACPI CPU C-State> on cpu3
pcib0: <MPTable Host-PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
pci0: <multimedia, HDA> (vendor 0x8086, dev 0x27d8) at device 27.0 irq 5
pcib1: <MPTable PCI-PCI bridge> irq 5 at device 28.0 on pci0
pci1: <PCI bus> on pcib1
re0: <RealTek 8111/8168 PCIe Gigabit Ethernet> port 0xd800-0xd8ff mem 0xfbffc000-0xfbffffff,0xfbffb000-0xfbffbfff irq 5 at device 0.0 on pci1
re0: Hardware rev. 0x28000000; MAC ver. 0x2a; PCI-E 125MHz
miibus0: <MII bus> on re0
rgephy0: <8211B/RTL8169S/8110S media interface> on miibus0
rgephy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
re0: MAC address: 00:01:2e:bc:70:32
pcib2: <MPTable PCI-PCI bridge> irq 10 at device 28.1 on pci0
pci2: <PCI bus> on pcib2
pci2: <network> (vendor 0x168c, dev 0x002b) at device 0.0 irq 10
pcib3: <MPTable PCI-PCI bridge> irq 11 at device 28.2 on pci0
pci3: <PCI bus> on pcib3
vgapci0: <VGA-compatible display> port 0xec00-0xec7f mem 0xce000000-0xcfffffff,0xd0000000-0xdfffffff,0xfd000000-0xfdffffff irq 11 at device 0.0 on pci3
pci3: <multimedia, HDA> (vendor 0x10de, dev 0x0be3) at device 0.1 irq 11
uhci0: <Intel 82801G (ICH7) USB controller> port 0xcc00-0xcc1f irq 14 at device 29.0 on pci0
usb0: <Intel 82801G (ICH7) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801G (ICH7) USB controller> port 0xc880-0xc89f irq 2 at device 29.1 on pci0
usb1: <Intel 82801G (ICH7) USB controller> on uhci1
usb1: USB revision 1.0
uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801G (ICH7) USB controller> port 0xc800-0xc81f irq 11 at device 29.2 on pci0
usb2: <Intel 82801G (ICH7) USB controller> on uhci2
usb2: USB revision 1.0
uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3: <Intel 82801G (ICH7) USB controller> port 0xc480-0xc49f irq 5 at device 29.3 on pci0
usb3: <Intel 82801G (ICH7) USB controller> on uhci3
usb3: USB revision 1.0
uhub3: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
uhub3: 2 ports with 2 removable, self powered
ehci0: <Intel 82801GB/R USB 2.0 controller> mem 0xfe9fbc00-0xfe9fbfff irq 14 at device 29.7 on pci0
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel 82801GB/R USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4
uhub4: 8 ports with 8 removable, self powered
uhub5: <vendor 0x05e3 USB2.0 Hub, class 9/0, rev 2.00/77.63, addr 2> on uhub4
uhub5: single transaction translator
uhub5: 4 ports with 4 removable, self powered
ukbd0: <vendor 0x046a product 0x0023, class 0/0, rev 2.00/2.20, addr 2> on uhub1
kbd1 at ukbd0
uhid0: <vendor 0x046a product 0x0023, class 0/0, rev 2.00/2.20, addr 2> on uhub1
umass0: <Western Digital My Book, class 0/0, rev 2.00/1.65, addr 3> on uhub5
pcib4: <MPTable PCI-PCI bridge> at device 30.0 on pci0
pci4: <PCI bus> on pcib4
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH7 SATA300 controller> port 0xbc00-0xbc0f,0xc000-0xc003,0xc080-0xc087,0xc400-0xc403,0xb880-0xb887 mem 0xfe9fb800-0xfe9fbbff irq 2 at device 31.2 on pci0
ata2: <ATA channel 0> on atapci0
No policy for ad4 specified, or policy not found
disk scheduler: set policy of ad4 to noop
ad4: 238475MB <Hitachi HTS545025B9SA02 PB2AC60W> at ata2-master SATA150
ata3: <ATA channel 1> on atapci0
pci0: <serial bus, SMBus> (vendor 0x8086, dev 0x27da) at device 31.3 irq 2
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: can't drain, serial port might not exist, disabling
sio1: can't drain, serial port might not exist, disabling
ppc0: cannot reserve I/O port range
CAM: Configuring 3 busses
(probe8:umass-sim0:0:0:0): Uninitialized Transport 5:0?
CAM: finished configuring all busses
No policy for da8 specified, or policy not found
disk scheduler: set policy of da8 to noop
no B_DEVMAGIC (bootdev=0)
da8 at umass-sim0 bus 0 target 0 lun 0
da8: <WD 10EAVS External 1.65> Fixed Direct Access SCSI-4 device 
da8: Serial Number WD-WCAU40147705     
da8: 40.000MB/s transfers
da8: 953869MB (1953525168 512 byte sectors: 255H 63S/T 121601C)
Mounting root from hammer:serno/100508PBL2003SK0LDHX_.s3d
tryroot serno/100508PBL2003SK0LDHX_.s3d
HAMMER(ROOT) recovery check seqno=0036b162
HAMMER(ROOT) recovery range 30000000009aab30-30000000009c5190
HAMMER(ROOT) recovery nexto 30000000009b98a0 endseqno=0036b288
HAMMER(ROOT) recovery undo  30000000009aab30-30000000009c5190 (108128 bytes)(RW)
HAMMER(ROOT) Found REDO_SYNC 30000000009b98a0
HAMMER(ROOT) Ignoring extra REDO_SYNC records in UNDO/REDO FIFO.
HAMMER(ROOT) recovery complete
HAMMER(ROOT) recovery redo  30000000009aab30-30000000009c5190 (108128 bytes)(RW)
HAMMER(ROOT) Embedded extended redo 30000000009b98a0, -60784 extbytes
HAMMER(ROOT) End redo recovery
Mounting devfs
HAMMER(Backup) recovery check seqno=001dffff
HAMMER(Backup) recovery range 3000000000000000-3000000000000000
HAMMER(Backup) recovery nexto 3000000000000000 endseqno=001e0000
HAMMER(Backup) mounted clean, no recovery needed
unmount(/usr): Cannot unmount: 26 process references still present
unmount(/tmp): Cannot unmount: 2 process references still present
unmount(/var): Cannot unmount: 39 process references still present
da8s4: cannot find label (no disk label)
HAMMER(Backup) recovery check seqno=001dffff
HAMMER(Backup) recovery range 3000000000000000-3000000000000000
HAMMER(Backup) recovery nexto 3000000000000000 endseqno=001e0000
HAMMER(Backup) mounted clean, no recovery needed
Attachment:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bz200000.bz2
Type: application/octet-stream
Size: 5695 bytes
Desc: "Description: BZip2 compressed data"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20110123/d28d4d9a/attachment-0017.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00000.bin
Type: application/octet-stream
Size: 1024 bytes
Desc: "messages.bz2"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20110123/d28d4d9a/attachment-0017.bin>


More information about the Bugs mailing list