Date: Sun, 6 Oct 2002 19:29:37 -0600 From: "Seth Hieronymus" <sethh@principia.edu> To: "Robert Watson" <rwatson@freebsd.org>, <freebsd-current@freebsd.org> Subject: Re: My problems with GEOM Message-ID: <OE110ebgE7Pv1Sl0l3b000165b9@hotmail.com> References: <Pine.NEB.3.96L.1021006202348.10328A-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
From: "Robert Watson" >On Sun, 6 Oct 2002, Carl Schmidt wrote: > > > Mounting root from ufs:/dev/ad0s1a > > > > and hangs -- only a physical reset works. However, breaking into the > > debugger, and running a trace, I get (hand-copied): > >Hmm. I actually ran into this problem on some diskless booting boxes, but >it went away so I assumed it was a local nit since I was messing with VFS >substantially on the boxes in question. Apparently not. (This was a >month or two ago, and quite pre-GEOM as default). > >Here's my first suggestion: the root file system is mounted by the init >process--your trace shows the stack of the current interrupt thread for >keyboard I/O, since that's the foreground thread when you break to the >debugger. Try using 'trace 1' to trace init instead; also, if you could >provide the output from the ddb ps command, that would be very useful. >BTW, you really want to be using a serial console for this sort of thing >-- copying stuff out by hand is (a) a pain, and (b) very error prone :-). Thanks for the pointers. Here's the trace 1: mi_switch(c0bb9988,14,c01bbe60,c0bb98f0,1) at mi_switch+0x290 msleep(c03778a0,0,68,c03153d7,14) at msleep+0x477 g_waitidle(1,c0314e10,c18f2885,c031bd64,c0b8dc20) at g_waitidle+0x8b g_dev_clone(0,c18f2885,6,c879cc08,c0bb6d80) at g_dev_clone+0x37 getdiskbyname(c18f2880,c879cc80,c0202f87,c18f2880,c18f2880) at getdiskbyname+0xa2 setrootbyname(c18f2880,c18f2880,c879cc48,c18f2880,20302020) at setrootbyname+0x11 vfs_mountroot_try(c1867220,c01912e0,c0bb8dc0,c879cd0c,c019134b) at vfs_mountroot_try+0x127 vfs_mountroot(c034b1c0,1,c0316bc7,216,203a2065) at vfs_mountroot+0x70 start_init(0,c879cd48,c031790b,34d,726f772d) at start_init+0x6b fork_exit(c01912e0,0,c879cd48) at fork_exit+0xa5 fork_trampoline() at fork_trampoline+0x1a --- trap 0x1, eip = 0, esp = 0xc879cd7c, ebp = 0 --- Here's the output from ps: pid proc addr uid ppid pgrp flag stat wmesg wchan cmd 36 c18f4c08 cd352000 0 0 0 0000204 norm[SLPQ nfsidl c035bdec][SLP] nfsio d 3 35 c18f4dc0 cd353000 0 0 0 0000204 norm[SLPQ nfsidl c035bde8][SLP] nfsiod 2 34 c18f7000 cd354000 0 0 0 0000204 norm[SLPQ nfsidl c035bde4][SLP] nfsiod 1 33 c1868528 c8e0d000 0 0 0 0000204 norm[SLPQ nfsidl c035bde0][SLP] nfsiod 0 32 c18686e0 c8e0e000 0 0 0 0000204 norm[SLPQ vlruwt c18686e0][SLP] vnlru 9 c1868898 c8e0f000 0 0 0 0000204 norm[SLPQ syncer c034c4cc][SLP] syncer 8 c1868a50 c8e10000 0 0 0 0000204 norm[SLPQ psleep c03a2e00][SLP] bufdaemon 7 c1868c08 c8e11000 0 0 0 000020c norm[SLPQ pgzero c03a68a8][SLP] pagezero 6 c1868dc0 c8e12000 0 0 0 0000204 norm[SLPQ psleep c03a68bc][SLP] vmdaemon 5 c18de000 cd309000 0 0 0 0000204 norm[SLPQ psleep c03612d8][SLP] pagedaemon 4 c18de1b8 cd30a000 0 0 0 0000204 norm[SLPQ g_down c0345678][SLP] g_down 3 c18de370 cd30b000 0 0 0 0000204 norm[SLPQ g_up c0345674][SLP] g_up 2 c18de528 cd30c000 0 0 0 0000204 norm[SLPQ g_read_data_busy c87d5c00][SLP] g_event 31 c18de6e0 cd30d000 0 0 0 0000204 new [IWAIT] irq8: rtc 30 c18de898 cd30e000 0 0 0 0000204 new [IWAIT] irq0: clk 29 c0bbf1b8 c87f4000 0 0 0 0000204 new [IWAIT] irq12: psm0 28 c0bbf370 c87f5000 0 0 0 0000204 norm[CPU 0] irq1: atkbd0 27 c0bbf528 c87f6000 0 0 0 0000204 new [IWAIT] irq7: ppc0 26 c0bbf6e0 c87f7000 0 0 0 0000204 new [IWAIT] irq4: sio0 25 c0bbf898 c87f8000 0 0 0 0000204 new [IWAIT] swi0: tty:sio 24 c0bbfa50 c87f9000 0 0 0 0000204 norm[IWAIT] irq6: fdc0 23 c0bbfc08 c87fa000 0 0 0 0000204 new [IWAIT] irq10: bktr0 22 c0bbfdc0 c87fb000 0 0 0 0000204 new [IWAIT] irq11: xl0 21 c1868000 c8dcd000 0 0 0 0000204 norm[IWAIT] irq15: ata1 20 c18681b8 c8dd2000 0 0 0 0000204 norm[IWAIT] irq14: ata 0 19 c1868370 c8dd3000 0 0 0 0000204 new [IWAIT] irq9: acpi0 18 c0bb8000 c8778000 0 0 0 0000204 new [IWAIT] irq13: 17 c0bb81b8 c87eb000 0 0 0 0000204 new [IWAIT] swi5: task queue 16 c0bb8370 c87ec000 0 0 0 0000204 new [IWAIT] swi5: acpitaskq 15 c0bb8528 c87ed000 0 0 0 0000204 norm[SLPQ sleep c036b040][SLP] random 14 c0bb86e0 c87ee000 0 0 0 0000204 new [IWAIT] swi4: vm 13 c0bb8898 c87ef000 0 0 0 000020c norm[IWAIT] swi6: tty:sio clock 12 c0bb8a50 c87f0000 0 0 0 0000204 new [IWAIT] swi1: net 11 c0bb8c08 c87f1000 0 0 0 000020c norm[Can run] idle 1 c0bb8dc0 c87f2000 0 0 0 0000200 norm[SLPQ g_waitidle c03778a0][SLP] swapper 10 c0bbf000 c87f3000 0 0 0 0000204 norm[CVQ ktrace c037a084][SLP] ktrace 0 c0346920 c04a2000 0 0 0 0000200 norm[SLPQ sched c0346920][SLP] swapper Hope that helps. Anything else you would like me to do? Seth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?OE110ebgE7Pv1Sl0l3b000165b9>