Send freebsd-current mailing list submissions to
	freebsd-current@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
	freebsd-current-request@freebsd.org

You can reach the person managing the list at
	freebsd-current-owner@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."


Today's Topics:

   1. Re: recent libalias changes (Dag-Erling Sm?rgrav)
   2. Re: recent libalias changes (Dag-Erling Sm?rgrav)
   3. Re: Yesterday's code panics: Don't call insmntque(foo, NULL)
      (Bruce Cran)
   4. Re: Atheros TX power regulation (Sam Leffler)
   5. Re: recent libalias changes (David Malone)
   6. buildworld fails w/ "unknown user smmsp" (Jon Drews)
   7. Re: buildworld fails w/ "unknown user smmsp" (Liam J. Foy)
   8. Re: buildworld fails w/ 'unknown user smmsp' (Mike Jakubik)
   9. Re: [current tinderbox] failure on i386/pc98 (M. Warner Losh)
  10. Re: ng_ksocket on CURRENT (Gleb Smirnoff)
  11. Re: buildworld fails w/ 'unknown user smmsp' (Jon Drews)
  12. Re: ng_ksocket on CURRENT (Robert Watson)
  13. Re: malloc(M_WAITOK) of "Mbuf", forcing M_NOWAIT with the
      following	non-sleepable locks held (Willem Jan Withagen)
  14. Re: SATA Support with 5.x Current (Doug White)
  15. Re: ASUS A7N8X-X motherboard (Doug White)
  16. Re: today's CURRENT lockups (Gleb Smirnoff)
  17. Re: ng_ksocket on CURRENT (Gleb Smirnoff)
  18. Native preemption is the culprit [was Re: today's CURRENT
      lockups] (Thorsten Greiner)
  19. Re: Yesterday's code panics: Don't call insmntque(foo, NULL)
      (Luke)
  20. Re: Yesterday's code panics: Don't call insmntque(foo, NULL)
      (Luke)
  21. current syncer bug... (Poul-Henning Kamp)
  22. Re: malloc(M_WAITOK) of "Mbuf", forcing M_NOWAIT with the
      following	non-sleepable locks held (Willem Jan Withagen)
  23. Re: current syncer bug... (Don Lewis)
  24. Fw: malloc(M_WAITOK) of "Mbuf", forcing M_NOWAIT with the
      followingnon-sleepable locks held (Willem Jan Withagen)
  25. Re: current syncer bug...  (Poul-Henning Kamp)
  26. Re: current syncer bug...  (Don Lewis)
  27. Re: current syncer bug...  (Poul-Henning Kamp)
  28. panic: vm_page_t 0xc1c92660 phys_addr mismatch
      0000000000b6d000	000000002bb6d405 (eta)
  29. FreeBSD 5.2.1 hangs on boot with acpi disabled (Alex Hoff)
  30. moving /usr to another partition (Konstantin 'Kosta' Welke)
  31. Re: moving /usr to another partition (Don Lewis)
  32. Re: moving /usr to another partition (Sven Willenberger)
  33. Re: moving /usr to another partition (Scott E. Campbell)
  34. Re: just like midi/seq was treated? (was Re: HEADSUP: ibcs2
      and	svr4 compat headed for history) (Conrad J. Sabatier)
  35. Re: moving /usr to another partition (Julian Elischer)
  36. Re: moving /usr to another partition (Julian Elischer)


----------------------------------------------------------------------

Message: 1
Date: Mon, 05 Jul 2004 18:30:35 +0200
From: des@des.no (Dag-Erling Sm?rgrav)
Subject: Re: recent libalias changes
To: David Malone <dwmalone@maths.tcd.ie>
Cc: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Message-ID: <xzpsmc6a02c.fsf@dwp.des.no>
Content-Type: text/plain; charset=iso-8859-1

David Malone <dwmalone@maths.tcd.ie> writes:
> With Divacky's help we localised his problem to alias.c. The twowords
> function breaks the strick aliasing rule, try replacing it with:
>
> static __inline int
> twowords(void *p)
> {
>         unsigned char *c = p;
>
>         return ((((unsigned short)c[1] + (unsigned short)c[3])<<8) + c[0] + 
c[2];
> }

oh no you don't - this is not endian-clean.

DES
-- 
Dag-Erling Sm�rgrav - des@des.no

------------------------------

Message: 2
Date: Mon, 05 Jul 2004 18:44:21 +0200
From: des@des.no (Dag-Erling Sm?rgrav)
Subject: Re: recent libalias changes
To: David Malone <dwmalone@maths.tcd.ie>
Cc: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Message-ID: <xzpoemu9zfe.fsf@dwp.des.no>
Content-Type: text/plain; charset="iso-8859-1"

des@des.no (Dag-Erling Sm�rgrav) writes:
> David Malone <dwmalone@maths.tcd.ie> writes:
> > With Divacky's help we localised his problem to alias.c. The twowords
> > function breaks the strick aliasing rule, try replacing it with:
> > [...]
> oh no you don't - this is not endian-clean.

Please try the attached patch.

DES
-- 
Dag-Erling Sm�rgrav - des@des.no

-------------- next part --------------
A non-text attachment was scrubbed...
Name: twowords.diff
Type: text/x-patch
Size: 709 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040705/
f00bdf78/twowords-0001.bin

------------------------------

Message: 3
Date: Mon, 5 Jul 2004 17:56:02 +0100
From: Bruce Cran <bruce@cran.org.uk>
Subject: Re: Yesterday's code panics: Don't call insmntque(foo, NULL)
To: Chris Shenton <chris@shenton.org>
Cc: current@freebsd.org
Message-ID: <324053F4-CEA4-11D8-AE53-000D93ACEE20@cran.org.uk>
Content-Type: text/plain; charset=US-ASCII; format=flowed


On 5 Jul 2004, at 15:45, Chris Shenton wrote:

> I built a kernel from CVS yesterday, installed it and rebooted this
> morning.  It panicked with the message (manually copied):
>
>   ...
>   mounting root from ufs:/dev/amrd0s1a
>   panic: Don't call insmntque(foo, NULL)
>   Debugger("panic")
>   Stopped at Debugger+0x45: xchgl %ebx, in_Debugger.0
>
> This message appears in /usr/src/sys/kern/vfs_subr.c
>

I got caught by that bug too - it looks like it was broken for 6 hours, 
but it's been fixed now; the frenetic commit activity on vfs_subr.c 
seems to have settled down, too!

--
Bruce Cran


------------------------------

Message: 4
Date: Mon, 5 Jul 2004 10:04:48 -0700
From: Sam Leffler <sam@errno.com>
Subject: Re: Atheros TX power regulation
To: freebsd-current@freebsd.org
Cc: Tomas Randa <lists@hosting50.cz>
Message-ID: <200407051004.48229.sam@errno.com>
Content-Type: text/plain;  charset="iso-8859-1"

On Monday 05 July 2004 09:02 am, Tomas Randa wrote:
> Hi,
>
> is it possible to set TX power level on atheros cards supported by ath
> driver?

Not at the moment.

	Sam

------------------------------

Message: 5
Date: Mon, 5 Jul 2004 18:33:24 +0100
From: David Malone <dwmalone@maths.tcd.ie>
Subject: Re: recent libalias changes
To: des@des.no
Cc: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Message-ID: <20040705173324.GA54361@walton.maths.tcd.ie>
Content-Type: text/plain; charset=us-ascii

On Mon, Jul 05, 2004 at 06:30:35PM +0200, des@des.no wrote:
> oh no you don't - this is not endian-clean.

Don't worry - I wasn't planning on committing it in this form ;-)

	David.

------------------------------

Message: 6
Date: Mon, 5 Jul 2004 12:55:38 -0500
From: Jon Drews <jon.drews@gmail.com>
Subject: buildworld fails w/ "unknown user smmsp"
To: freebsd-current@freebsd.org
Message-ID: <8cb27cbf04070510556b7b9e64@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII

Platform: i386

Hi:

 I get the following error when I attempt to make my kernel:

mmtree -eU  -f /usr/src/etc/mtree/BSD.root.dist -p /
mtree -eU  -f /usr/src/etc/mtree/BSD.var.dist -p /var
mtree -eU  -f /usr/src/etc/mtree/BSD.usr.dist -p /usr
mtree -eU  -f /usr/src/etc/mtree/BSD.include.dist  -p /usr/include
mtree -deU  -f /usr/src/etc/mtree/BSD.sendmail.dist -p /
mtree: line 10: unknown user smmsp
*** Error code 1

Stop in /usr/src/etc.
*** Error code 1

 I configured postfix a while back to replace sendmail. However I do
not see "smmsp" in either my /etc/group or /etc/passwd files. What
have I done wrong here?


                                          TIA,
                                          Jonathan

------------------------------

Message: 7
Date: Mon, 5 Jul 2004 18:58:09 +0100
From: "Liam J. Foy" <liamfoy@sepulcrum.org>
Subject: Re: buildworld fails w/ "unknown user smmsp"
To: Jon Drews <jon.drews@gmail.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040705185809.2b0b66ff.liamfoy@sepulcrum.org>
Content-Type: text/plain; charset=US-ASCII

On Mon, 5 Jul 2004 12:55:38 -0500
Jon Drews <jon.drews@gmail.com> wrote:

> Platform: i386
> 
> Hi:
> 
>  I get the following error when I attempt to make my kernel:
> 
> mmtree -eU  -f /usr/src/etc/mtree/BSD.root.dist -p /
> mtree -eU  -f /usr/src/etc/mtree/BSD.var.dist -p /var
> mtree -eU  -f /usr/src/etc/mtree/BSD.usr.dist -p /usr
> mtree -eU  -f /usr/src/etc/mtree/BSD.include.dist  -p /usr/include
> mtree -deU  -f /usr/src/etc/mtree/BSD.sendmail.dist -p /
> mtree: line 10: unknown user smmsp
> *** Error code 1
> 
> Stop in /usr/src/etc.
> *** Error code 1
> 
>  I configured postfix a while back to replace sendmail. However I do
> not see "smmsp" in either my /etc/group or /etc/passwd files. What
> have I done wrong here?

You have not properly ran 'mergemaster'. Please look at:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html

> 
> 
>                                           TIA,
>                                           Jonathan
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


-- 
-Liam J. Foy
http://liamfoy.kerneled.org
"Love is like maths -- the idea is simple but can be quite complicated."

------------------------------

Message: 8
Date: Mon, 5 Jul 2004 14:07:43 -0400 (EDT)
From: "Mike Jakubik" <mikej@rogers.com>
Subject: Re: buildworld fails w/ 'unknown user smmsp'
To: "Jon Drews" <jon.drews@gmail.com>
Cc: freebsd-current@freebsd.org
Message-ID: <60517.66.11.183.182.1089050863.squirrel@66.11.183.182>
Content-Type: text/plain;charset=iso-8859-1

Jon Drews said:

> Platform: i386
>
> Hi:
>
>  I get the following error when I attempt to make my kernel:
>
> mmtree -eU  -f /usr/src/etc/mtree/BSD.root.dist -p /
> mtree -eU  -f /usr/src/etc/mtree/BSD.var.dist -p /var
> mtree -eU  -f /usr/src/etc/mtree/BSD.usr.dist -p /usr
> mtree -eU  -f /usr/src/etc/mtree/BSD.include.dist  -p /usr/include
> mtree -deU  -f /usr/src/etc/mtree/BSD.sendmail.dist -p /
> mtree: line 10: unknown user smmsp
> *** Error code 1
>
> Stop in /usr/src/etc.
> *** Error code 1
>
>  I configured postfix a while back to replace sendmail. However I do
> not see "smmsp" in either my /etc/group or /etc/passwd files. What
> have I done wrong here?

You have not run mergemaster -p. Please read /usr/src/UPDATING before
updating next time.



------------------------------

Message: 9
Date: Mon, 05 Jul 2004 12:07:10 -0600 (MDT)
From: "M. Warner Losh" <imp@bsdimp.com>
Subject: Re: [current tinderbox] failure on i386/pc98
To: tinderbox@freebsd.org
Cc: current@freebsd.org
Message-ID: <20040705.120710.115224774.imp@bsdimp.com>
Content-Type: Text/Plain; charset=us-ascii

In message: <20040705134901.0304C7303F@freebsd-current.sentex.ca>
            FreeBSD Tinderbox <tinderbox@freebsd.org> writes:
: /tinderbox/CURRENT/i386/pc98/src/sys/i4b/driver/i4b_ing.c:737: warning: un..

Argh!  It worked for me when I built here.  I've updated my "fix" to
make this compile.  However, it is a gross kludge as this is a victum
of the meta file changes wrt netgraph that weren't adequately tested
before the commit (LINT didn't even compile).

Warner

------------------------------

Message: 10
Date: Mon, 5 Jul 2004 22:11:06 +0400
From: Gleb Smirnoff <glebius@cell.sick.ru>
Subject: Re: ng_ksocket on CURRENT
To: Robert Watson <rwatson@freebsd.org>
Cc: Julian Elischer <julian@elischer.org>
Message-ID: <20040705181106.GA60338@cell.sick.ru>
Content-Type: text/plain; charset=koi8-r

  Julian, Robert,

it's good that you have already payed attention to my mail.

On my way home I have tested the following patch:

--- ng_ksocket.c        25 Jun 2004 19:22:03 -0000      1.46
+++ ng_ksocket.c        5 Jul 2004 17:46:24 -0000
@@ -914,7 +914,9 @@
 
        /* Send packet */
        priv->flags |= KSF_SENDING;
+       NET_LOCK_GIANT();
        error = (*so->so_proto->pr_usrreqs->pru_sosend)(so, sa, 0, m, 0, 0, td
);
+       NET_UNLOCK_GIANT();
        priv->flags &= ~KSF_SENDING;
 
        return (error);

Seems like it just works.

On Mon, Jul 05, 2004 at 12:23:36PM -0400, Robert Watson wrote:
R> > It looks like ksocket needs to ensure that it has giant before calling
R> > the network stack. 
R> 
R> In the debug.mpsafenet=0 scenario, Giant should be held for all of this. 
R> The bit of missing information below appears to be how we got onto a call
R> stack without Giant held -- and it looks like that information isn't in
R> the stack trace (?).  Normally this would suggest a callout -- I've found
R> a couple that may not be holding Giant properly, but neither looks like
R> it's a match for this trace.  Do you know of a way the stack trace below
R> can occur?  It looks like the Netgraph netisr holds Giant, and with
R> debug.mpsafenet=0, the inbound network path and system calls should as
R> well.

Robert,
yes, this thread is originating from a callout. Actually, it
is impossible to reproduce this as I described in previous letter. Sorry.

So you suggest to lock Giant in a callout handle? Or should we somewhat tweak

ng_ksocket?

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE

------------------------------

Message: 11
Date: Mon, 5 Jul 2004 13:14:16 -0500
From: Jon Drews <jon.drews@gmail.com>
Subject: Re: buildworld fails w/ 'unknown user smmsp'
To: freebsd-current@freebsd.org
Message-ID: <8cb27cbf0407051114399c8cf1@mail.gmail.com>
Content-Type: text/plain; charset=US-ASCII

Thanks Mike and Liam:

 Done, I will be more dilligent next time. 

On Mon, 5 Jul 2004 14:07:43 -0400 (EDT), Mike Jakubik <mikej@rogers.com> wrote
:
> You have not run mergemaster -p. Please read /usr/src/UPDATING before
> updating next time.

------------------------------

Message: 12
Date: Mon, 5 Jul 2004 14:19:30 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: ng_ksocket on CURRENT
To: Gleb Smirnoff <glebius@cell.sick.ru>
Cc: Julian Elischer <julian@elischer.org>
Message-ID:
	<Pine.NEB.3.96L.1040705141810.48668A-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Mon, 5 Jul 2004, Gleb Smirnoff wrote:

> yes, this thread is originating from a callout. Actually, it is
> impossible to reproduce this as I described in previous letter. Sorry. 
> 
> So you suggest to lock Giant in a callout handle? Or should we somewhat
> tweak ng_ksocket? 

Depends on the callout, but if it's a network-specific callout, I'd
suggest having callout_init() use the following logic to build the flags
field:

	debug_mpsafenet ? CALLOUT_MPSAFE : 0

I.e., if we're running without debug.mpsafenet turned on, then run the
callout with Giant.  If the callout does a lot of other stuff, I'd acquire
Giant conditionally (as your patch does) just around the network bits.
That said, I'd have Giant include all the netgraph bits, not just the
socket bits.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research


------------------------------

Message: 13
Date: Mon, 5 Jul 2004 20:19:06 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: malloc(M_WAITOK) of "Mbuf", forcing M_NOWAIT with the
	following	non-sleepable locks held
To: "Robert Watson" <rwatson@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <1d4801c462bc$8f030510$471b3dd4@digiware.nl>
Content-Type: text/plain;	charset="iso-8859-1"

From: "Robert Watson" <rwatson@freebsd.org>
> On Mon, 5 Jul 2004, Willem Jan Withagen wrote:
>
> > It's not a LOR, but almost looks like one....  it could also be
> > harmless, since it only delays the server (because it is logging to a
> > serial console???)
>
> Do you have a stack trace available for this?  I've cleaned up a few, but
> not all, of the known M_WAITOK with a mutex held cases, but there may well
> be more.  I know Bruce Simpson has also been working on at least one.

Other than what is included below, nothing further was on the console.
But it is relatively simple to reproduce.... compiling on an NFS mount does th
e
trick. So if you want me to do other things, let me know..
Currently running with INVARIANTS, WITNESS, WITNESS_SKIPSPIN, DIAGNOSTIC, DDB,

DDB_TRACE ......

--WjW

> > ----------------
> > malloc(M_WAITOK) of "Mbuf", forcing M_NOWAIT with the following
non-sleepable
> > locks held:
> > exclusive sleep mutex so_rcv r = 0 (0xffffff006174a6f8) locked @
/home2/src/sys/
> > kern/uipc_socket.c:917
> > Stack backtrace:
> > backtrace() at backtrace+0x17
> > witness_warn() at witness_warn+0x297
> > uma_zalloc_arg() at uma_zalloc_arg+0x59
> > m_copym() at m_copym+0x118
> > soreceive() at soreceive+0x9a4
> > nfs_receive() at nfs_receive+0x29f
> > nfs_reply() at nfs_reply+0x46
> > nfs_request() at nfs_request+0x374
> > nfs_writerpc() at nfs_writerpc+0x22b
> > nfs_doio() at nfs_doio+0x4a0
> > nfssvc_iod() at nfssvc_iod+0x1c4
> > fork_exit() at fork_exit+0xd1
> > fork_trampoline() at fork_trampoline+0xe
> > --- trap 0, rip = 0, rsp = 0xffffffffb4019d00, rbp = 0 ---


------------------------------

Message: 14
Date: Mon, 5 Jul 2004 11:26:37 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: SATA Support with 5.x Current
To: Forrest Aldrich <forrie@forrie.com>
Cc: freebsd-current@freebsd.org
Message-ID: <20040705112553.R14616@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Sun, 4 Jul 2004, Forrest Aldrich wrote:

> I downloaded a "current" ISO image to test out the latest code (reinstall).

>
> It's recognizing all the disks (good) -- however, I noticed this error
> in the bootup:
>
>     LSI check 1 failed
>
> Which was repeated two times.   I have no idea what this indicates... or
> if it's expected.

If it was in the area of the disk attachments, and you booted with -v,
those are usually printed during the ATA RAID metadata checks.  LSI would
be a new one, though.

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org

------------------------------

Message: 15
Date: Mon, 5 Jul 2004 11:32:35 -0700 (PDT)
From: Doug White <dwhite@gumbysoft.com>
Subject: Re: ASUS A7N8X-X motherboard
To: Andrew Konstantinov <abkonstantinov@earthlink.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040705112744.N14616@carver.gumbysoft.com>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Sun, 4 Jul 2004, Andrew Konstantinov wrote:

> As you can see, "nForce Memory Controller" is the major issue. If someone co
uld
> point me in the direction where I could find some docs or useful articles on

> that topic, I'd be very thankful.

Its normal and expected.  FreeBSD doesn't have specific drivers or vanity
attachments for those chips, so they get no driver.  They don't need
drivers. :)

> The other rather troublesome part is with the "nForce MCP-T? SMBus Controlle
r."
> I've included:
>
> device          smb                     # SMB
> device          smbus                   # SMBus
>
> in my kernel, but that didn't improve the situation even a bit. I guess
> generic drivers won't work in this case, but I haven't been able to find
> anything specific to NVIDIA. Any help will be greatly appreciated.

There are sets of chipset-specific power-management drivers, usually
ending in 'pm' (liket intpm and viapm).  Not sure if there is a nforcepm
that someone's written yet. Also nonfatal.

> And finally the last issue is with the "display." I have "GeForce MX
> 4000 Plus" graphics card which works perfecly with FreeBSD's base
> "nv(4)" driver, no problems whatsoever. So, I'm a little puzzled by this
> last issue. Perhaps installing ports/x11/nvidia-driver might help? I
> haven't tried it because from what I can tell after reading people's
> posts on the net, it's a very nasty behaved beast.

Also normal. Generally the display chips stay unattached so X or agp/dri
can come along later and grab them.

FreeBSD doesn't need to attach every single chip and function in the
system to work correctly.  We can add in 'vanity' attachments that make it
appear to attach to something, but it has no function other than to
appease paranoid people like you :)

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org

------------------------------

Message: 16
Date: Mon, 5 Jul 2004 22:44:11 +0400
From: Gleb Smirnoff <glebius@cell.sick.ru>
Subject: Re: today's CURRENT lockups
To: Bosko Milekic <bmilekic@FreeBSD.org>
Cc: "Michael L. Hostbaek" <mich@FreeBSD.org>
Message-ID: <20040705184411.GB60338@cell.sick.ru>
Content-Type: text/plain; charset=koi8-r

On Mon, Jul 05, 2004 at 03:04:18PM +0000, Bosko Milekic wrote:
B> 1. What was the date of your previous sources (the working ones)?

June 19

B> 2. What scheduler are you running with, have you tried the other
B>    one?

ULE. Will give a try with 4BSD tomorrow.

B> 3. Is DDB, INVARIANTS, and/or WITNESS compiled into your kernel?

DDB and INVARIANTS
I have also tried WITNESS, however I can't catch crashdump because
console driver is stuck in X and I can't switch to ddb.

B> 4. Any particular/interesting boot-time tunables or sysctl
B>    settings?

acpi disabled.

B> 5. Can you reproduce without Mozilla in X?

One time it hanged when Mozilla was not an active window, the active one
was xterm. Also running fvwm2, xmms and gkrellm. Can't reproduce it without
X.

B> 6. Do you have serial console, if so can you get anything once
B>    the seeming "lockup" occurs? (it may not be a lockup, you
B>    might just not be able to see anything because of X dying).

I will try tomorrow with serial console and remote gdb.

B> 7. Can you turn off ACPI and see if the problem goes away?

It is already off.

B> 8. Can you backout the preemption change (jhb a few days ago)
B>    and see if the problem goes away?

I'll try.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE

------------------------------

Message: 17
Date: Mon, 5 Jul 2004 22:46:38 +0400
From: Gleb Smirnoff <glebius@cell.sick.ru>
Subject: Re: ng_ksocket on CURRENT
To: Robert Watson <rwatson@freebsd.org>
Cc: Julian Elischer <julian@elischer.org>
Message-ID: <20040705184638.GC60338@cell.sick.ru>
Content-Type: text/plain; charset=koi8-r

On Mon, Jul 05, 2004 at 02:19:30PM -0400, Robert Watson wrote:
R> > yes, this thread is originating from a callout. Actually, it is
R> > impossible to reproduce this as I described in previous letter. Sorry. 
R> > 
R> > So you suggest to lock Giant in a callout handle? Or should we somewhat
R> > tweak ng_ksocket? 
R> 
R> Depends on the callout, but if it's a network-specific callout, I'd
R> suggest having callout_init() use the following logic to build the flags
R> field:
R> 
R> 	debug_mpsafenet ? CALLOUT_MPSAFE : 0
R> 
R> I.e., if we're running without debug.mpsafenet turned on, then run the
R> callout with Giant.  If the callout does a lot of other stuff, I'd acquire

R> Giant conditionally (as your patch does) just around the network bits.
R> That said, I'd have Giant include all the netgraph bits, not just the
R> socket bits.

Ok, I will surround with NET_LOCK_GIANT the place of code where data
is sent towards ng_ksocket. I don't want to hold Giant during all callout
(it may be long).

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE

------------------------------

Message: 18
Date: Mon, 5 Jul 2004 20:49:40 +0200
From: Thorsten Greiner <thorsten@tgreiner.net>
Subject: Native preemption is the culprit [was Re: today's CURRENT
	lockups]
To: Bosko Milekic <bmilekic@freebsd.org>
Cc: "Michael L. Hostbaek" <mich@freebsd.org>
Message-ID: <20040705184940.GA2651@tybalt.greiner.local>
Content-Type: text/plain; charset="us-ascii"

* Bosko Milekic <bmilekic@freebsd.org> [2004-07-05 17:16]:
> 2. What scheduler are you running with, have you tried the other
>    one?

4BSD. Did not try ULE.

> 3. Is DDB, INVARIANTS, and/or WITNESS compiled into your kernel?

Tried with DDB, INVARIANTS and WITNESS. Still froze solid.

> 6. Do you have serial console, if so can you get anything once
>    the seeming "lockup" occurs? (it may not be a lockup, you
>    might just not be able to see anything because of X dying).

No, unfortunately not. I am sure it is a hard freeze, because
usually I can iniate a clean shutdown by pressing the power-off
button (via ACPI).

> 7. Can you turn off ACPI and see if the problem goes away?

Since Gleb Smirnoff reported the problem with ACPI off and mine is
happening with ACPI on it seems unlikely that ACPI is the culprit.

> 8. Can you backout the preemption change (jhb a few days ago)
>    and see if the problem goes away?

I have manually backed out the changes introduced by the commit
referenced here:

    http://docs.FreeBSD.org/cgi/mid.cgi?200407021721.52787.jhb

Sofar I was unable to reproduce the freeze.

Maybe Gleb or someone else experiencing the problem can try this,
too?

Regards

        -Thorsten

-- 
It is easier to write an incorrect program than understand a correct
one.
 
This message is digitally signed. To verify its integrity, download a copy
of GnuPG for your operating system from http://www.gnupg.org .
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040705/
382c51f4/attachment-0001.bin

------------------------------

Message: 19
Date: Mon, 5 Jul 2004 11:56:15 -0700 (PDT)
From: Luke <luked@pobox.com>
Subject: Re: Yesterday's code panics: Don't call insmntque(foo, NULL)
To: Chris Shenton <chris@shenton.org>
Cc: current@freebsd.org
Message-ID: <Pine.NEB.4.60.0407051151030.18289@norge.freeshell.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed


On Mon, 5 Jul 2004, Chris Shenton wrote:
> I built a kernel from CVS yesterday, installed it and rebooted this
> morning.  It panicked with the message (manually copied):
>
>  ...
>  mounting root from ufs:/dev/amrd0s1a
>  panic: Don't call insmntque(foo, NULL)
>  Debugger("panic")
>  Stopped at Debugger+0x45: xchgl %ebx, in_Debugger.0
>
> This message appears in /usr/src/sys/kern/vfs_subr.c
>
> Any suggestions?
>
> Thanks.

Perhaps I don't have the right debugging options turned on, but I'm 
getting a page fault at that same spot (mounting root) with kernels built 
on source from about fifteen minutes ago.
Kernels built from source from June 26 work.

I've tried different kernel options trying to find something that doesn't 
crash, but no luck so far.

------------------------------

Message: 20
Date: Mon, 5 Jul 2004 12:08:52 -0700 (PDT)
From: Luke <luked@pobox.com>
Subject: Re: Yesterday's code panics: Don't call insmntque(foo, NULL)
Cc: current@freebsd.org
Message-ID: <Pine.NEB.4.60.0407051206110.7483@norge.freeshell.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

> On Mon, 5 Jul 2004, Chris Shenton wrote:
>> I built a kernel from CVS yesterday, installed it and rebooted this
>> morning.  It panicked with the message (manually copied):
>> 
>>  ...
>>  mounting root from ufs:/dev/amrd0s1a
>>  panic: Don't call insmntque(foo, NULL)
>>  Debugger("panic")
>>  Stopped at Debugger+0x45: xchgl %ebx, in_Debugger.0
>> 
>> This message appears in /usr/src/sys/kern/vfs_subr.c
>> 
>> Any suggestions?
>> 
>> Thanks.
>
> Perhaps I don't have the right debugging options turned on, but I'm getting 
a 
> page fault at that same spot (mounting root) with kernels built on source 
> from about fifteen minutes ago.
> Kernels built from source from June 26 work.
>
> I've tried different kernel options trying to find something that doesn't 
> crash, but no luck so far.

Sorry, I spoke too soon.  Disabling ACPI at the loader allows the system 
to mount root.

------------------------------

Message: 21
Date: Mon, 05 Jul 2004 21:25:53 +0200
From: Poul-Henning Kamp <phk@phk.freebsd.dk>
Subject: current syncer bug...
To: current@freebsd.org
Message-ID: <3633.1089055553@critter.freebsd.dk>


Waiting (max 60 seconds) for system process `vnlru' to stop...stopped
Waiting (max 60 seconds) for system process `bufdaemon' to stop...stopped
Waiting (max 60 seconds) for system process `syncer' to stop...0 0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

etc.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

------------------------------

Message: 22
Date: Mon, 5 Jul 2004 21:23:51 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Re: malloc(M_WAITOK) of "Mbuf", forcing M_NOWAIT with the
	following	non-sleepable locks held
To: "Robert Watson" <rwatson@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID: <1ddd01c462c5$9adde810$471b3dd4@digiware.nl>
Content-Type: text/plain;	charset="iso-8859-1"

From: "Robert Watson" <rwatson@FreeBSD.org>
To: "Willem Jan Withagen" <wjw@withagen.nl>
Sent: Monday, July 05, 2004 8:41 PM
Subject: Re: malloc(M_WAITOK) of "Mbuf", forcing M_NOWAIT with the following
non-sleepable locks held


>
> On Mon, 5 Jul 2004, Willem Jan Withagen wrote:
>
> > __FBSDID("$FreeBSD: src/sys/kern/uipc_socket.c,v 1.191 2004/06/27 03:22:15

> > rwatson Exp $");
>
> Could you try this patch:
>
> Index: uipc_socket.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/kern/uipc_socket.c,v
> retrieving revision 1.191
> diff -u -r1.191 uipc_socket.c
> --- uipc_socket.c 27 Jun 2004 03:22:15 -0000 1.191
> +++ uipc_socket.c 5 Jul 2004 18:38:12 -0000
> @@ -1148,8 +1148,11 @@
>   if (flags & MSG_PEEK)
>   moff += len;
>   else {
> - if (mp != NULL)
> + if (mp != NULL) {
> + SOCKBUF_UNLOCK(&so->so_rcv);
>   *mp = m_copym(m, 0, len, M_TRYWAIT);
> + SOCKBUF_LOCK(&so->so_rcv);
> + }
>   m->m_data += len;
>   m->m_len -= len;
>   so->so_rcv.sb_cc -= len;
> Index: uipc_socket.c
> ===================================================================

Not shure if we are any further, or that this in the code supped between 2 jul
i
and this morning....

panic: mi_switch: called by old code
cpuid = 1;
Stack backtrace:
backtrace() at backtrace+0x17
panic() at panic+0x1d2
mi_switch() at mi_switch+0xcf
maybe_preempt() at maybe_preempt+0xd0
sched_add() at sched_add+0x2dd
kseq_assign() at kseq_assign+0x45
sched_choose() at sched_choose+0x5b
choosethread() at choosethread+0x3d
sched_switch() at sched_switch+0x126
mi_switch() at mi_switch+0x23b
ast() at ast+0x35f
Xfast_syscall() at Xfast_syscall+0xdd
--- syscall (0), rip = 0x20069afdc, rsp = 0x7fffffffe8a8, rbp =
0x7fffffffe8e0 ---
Debugger("panic")
timeout stopping cpus
Stopped at      Debugger+0x4d:  xchgl   %ebx,0x27d091

Writing a 2Gb dump now.....

--WjW


------------------------------

Message: 23
Date: Mon, 5 Jul 2004 13:06:21 -0700 (PDT)
From: Don Lewis <truckman@FreeBSD.org>
Subject: Re: current syncer bug...
To: phk@phk.freebsd.dk
Cc: current@FreeBSD.org
Message-ID: <200407052006.i65K6Lrf001926@gw.catspoiler.org>
Content-Type: TEXT/plain; charset=us-ascii

On  5 Jul, Poul-Henning Kamp wrote:
> 
> Waiting (max 60 seconds) for system process `vnlru' to stop...stopped
> Waiting (max 60 seconds) for system process `bufdaemon' to stop...stopped
> Waiting (max 60 seconds) for system process `syncer' to stop...0 0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Interesting ...

Does it ever print "stopped", or does it hit the 60 second timeout?

Is this a reboot in single user mode when nothing has been written?  If
so, the condition for calling kthread_suspend_check() probably needs to
look for (last_work_seen == -1 && net_worklist_len == 0), and
net_worklist_len needs to be set before this point.

Otherwise, in the following code fragment in sched_sync():

                if (syncer_state != SYNCER_RUNNING && starttime != time_second
)
                        printf("%d ", net_worklist_len);

get rid of the (starttime != time_second) condition and add
last_work_seen to the printf().


------------------------------

Message: 24
Date: Mon, 5 Jul 2004 22:00:45 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Fw: malloc(M_WAITOK) of "Mbuf", forcing M_NOWAIT with the
	followingnon-sleepable locks held
To: "Robert Watson" <rwatson@FreeBSD.ORG>
Cc: freebsd-current@FreeBSD.ORG
Message-ID: <1e4101c462ca$c23251d0$471b3dd4@digiware.nl>
Content-Type: text/plain;	charset="iso-8859-1"

> From: "Willem Jan Withagen" <wjw@withagen.nl>
> > From: "Robert Watson" <rwatson@FreeBSD.org>
> > > On Mon, 5 Jul 2004, Willem Jan Withagen wrote:
> > >
> > > > __FBSDID("$FreeBSD: src/sys/kern/uipc_socket.c,v 1.191 2004/06/27
03:22:15
> > > > rwatson Exp $");
> > >
> > > Could you try this patch:
> > >
> > > Index: uipc_socket.c
> > > ===================================================================
> > > RCS file: /home/ncvs/src/sys/kern/uipc_socket.c,v
> > > retrieving revision 1.191
> > > diff -u -r1.191 uipc_socket.c
> > > --- uipc_socket.c 27 Jun 2004 03:22:15 -0000 1.191
> > > +++ uipc_socket.c 5 Jul 2004 18:38:12 -0000
> > > @@ -1148,8 +1148,11 @@
> > >   if (flags & MSG_PEEK)
> > >   moff += len;
> > >   else {
> > > - if (mp != NULL)
> > > + if (mp != NULL) {
> > > + SOCKBUF_UNLOCK(&so->so_rcv);
> > >   *mp = m_copym(m, 0, len, M_TRYWAIT);
> > > + SOCKBUF_LOCK(&so->so_rcv);
> > > + }
> > >   m->m_data += len;
> > >   m->m_len -= len;
> > >   so->so_rcv.sb_cc -= len;
> > > Index: uipc_socket.c
> > > ===================================================================
> >
> > Not shure if we are any further, or that this in the code supped between 2

> juli
> > and this morning....
> >
> > panic: mi_switch: called by old code
> > cpuid = 1;
> > Stack backtrace:
> >
> > Writing a 2Gb dump now.....
>
> The dump gives me:

 #26 0xffffffff8025b073 in panic (fmt=0xffffffffb4076940 "\205�A\200����\001")

     at /home2/src/sys/kern/kern_shutdown.c:543
#27 0xffffffff802619cb in mi_switch (flags=2, newtd=0xffffff007b566240)
     at /home2/src/sys/kern/kern_synch.c:306
#28 0xffffffff80260964 in maybe_preempt (td=0xffffff007b566240)
     at /home2/src/sys/kern/kern_switch.c:529
#29 0xffffffff8026cf41 in sched_add (td=0xffffff007b566240)
     at /home2/src/sys/kern/sched_ule.c:1633
#30 0xffffffff8026b591 in kseq_assign (kseq=0x0)
     at /home2/src/sys/kern/sched_ule.c:647
#31 0xffffffff8026cbcb in sched_choose ()
     at /home2/src/sys/kern/sched_ule.c:1516
#32 0xffffffff802602bd in choosethread ()
     at /home2/src/sys/kern/kern_switch.c:142
#33 0xffffffff8026c296 in sched_switch (td=0xffffff005abe96c0, newtd=0x0)
     at /home2/src/sys/kern/sched_ule.c:1168
#34 0xffffffff80261b37 in mi_switch (flags=-1274582128, newtd=0x0)
     at /home2/src/sys/kern/kern_synch.c:355
---Type <return> to continue, or q <return> to quit---
#35 0xffffffff8027c4ef in ast (framep=0xffffffffb4076c40)
     at /home2/src/sys/kern/subr_trap.c:245
#36 0xffffffff8039a84d in Xfast_syscall ()
     at /home2/src/sys/amd64/amd64/exception.S:259

So with guidance I can retreive needed data......

--WjW


------------------------------

Message: 25
Date: Mon, 05 Jul 2004 22:13:52 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: current syncer bug... 
To: Don Lewis <truckman@FreeBSD.org>
Cc: current@FreeBSD.org
Message-ID: <4418.1089058432@critter.freebsd.dk>

In message <200407052006.i65K6Lrf001926@gw.catspoiler.org>, Don Lewis writes:

>On  5 Jul, Poul-Henning Kamp wrote:
>> 
>> Waiting (max 60 seconds) for system process `vnlru' to stop...stopped
>> Waiting (max 60 seconds) for system process `bufdaemon' to stop...stopped
>> Waiting (max 60 seconds) for system process `syncer' to stop...0 0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
>
>Interesting ...
>
>Does it ever print "stopped", or does it hit the 60 second timeout?

Dunno, havn't waited that long.

This is a diskless system which boots single-user to run a test, there's
never a R/w mount done.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

------------------------------

Message: 26
Date: Mon, 5 Jul 2004 13:45:31 -0700 (PDT)
From: Don Lewis <truckman@FreeBSD.org>
Subject: Re: current syncer bug... 
To: phk@phk.freebsd.dk
Cc: current@FreeBSD.org
Message-ID: <200407052045.i65KjVfo002006@gw.catspoiler.org>
Content-Type: TEXT/plain; charset=us-ascii

On  5 Jul, Poul-Henning Kamp wrote:
> In message <200407052006.i65K6Lrf001926@gw.catspoiler.org>, Don Lewis writes
:
>>On  5 Jul, Poul-Henning Kamp wrote:
>>> 
>>> Waiting (max 60 seconds) for system process `vnlru' to stop...stopped
>>> Waiting (max 60 seconds) for system process `bufdaemon' to stop...stopped

>>> Waiting (max 60 seconds) for system process `syncer' to stop...0 0 0 0 0 0
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
>>
>>Interesting ...
>>
>>Does it ever print "stopped", or does it hit the 60 second timeout?
> 
> Dunno, havn't waited that long.
> 
> This is a diskless system which boots single-user to run a test, there's
> never a R/w mount done.

I can reproduce this here by booting into single-user mode and then
rebooting.  At least it does time out after 60 seconds and let the
shutdown continue.

The following patch works for me (and fixes another bug):

Index: sys/kern/vfs_subr.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/vfs_subr.c,v
retrieving revision 1.503
diff -u -r1.503 vfs_subr.c
--- sys/kern/vfs_subr.c	5 Jul 2004 01:07:33 -0000	1.503
+++ sys/kern/vfs_subr.c	5 Jul 2004 20:43:23 -0000
@@ -1531,7 +1531,7 @@
 	int syncer_final_iter;
 
 	mtx_lock(&Giant);
-	last_work_seen = -1;
+	last_work_seen = 0;
 	syncer_final_iter = 0;
 	syncer_state = SYNCER_RUNNING;
 	starttime = time_second;
@@ -1585,11 +1585,10 @@
 		 * Return to the SHUTTING_DOWN state if any
 		 * new work appears.
 		 */
-		if (net_worklist_len > 0) {
+		if (net_worklist_len > 0 || syncer_state == SYNCER_RUNNING)
 			last_work_seen = syncer_delayno;
-			if (syncer_state == SYNCER_FINAL_DELAY)
-				syncer_state = SYNCER_SHUTTING_DOWN;
-		}
+		if (net_worklist_len > 0 && syncer_state == SYNCER_FINAL_DELAY)
+			syncer_state = SYNCER_SHUTTING_DOWN;
 		while ((vp = LIST_FIRST(slp)) != NULL) {
 			if (VOP_ISLOCKED(vp, NULL) != 0 ||
 			    vn_start_write(vp, &mp, V_NOWAIT) != 0) {



------------------------------

Message: 27
Date: Mon, 05 Jul 2004 22:50:44 +0200
From: "Poul-Henning Kamp" <phk@phk.freebsd.dk>
Subject: Re: current syncer bug... 
To: Don Lewis <truckman@FreeBSD.org>
Cc: current@FreeBSD.org
Message-ID: <5047.1089060644@critter.freebsd.dk>


Works for me too.

In message <200407052045.i65KjVfo002006@gw.catspoiler.org>, Don Lewis writes:

>On  5 Jul, Poul-Henning Kamp wrote:
>> In message <200407052006.i65K6Lrf001926@gw.catspoiler.org>, Don Lewis write
s:
>>>On  5 Jul, Poul-Henning Kamp wrote:
>>>> 
>>>> Waiting (max 60 seconds) for system process `vnlru' to stop...stopped
>>>> Waiting (max 60 seconds) for system process `bufdaemon' to stop...stopped

>>>> Waiting (max 60 seconds) for system process `syncer' to stop...0 0 0 0 0 
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

>>>
>>>Interesting ...
>>>
>>>Does it ever print "stopped", or does it hit the 60 second timeout?
>> 
>> Dunno, havn't waited that long.
>> 
>> This is a diskless system which boots single-user to run a test, there's
>> never a R/w mount done.
>
>I can reproduce this here by booting into single-user mode and then
>rebooting.  At least it does time out after 60 seconds and let the
>shutdown continue.
>
>The following patch works for me (and fixes another bug):
>
>Index: sys/kern/vfs_subr.c
>===================================================================
>RCS file: /home/ncvs/src/sys/kern/vfs_subr.c,v
>retrieving revision 1.503
>diff -u -r1.503 vfs_subr.c
>--- sys/kern/vfs_subr.c	5 Jul 2004 01:07:33 -0000	1.503
>+++ sys/kern/vfs_subr.c	5 Jul 2004 20:43:23 -0000
>@@ -1531,7 +1531,7 @@
> 	int syncer_final_iter;
> 
> 	mtx_lock(&Giant);
>-	last_work_seen = -1;
>+	last_work_seen = 0;
> 	syncer_final_iter = 0;
> 	syncer_state = SYNCER_RUNNING;
> 	starttime = time_second;
>@@ -1585,11 +1585,10 @@
> 		 * Return to the SHUTTING_DOWN state if any
> 		 * new work appears.
> 		 */
>-		if (net_worklist_len > 0) {
>+		if (net_worklist_len > 0 || syncer_state == SYNCER_RUNNING)
> 			last_work_seen = syncer_delayno;
>-			if (syncer_state == SYNCER_FINAL_DELAY)
>-				syncer_state = SYNCER_SHUTTING_DOWN;
>-		}
>+		if (net_worklist_len > 0 && syncer_state == SYNCER_FINAL_DELAY)
>+			syncer_state = SYNCER_SHUTTING_DOWN;
> 		while ((vp = LIST_FIRST(slp)) != NULL) {
> 			if (VOP_ISLOCKED(vp, NULL) != 0 ||
> 			    vn_start_write(vp, &mp, V_NOWAIT) != 0) {
>

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

------------------------------

Message: 28
Date: 05 Jul 2004 14:26:33 -0700
From: eta <eta@lclark.edu>
Subject: panic: vm_page_t 0xc1c92660 phys_addr mismatch
	0000000000b6d000	000000002bb6d405
To: current@FreeBSD.org
Message-ID: <1089062793.30127.74.camel@lotr10.lclark.edu>
Content-Type: text/plain

Got a panic on the new little server I'm testing for use at our school.

panic: vm_page_t 0xc1c92660 phys_addr mismatch 0000000000b6d000
000000002bb6d405.

Attached is some gdb and dmesg output.  It's -current from 2004-06-25,
and I was in the middle of a gnome-upgrade.sh.  The kernel config is
generic minus WITNESS plus COMPAT_LINUX.

Anyone seen this?

(And as I get ready to send this, it died during my gnome-upgrade.sh
again).

---

dragon# gdb -k kernel.debug vmcore.0
GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-unknown-freebsd"...
panic: vm_page_t 0xc1c92660 phys_addr mismatch 0000000000b6d000
000000002bb6d405
panic messages:
---
panic: vm_page_t 0xc1c92660 phys_addr mismatch 0000000000b6d000
000000002bb6d405
cpuid = 0;
Debugger("panic")
 
syncing disks, buffers remaining... panic: _mtx_lock_sleep: recursed on
non-recursive mutex vm page queue mutex @
/usr/src/sys/kern/vfs_bio.c:3452
 
cpuid = 0;
Uptime: 9d23h37m40s
Dumping 1535 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304
320 336 352 368 384 400 416 432 448 464 480 496 512 528 544 560 576 592
608 624 640 656 672 688 704 720 736 752 768 784 800 816 832 848 864 880
896 912 928 944 960 976 992 1008 1024 1040 1056 1072 1088 1104 1120 1136
1152 1168 1184 1200 1216 1232 1248 1264 1280 1296 1312 1328 1344 1360
1376 1392 1408 1424 1440 1456 1472 1488 1504 1520
---
Reading symbols from /boot/kernel/acpi.ko...done.
Loaded symbols for /boot/kernel/acpi.ko
Reading symbols from
/usr/obj/usr/src/sys/SERVER/modules/usr/src/sys/modules/linux/linux.ko.debug..
.done.
Loaded symbols for
/usr/obj/usr/src/sys/SERVER/modules/usr/src/sys/modules/linux/linux.ko.debug
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:236
236             dumping++;
(kgdb) bt
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:236
#1  0xc05ecc74 in boot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:370
#2  0xc05ecf9f in panic () at /usr/src/sys/kern/kern_shutdown.c:548
#3  0xc05e5521 in _mtx_lock_sleep (m=0xc08a2e20, opts=0,
    file=0xc07d15d5 "/usr/src/sys/kern/vfs_bio.c", line=3452)
    at /usr/src/sys/kern/kern_mutex.c:483
#4  0xc05e525e in _mtx_lock_flags (m=0x0, opts=0, file=0xc07d15d5
"/usr/src/sys/kern/vfs_bio.c",
    line=3452) at /usr/src/sys/kern/kern_mutex.c:252
#5  0xc062c284 in vfs_clean_pages (bp=0xcf474fd0) at
/usr/src/sys/kern/vfs_bio.c:3452
#6  0xc06286f0 in bdwrite (bp=0xcf474fd0) at
/usr/src/sys/kern/vfs_bio.c:1066
#7  0xc06fca2d in ffs_update (vp=0xc318b71c, waitfor=0) at
/usr/src/sys/ufs/ffs/ffs_inode.c:127
#8  0xc070e7c7 in ffs_fsync (ap=0xe1f18754) at
/usr/src/sys/ufs/ffs/ffs_vnops.c:323
#9  0xc070dac6 in ffs_sync (mp=0xc2eb0400, waitfor=2, cred=0xc2b77200,
td=0xc0885cc0)
    at vnode_if.h:627
#10 0xc06397a3 in sync (td=0xc0885cc0, uap=0x0) at
/usr/src/sys/kern/vfs_syscalls.c:136
#11 0xc05ec883 in boot (howto=0) at
/usr/src/sys/kern/kern_shutdown.c:277
#12 0xc045dfee in db_fncall (dummy1=0, dummy2=0, dummy3=-1064682380,
    dummy4=0xe1f18870 "??\213??\210????t??\210??'?t?\220\a") at
/usr/src/sys/ddb/db_command.c:551
#13 0xc045ddfc in db_command (last_cmdp=0xc086ce30, cmd_table=0x0,
aux_cmd_tablep=0xc07ef514,
    aux_cmd_tablep_end=0xc07ef52c) at /usr/src/sys/ddb/db_command.c:348
#14 0xc045ded4 in db_command_loop () at
/usr/src/sys/ddb/db_command.c:475
#15 0xc0460659 in db_trap (type=3, code=0) at
/usr/src/sys/ddb/db_trap.c:73
#16 0xc0752725 in kdb_trap (type=3, code=0, regs=0xe1f1899c)
    at /usr/src/sys/i386/i386/db_interface.c:159
#17 0xc07654f4 in trap (frame=
      {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -1065444226, tf_esi
= 1, tf_ebp = -504264224,
tf_isp = -504264248, tf_ebx = 0, tf_edx = 0, tf_ecx = -1056882688,
tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1066063390, tf_cs = 8,
tf_eflags = 642, tf_esp = -504264180, tf_ss = -504264192}) at
/usr/src/sys/i386/i386/trap.c:579
#18 0xc0753cba in calltrap () at /usr/src/sys/i386/i386/exception.s:140
#19 0xc05ecf51 in panic (fmt=0xc07e9c7e "vm_page_t %p phys_addr mismatch
%016jx %016jx")
    at /usr/src/sys/kern/kern_shutdown.c:532
#20 0xc0762bc8 in pmap_remove_pages (pmap=0xc3298b40, sva=0,
eva=3217031168)
    at /usr/src/sys/i386/i386/pmap.c:2571
#21 0xc05d77bd in exec_new_vmspace (imgp=0xe1f18b94, sv=0xc0865560) at
vm_map.h:242
#22 0xc05cb373 in exec_elf32_imgact (imgp=0xe1f18b94) at
/usr/src/sys/kern/imgact_elf.c:708
#23 0xc05d6aa6 in kern_execve (td=0xc2cd5dc0, fname=---Can't read
userspace from dump, or kernel process---
 
) at /usr/src/sys/kern/kern_exec.c:382
#24 0xc05d6748 in execve (td=0xc2cd5dc0, uap=0x0) at
/usr/src/sys/kern/kern_exec.c:174
#25 0xc0765cb3 in syscall (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077970672, tf_esi
= 135751712, tf_ebp = -1077970744, tf_isp = -504263308, tf_ebx =
673260236, tf_edx = 135751712, tf_ecx = -1077940629, tf_eax = 59,
tf_trapno = 12, tf_err = 2, tf_eip = 672786747, tf_cs = 31, tf_eflags =
518, tf_esp = -1077970772, tf_ss = 47}) at
/usr/src/sys/i386/i386/trap.c:1004
#26 0xc0753d0f in Xint0x80_syscall () at
/usr/src/sys/i386/i386/exception.s:201
---Can't read userspace from dump, or kernel process---

(kgdb) frame 20
#20 0xc0762bc8 in pmap_remove_pages (pmap=0xc3298b40, sva=0,
eva=3217031168)
    at /usr/src/sys/i386/i386/pmap.c:2571
2571                    KASSERT(m->phys_addr == (tpte & PG_FRAME),

---

dragon# dmesg
Copyright (c) 1992-2004 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.
FreeBSD 5.2-CURRENT #0: Fri Jun 25 11:59:09 PDT 2004
    root@dragon.cs.lclark.edu:/usr/obj/usr/src/sys/SERVER
Preloaded elf kernel "/boot/kernel/kernel" at 0xc09d5000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc09d5244.
ACPI APIC Table: <ASUS   A7V8X-X >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(TM) XP 2700+ (1733.41-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x681  Stepping = 1
 
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM
OV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0400000<AMIE,DSP,3DNow!>
real memory  = 1610596352 (1535 MB)
avail memory = 1568677888 (1496 MB)
ioapic0: Changing APIC ID to 2
ioapic0 <Version 0.3> irqs 0-23 on motherboard
random: <entropy source, Software, Yarrow>
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <ASUS A7V8X-X> on motherboard
acpi0: [GIANT-LOCKED]
pcibios: BIOS version 2.10
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <32-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA Generic host to PCI bridge> mem 0xf8000000-0xfbffffff at
device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
pcib2: <PCI-PCI bridge> at device 11.0 on pci0
pci2: <PCI bus> on pcib2
mlx0: <Mylex version 4 RAID interface> mem 0xef000000-0xef001fff irq 19
at device 11.1 on pci0
mlx0: [GIANT-LOCKED]
mlx0: DAC960PTL1, 1 channel, firmware 4.08-0-37, 16MB RAM
mlxd0: <Mylex System Drive> on mlx0
mlxd0: 70007MB (143374336 sectors) RAID 1 (online)
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> mem
0xec000000-0xec00ffff,0xec800000-0xec81ffff irq 17 at device 14.0 on
pci0
em0: [GIANT-LOCKED]
em0: Ethernet address: 00:03:47:72:90:e3
em0:  Speed:N/A  Duplex:N/A
uhci0: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 21 at device
16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 21 at device
16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xd000-0xd01f irq 21 at device
16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci0: <serial bus, USB> at device 16.3 (no driver attached)
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8235 UDMA133 controller> port
0xb800-0xb80f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 17.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <multimedia, audio> at device 17.5 (no driver attached)
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xb400-0xb4ff mem
0xeb000000-0xeb0000ff irq 23 at device 18.0 on pci0
miibus0: <MII bus> on vr0
rlphy0: <RTL8201L 10/100 media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:0c:6e:2d:a9:ed
vr0: [GIANT-LOCKED]
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port
0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0 port 0x778-0x77b,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
orm0: <Option ROMs> at iomem 0xd0000-0xd27ff,0xc0000-0xcefff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
Timecounter "TSC" frequency 1733408164 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 19623MB <IC35L020AVER07-0> [39870/16/63] at ata0-master UDMA100
Mounting root from ufs:/dev/mlxd0s1a
WARNING: / was not properly dismounted
WARNING: /usr was not properly dismounted
/usr: mount pending error: blocks 164 files 22
/usr: superblock summary recomputed
em0: Link is up 100 Mbps Full Duplex




------------------------------

Message: 29
Date: Mon, 5 Jul 2004 17:32:55 -0400 
From: Alex Hoff <ahoff@sandvine.com>
Subject: FreeBSD 5.2.1 hangs on boot with acpi disabled
To: "'freebsd-current@freebsd.org'" <freebsd-current@freebsd.org>
Message-ID:
	<FE045D4D9F7AED4CBFF1B3B813C8533703FFC33E@mail.sandvine.com>
Content-Type: text/plain;	charset="iso-8859-1"

A fellow colleague posted a message on the same topic (see
http://lists.freebsd.org/pipermail/freebsd-current/2004-March/023045.html),
and I have spent some time investigating the same problem. In response to
the original post, yes the machine boots fine with acpi enabled. 

I have traced the hang to one particular function : isa_probe_children. In
this function it attempts a bus probe, then attempts to retrieve a pointer
array to all the device's children. The children's device names (when
booting with no acpi) are shown below: 
Note the names are retrieved using this function device_get_nameunit(child)

isa_probe_children = 0 orm0
isa_probe_children = 1 pmtimer0
isa_probe_children = 2 adv0
....
isa_probe_children = 24 vt0
and 
isa_probe_children = 25 (null)
..
isa_probe_children = 42 (null)
When acpi IS enabled, 25-42 disappear.

The function continues through the first 2 for loops and goes to the for
loop under this line printf("isa_probe_children: probing PnP devices\n");
Now devices 0-25 satisfy the following condition
if (!TAILQ_FIRST(&idev->id_configs))
			continue;
and the rest of the devices try have resources assigned to them. This is
where the problem occurs, in that the pointers and requested resources by
the children are all incorrect (ie negative memory requests). Thus the
allocate memory function loops forever. A quick "hackish" work around was to
skip over the devices that requested to have resources assigned to them. 

Now my question is, how and where do these devices (specifically on isa0)
get their children populated from? I cant seem to find that section of code.
Moving forward, I would imagine there is a bug in that code which is
incorrectly populating the isa0 device struct, and thus causing the hang. 
The machine itself is a SuperMicro X5DP8 with dual Xeon 2800s with a total
of 4GB of memory. We have some other supermicro motherboards (such as
X5DPR-8G2) which do not have the same problem.

Thanks


------------------------------

Message: 30
Date: Mon, 05 Jul 2004 23:42:19 +0200
From: "Konstantin 'Kosta' Welke" <damaker@fillibach.de>
Subject: moving /usr to another partition
To: freebsd-current@freebsd.org
Message-ID: <opsaoo8tqydvpa9u@auth.smtp.kundenserver.de>
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1

Hi!

Diskspace is running low, so I'd like to move my /usr to another
disk. I was told that cp -Rv is not a good idea and i should use
dump instead. The problem is: That disk is big and half-full and
I don't want to empty it. Is it possible  to let restore work to
a directory instead of a disk? Im not sure after reading the man
page, google doesnt know either and I dont want to find out "the
hard way". So i guessed it couldn't hurt to ask...

If you have any hints or alternatives, please let me know!

cya,
Kosta

------------------------------

Message: 31
Date: Mon, 5 Jul 2004 14:50:56 -0700 (PDT)
From: Don Lewis <truckman@FreeBSD.org>
Subject: Re: moving /usr to another partition
To: damaker@fillibach.de
Cc: freebsd-current@FreeBSD.org
Message-ID: <200407052151.i65LouOV002134@gw.catspoiler.org>
Content-Type: TEXT/plain; charset=us-ascii

On  5 Jul, Konstantin 'Kosta' Welke wrote:
> Hi!
> 
> Diskspace is running low, so I'd like to move my /usr to another
> disk. I was told that cp -Rv is not a good idea and i should use
> dump instead. The problem is: That disk is big and half-full and
> I don't want to empty it. Is it possible  to let restore work to
> a directory instead of a disk? Im not sure after reading the man
> page, google doesnt know either and I dont want to find out "the
> hard way". So i guessed it couldn't hurt to ask...
> 
> If you have any hints or alternatives, please let me know!

I'm pretty sure that "restore -r" will do the right thing and just
unpack the dump archive into the current working directory.  I'm pretty
sure that I've done this in the past.

I don't understand the warnings in the man page:

     -r      Restore (rebuild a file system).  The target file system should
             be made pristine with newfs(8), mounted and the user cd'd into
             the pristine file system before starting the restoration of the
             initial level 0 backup.
             [snip]
             The -r flag precludes an interac-
             tive file extraction and can be detrimental to one's health if
             not used carefully (not to mention the disk)

Restoring into a directory that already contains stuff is likely to be
harmful to the contents, but I think restoring into an empty directory
should be fine.

Anyone else care to comment?


------------------------------

Message: 32
Date: Mon, 05 Jul 2004 17:53:44 -0400
From: Sven Willenberger <sven@dmv.com>
Subject: Re: moving /usr to another partition
To: "Konstantin 'Kosta' Welke" <damaker@fillibach.de>
Cc: freebsd-current@freebsd.org
Message-ID: <40E9CDE8.4050803@dmv.com>
Content-Type: text/plain; charset=us-ascii; format=flowed



Konstantin 'Kosta' Welke wrote:
> Hi!
> 
> Diskspace is running low, so I'd like to move my /usr to another
> disk. I was told that cp -Rv is not a good idea and i should use
> dump instead. The problem is: That disk is big and half-full and
> I don't want to empty it. Is it possible  to let restore work to
> a directory instead of a disk? Im not sure after reading the man
> page, google doesnt know either and I dont want to find out "the
> hard way". So i guessed it couldn't hurt to ask...
> 
> If you have any hints or alternatives, please let me know!
> 
I have done the following in the past:

mount [new device] /usr2
cd /usr
find . -print | cpio -pdumv /usr2
(perhaps do an fsck at this point)
modify /etc/fstab to point to new /usr partition and reboot

Sven

------------------------------

Message: 33
Date: Mon, 5 Jul 2004 14:53:08 -0700
From: "Scott E. Campbell" <scampbel@gvpl.ca>
Subject: Re: moving /usr to another partition
To: "Konstantin 'Kosta' Welke" <damaker@fillibach.de>
Cc: freebsd-current@freebsd.org
Message-ID: <200407051453.08935.scampbel@gvpl.ca>
Content-Type: text/plain;  charset="iso-8859-1"

On July 5, 2004 02:42 pm, you wrote:
> Hi!
>
> Diskspace is running low, so I'd like to move my /usr to another
> disk. I was told that cp -Rv is not a good idea and i should use
> dump instead. The problem is: That disk is big and half-full and
> I don't want to empty it. Is it possible  to let restore work to
> a directory instead of a disk? Im not sure after reading the man
> page, google doesnt know either and I dont want to find out "the
> hard way". So i guessed it couldn't hurt to ask...
>
> If you have any hints or alternatives, please let me know!
>

I use "dump 0aLf - /usr | restore xf -"  which will dump the usr slice into 
wherever you are at the moment.  If you are not using "current" then don't 
use the "L" option since last I saw 4.x didn't have the option of the 
snapshot of a live file system.

Others will let you know if there is a better way

Scott

> cya,
> Kosta
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

-- 
Scott E. Campbell
Systems Administrator
Greater Victoria Public Library
Victoria, BC

------------------------------

Message: 34
Date: Mon, 05 Jul 2004 16:59:34 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Subject: Re: just like midi/seq was treated? (was Re: HEADSUP: ibcs2
	and	svr4 compat headed for history)
To: Mathew Kanner <mat@cnd.mcgill.ca>
Cc: Taku YAMAMOTO <taku@tackymt.homeip.net>
Message-ID: <XFMail.20040705165934.conrads@cox.net>
Content-Type: text/plain; charset=us-ascii


On 02-Jul-2004 Mathew Kanner wrote:
> On Jun 30, Conrad J. Sabatier wrote:
>> 
>> What about serial MIDI?  Wasn't that supposedly included in the
>> system at one time?  Did it ever work for anyone?  I'm especially
>> anxious to know if this will be included or not, as I don't have a
>> MIDI interface on this new AMD64 machine, but could use the serial
>> port if that's an option.
> 
>       Seigo is very interested in serial-midi.  It supposedly worked
> in them midi2 but I remeber reading that in general it's hard to do
> serial midi because of different timing (baud?) rates.

Hmmm, I don't know about anything having to do with baud rate problems.
All I know is my own experience using serial MIDI under Windows a while
back.  When I first got this keyboard (Yamaha SO3), I didn't have a
MIDI cable for it, so I used the serial driver that came with it. 
Worked great.

I do hope we can get the same functionality under FreeBSD.  If not, I
can always yank the soundcard out of my old machine (which does have a
MIDI uart), provided, of course, that we can get *that* to work
properly.  :-)

I do appreciate the work you're doing a *lot*.  Thanks!

-- 
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"

------------------------------

Message: 35
Date: Mon, 5 Jul 2004 15:37:51 -0700 (PDT)
From: Julian Elischer <julian@elischer.org>
Subject: Re: moving /usr to another partition
To: Don Lewis <truckman@FreeBSD.org>
Cc: freebsd-current@FreeBSD.org
Message-ID:
	<Pine.BSF.4.21.0407051534240.66234-100000@InterJet.elischer.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII



On Mon, 5 Jul 2004, Don Lewis wrote:

> On  5 Jul, Konstantin 'Kosta' Welke wrote:
> > Hi!
> > 
> > Diskspace is running low, so I'd like to move my /usr to another
> > disk. I was told that cp -Rv is not a good idea and i should use
> > dump instead. The problem is: That disk is big and half-full and
> > I don't want to empty it. Is it possible  to let restore work to
> > a directory instead of a disk? Im not sure after reading the man
> > page, google doesnt know either and I dont want to find out "the
> > hard way". So i guessed it couldn't hurt to ask...
> > 
> > If you have any hints or alternatives, please let me know!
> 
> I'm pretty sure that "restore -r" will do the right thing and just
> unpack the dump archive into the current working directory.  I'm pretty
> sure that I've done this in the past.
> 
> I don't understand the warnings in the man page:
> 
>      -r      Restore (rebuild a file system).  The target file system should

>              be made pristine with newfs(8), mounted and the user cd'd into

>              the pristine file system before starting the restoration of the

>              initial level 0 backup.
>              [snip]
>              The -r flag precludes an interac-
>              tive file extraction and can be detrimental to one's health if

>              not used carefully (not to mention the disk)
> 
> Restoring into a directory that already contains stuff is likely to be
> harmful to the contents, but I think restoring into an empty directory
> should be fine.
> 
> Anyone else care to comment?

I've done this a lot..

boot single user..
mount /usr
mount -u /
mount /var
mount /newuser
cd /usr
find . -xdev -depth|cpio -pdmuv /newusr

edit /etc/fstab to swap newusr and usr
sync
reboot

> 
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
> 


------------------------------

Message: 36
Date: Mon, 5 Jul 2004 15:38:42 -0700 (PDT)
From: Julian Elischer <julian@elischer.org>
Subject: Re: moving /usr to another partition
To: Sven Willenberger <sven@dmv.com>
Cc: freebsd-current@freebsd.org
Message-ID:
	<Pine.BSF.4.21.0407051538190.66234-100000@InterJet.elischer.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII



On Mon, 5 Jul 2004, Sven Willenberger wrote:

> 
> 
> Konstantin 'Kosta' Welke wrote:
> > Hi!
> > 
> > Diskspace is running low, so I'd like to move my /usr to another
> > disk. I was told that cp -Rv is not a good idea and i should use
> > dump instead. The problem is: That disk is big and half-full and
> > I don't want to empty it. Is it possible  to let restore work to
> > a directory instead of a disk? Im not sure after reading the man
> > page, google doesnt know either and I dont want to find out "the
> > hard way". So i guessed it couldn't hurt to ask...
> > 
> > If you have any hints or alternatives, please let me know!
> > 
> I have done the following in the past:
> 
> mount [new device] /usr2
> cd /usr
> find . -print | cpio -pdumv /usr2

use -depth to ge tcorrect timestamps on directories..

> (perhaps do an fsck at this point)
> modify /etc/fstab to point to new /usr partition and reboot
> 
> Sven
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
> 


------------------------------

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

End of freebsd-current Digest, Vol 68, Issue 3
**********************************************


--
Evariste Galois:
    �����呛��樱������蔷������,����直前......


�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234]