From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 01:28:23 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46CF537B401 for ; Sun, 6 Jul 2003 01:28:23 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C965644013 for ; Sun, 6 Jul 2003 01:28:22 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id B908672FE3; Sun, 6 Jul 2003 01:28:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id B5F9F72FDC; Sun, 6 Jul 2003 01:28:22 -0700 (PDT) Date: Sun, 6 Jul 2003 01:28:22 -0700 (PDT) From: Doug White To: Lefteris Tsintjelis In-Reply-To: <3F06046E.D15B8F55@ene.asda.gr> Message-ID: <20030706012504.S79211@carver.gumbysoft.com> References: <20030703202912.98149A960@ene.asda.gr> <20030703154953.M60013@carver.gumbysoft.com> <20030704152620.L68494@carver.gumbysoft.com> <3F06046E.D15B8F55@ene.asda.gr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@FreeBSD.org Subject: Re: SCSI backup error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2003 08:28:23 -0000 On Sat, 5 Jul 2003, Lefteris Tsintjelis wrote: > Termination and termination power is OK in both buses. I strongly > believe that it could be the firmware. It is an old and unmaintaned > board with a build in SCSI bus so no chance for a firmware upgrade, > checked that one already. I will probably switch it to another SCSI bus > and see if that helps but in case of a firmware bug, that I strongly > believe this is the case here, is there a workaround? The driver could quirk around it, but you'd best contact gibbs@freebsd.org for instructions on how to proceed. But please verify your interconnect is 100% solid -- 99.99% of SCSI problems are due to interconnect issues, and justin doesn't have a lot of time to chase those down :) > I recall that Adaptec had a firmware bug in all controllers with earlier > versions than 3.00. That's be news to me. I've used hundreds of adaptec boards with 2.5X firmware with no issues, at least the ahc-core stuff. ahd (Ultra320) is a whole nother ballgame. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 01:32:04 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A4A637B401 for ; Sun, 6 Jul 2003 01:32:04 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97BED43FCB for ; Sun, 6 Jul 2003 01:32:03 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 8891E72FE3; Sun, 6 Jul 2003 01:32:03 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 8580772FDC; Sun, 6 Jul 2003 01:32:03 -0700 (PDT) Date: Sun, 6 Jul 2003 01:32:03 -0700 (PDT) From: Doug White To: Joe Marcus Clarke In-Reply-To: <1057359795.1231.9.camel@shumai.marcuscom.com> Message-ID: <20030706012837.D79211@carver.gumbysoft.com> References: <1057294495.3696.28.camel@shumai.marcuscom.com> <1057359795.1231.9.camel@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: stable@freebsd.org Subject: Re: Latest -STABLE detects my DLT drive as a CD-ROM X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2003 08:32:04 -0000 On Fri, 4 Jul 2003, Joe Marcus Clarke wrote: > On Fri, 2003-07-04 at 18:30, Doug White wrote: > > On Thu, 4 Jul 2003, Joe Marcus Clarke wrote: > > > > > sa0: Removable Sequential Access SCSI-2 device > > ^^^^ > > > > Why are the firmware versions different? > > I noticed that, too. But nothing has changed. I simply rebooted after > the upgrade. Hm. we'd need to get some diagnostic info out of the drivers there to see the MODE SENSE info. Something is offsetting differently into the data and picking up the wrong bits, which maybe why the firmware rev is moving around too. You might roll back the scsi controller driver .. are you on ahc? -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 08:45:12 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F7DE37B401 for ; Sun, 6 Jul 2003 08:45:12 -0700 (PDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 299AC43FEA for ; Sun, 6 Jul 2003 08:45:11 -0700 (PDT) (envelope-from freebsd-stable-local@be-well.no-ip.com) Received: from be-well.ilk.org (be-well.no-ip.com[24.147.188.198]) by comcast.net (sccrmhc13) with ESMTP id <20030706154510016000s0kve>; Sun, 6 Jul 2003 15:45:10 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.9/8.12.9) with ESMTP id h66Fj9pS025539 for ; Sun, 6 Jul 2003 11:45:09 -0400 (EDT) (envelope-from freebsd-stable-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h66Fj8DK025536; Sun, 6 Jul 2003 11:45:09 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-stable-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: stable@freebsd.org References: <200307051728.24681.me@farid-hajji.de> <44brw8g26e.fsf@be-well.ilk.org> <200307060029.00866.me@farid-hajji.de> From: Lowell Gilbert Date: 06 Jul 2003 11:45:08 -0400 In-Reply-To: <200307060029.00866.me@farid-hajji.de> Message-ID: <44wuevveuz.fsf@be-well.ilk.org> Lines: 31 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Weird vmstat -s stats X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2003 15:45:12 -0000 Farid Hajji writes: > > > "vmstat -s" shows on one of my boxes (uptime: 26 days): > > > > > > -1597015721 total name lookups > > > cache hits (101% pos + 0% neg) system 0% per-directory > > > deletions 0%, falsehits 0%, toolong 0% > > > > > > Weird. I'll have to cvsup again and hope this has been fixed :) > > > > I'm not seeing it on an up-to-date -STABLE. Of course, that doesn't > > mean much, because it looks like a counter wraparound. > > Of course it's a wraparound. The total count is a wraparound, but the positive cache hit count still looks funny. > I was not able to reproduce this > condition on newer -STABLE. It takes some weeks of uptime > and heavy use to reach this stage, unless you happen to know > how to increment the counter with a test program (I don't > know how). You'd have to put in an extra kernel interface for that; the ability to zero the structure would be (slightly) more useful. > Shouldn't such counters be at least 64 bit wide? They are, on most platforms. You can't do that on an i386, though. At least, not without opening up worse problems. From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 14:35:48 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CE2237B401 for ; Sun, 6 Jul 2003 14:35:48 -0700 (PDT) Received: from alcanet.com.au (mail3.alcanet.com.au [208.178.117.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCCD543F75 for ; Sun, 6 Jul 2003 14:35:46 -0700 (PDT) (envelope-from peter.jeremy@alcatel.com.au) Received: from sydsmtp01.alcatel.com.au (IDENT:root@localhost.localdomain [127.0.0.1])h66LZhHI005406; Mon, 7 Jul 2003 07:35:44 +1000 Received: from gsmx07.alcatel.com.au ([139.188.20.247]) by sydsmtp01.alcatel.com.au (Lotus Domino Release 5.0.12) with ESMTP id 2003070707330656:174015 ; Mon, 7 Jul 2003 07:33:06 +1000 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) by gsmx07.alcatel.com.au (8.12.9/8.12.9) with ESMTP id h66LZgIf001179; Mon, 7 Jul 2003 07:35:42 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.9/8.12.9/Submit) id h66LZeFE001178; Mon, 7 Jul 2003 07:35:40 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Date: Mon, 7 Jul 2003 07:35:40 +1000 From: Peter Jeremy To: Chuck Swiger Message-ID: <20030706213540.GU430@gsmx07.alcatel.com.au> Mail-Followup-To: Chuck Swiger , freebsd-stable@freebsd.org References: <200307051728.24681.me@farid-hajji.de> <44brw8g26e.fsf@be-well.ilk.org> <200307060029.00866.me@farid-hajji.de> <3F07576F.4030105@mac.com> Mime-Version: 1.0 In-Reply-To: <3F07576F.4030105@mac.com> User-Agent: Mutt/1.4.1i X-MIMETrack: Itemize by SMTP Server on SYDSMTP01/AlcatelAustralia(Release 5.0.12 |February 13, 2003) at 07/07/2003 07:33:06 AM,|February 13, 2003) at 07/07/2003 07:33:07 AM, Serialize complete at 07/07/2003 07:33:07 AM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline cc: freebsd-stable@freebsd.org Subject: Re: Weird vmstat -s stats X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2003 21:35:48 -0000 On 2003-Jul-05 18:55:43 -0400, Chuck Swiger wrote: >Farid Hajji wrote: >[ ... ] >>Shouldn't such counters be at least 64 bit wide? > >You betcha. :-) The problem is that a 32-bit CPU, like the Intel x86 >family, can't increment a 64-bit counter atomicly. This isn't absolutely true. You _can_ perform atomic 64-bit operations on an x86 (for x>=5), they are just extremely expensive. There are regular threads on this sort of problem and I don't believe anyone has come up with a solution that did not involve overheads that were considered unacceptable in the general case. Peter From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 14:44:48 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 658F137B401 for ; Sun, 6 Jul 2003 14:44:48 -0700 (PDT) Received: from mail.ncipher.com (mail.ncipher.com [62.190.84.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E9DA43FE3 for ; Sun, 6 Jul 2003 14:44:45 -0700 (PDT) (envelope-from markk@knigma.org) Received: from cromer.ncipher.com ([172.23.135.200]) by mail.ncipher.com with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 3.34 #1) id 19ZHJL-0001e7-00 for freebsd-stable@freebsd.org; Sun, 06 Jul 2003 22:44:43 +0100 Received: from lap.knigma.org (mourn.ncipher.com [172.19.133.171]) by cromer.ncipher.com (8.12.9/8.12.9) with ESMTP id h66LicUk022287 for ; Sun, 6 Jul 2003 22:44:43 +0100 (BST) (envelope-from markk@knigma.org) Message-ID: Date: Sun, 6 Jul 2003 22:44:35 +0100 To: freebsd-stable@freebsd.org From: Mark Knight References: <9paKSGHVcW++EwV8@lap.knigma.org> <+MharcpC5IA$Ewil@lap.knigma.org> <20030630211657.GA2899@HAL9000.homeunix.com> <20030705152801D.tegge@cvsup.no.freebsd.org> In-Reply-To: <20030705152801D.tegge@cvsup.no.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain;charset=us-ascii;format=flowed User-Agent: Turnpike/6.02-U () Subject: Re: Kernel core dump in recent 4.8-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jul 2003 21:44:48 -0000 In message <20030705152801D.tegge@cvsup.no.freebsd.org>, Tor.Egge@cvsup.no.freebsd.org writes >That commit broke kernel modules depending on the layout of struct >proc. Since recompiling the kernel module isn't an option for third >party binary modules, the new p_fdtol variable should be moved to the >end of struct proc. Problem solved, thank you :) It would have been mga.ko (from the drm-kmod port), that was triggering this problem for me. Cheers, -- Mark A. R. Knight finger: markk@knigma.org Tel: +44 7880 556751 http://www.knigma.org/ From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 17:09:12 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FE1937B401 for ; Sun, 6 Jul 2003 17:09:12 -0700 (PDT) Received: from HAL9000.homeunix.com (ip114.bella-vista.sfo.interquest.net [66.199.86.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83F5C43FA3 for ; Sun, 6 Jul 2003 17:09:11 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.9/8.12.9) with ESMTP id h67097K5026856; Sun, 6 Jul 2003 17:09:07 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.9/8.12.9/Submit) id h67096wq026855; Sun, 6 Jul 2003 17:09:06 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Sun, 6 Jul 2003 17:09:06 -0700 From: David Schultz To: Andrey Sverdlichenko Message-ID: <20030707000906.GA26820@HAL9000.homeunix.com> Mail-Followup-To: Andrey Sverdlichenko , freebsd-stable@freebsd.org References: <2098E9F95A6DFA4D8FE8B6BE30B62E087C187A@nt_server.infosec.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2098E9F95A6DFA4D8FE8B6BE30B62E087C187A@nt_server.infosec.ru> cc: freebsd-stable@FreeBSD.ORG Subject: Re: msdosfs bug? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 00:09:12 -0000 On Wed, Jul 02, 2003, Andrey Sverdlichenko wrote: > Hello. > > After running this program with msdosfs mounted in /mnt, I got a > file with some garbage in skipped space. Is it a bug in my local > installation/hardware or real kernel bug? [...] > pos = lseek(handle, 1024 * 16 - 100, SEEK_SET); Yep, it's a known problem; there's a PR filed for it. I'll see if I can get a chance to fix it in coming weeks. From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 17:41:59 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81DED37B405 for ; Sun, 6 Jul 2003 17:41:59 -0700 (PDT) Received: from ene.asda.gr (ene.asda.gr [193.92.118.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA18043FDF for ; Sun, 6 Jul 2003 17:41:57 -0700 (PDT) (envelope-from lefty@ene.asda.gr) Received: from ene.asda.gr (lefty.ene.asda.gr [193.92.118.162]) by ene.asda.gr (Postfix) with ESMTP id 23B60BE; Mon, 7 Jul 2003 03:41:54 +0300 (EEST) Message-ID: <3F08C1D0.99BB6310@ene.asda.gr> Date: Mon, 07 Jul 2003 03:41:52 +0300 From: Lefteris Tsintjelis Organization: ASDA X-Mailer: Mozilla 4.8 [en] (Windows NT 5.0; U) X-Accept-Language: en,el MIME-Version: 1.0 To: Doug White References: <20030703202912.98149A960@ene.asda.gr> <20030703154953.M60013@carver.gumbysoft.com> <20030704152620.L68494@carver.gumbysoft.com> <20030706012504.S79211@carver.gumbysoft.com> Content-Type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: 7bit cc: freebsd-stable@FreeBSD.org Subject: Re: SCSI backup error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 00:41:59 -0000 Doug White wrote: > > The driver could quirk around it, but you'd best contact gibbs@freebsd.org > for instructions on how to proceed. But please verify your interconnect is > 100% solid -- 99.99% of SCSI problems are due to interconnect issues, and > justin doesn't have a lot of time to chase those down :) Will contact him ASAP, thanks. I did some tests and changed controllers, cables, rechecked all SCSI devices and still no go. All indications seem to show a driver timing relevant problem and definitely not an interconnect issue. > That's be news to me. I've used hundreds of adaptec boards with 2.5X > firmware with no issues, at least the ahc-core stuff. ahd (Ultra320) is a > whole nother ballgame. If you ever upgraded a 2.XX firmware to a 3.XX it tells you right there that it corrects some type of bug and even asks for a machine reset on the next boot. Can't recall the exact message though but it seems irrelevant to this problem anyway. > -- > Doug White | FreeBSD: The Power to Serve > dwhite@gumbysoft.com | www.FreeBSD.org From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 17:49:56 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47DCA37B401 for ; Sun, 6 Jul 2003 17:49:56 -0700 (PDT) Received: from HAL9000.homeunix.com (ip114.bella-vista.sfo.interquest.net [66.199.86.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E64843FB1 for ; Sun, 6 Jul 2003 17:49:55 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.9/8.12.9) with ESMTP id h670nqK5027041; Sun, 6 Jul 2003 17:49:52 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.9/8.12.9/Submit) id h670npQU027040; Sun, 6 Jul 2003 17:49:51 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Sun, 6 Jul 2003 17:49:51 -0700 From: David Schultz To: Chuck Swiger , freebsd-stable@FreeBSD.ORG Message-ID: <20030707004951.GB26820@HAL9000.homeunix.com> Mail-Followup-To: Chuck Swiger , freebsd-stable@freebsd.org References: <200307051728.24681.me@farid-hajji.de> <44brw8g26e.fsf@be-well.ilk.org> <200307060029.00866.me@farid-hajji.de> <3F07576F.4030105@mac.com> <20030706213540.GU430@gsmx07.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030706213540.GU430@gsmx07.alcatel.com.au> Subject: Re: Weird vmstat -s stats X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 00:49:56 -0000 On Mon, Jul 07, 2003, Peter Jeremy wrote: > On 2003-Jul-05 18:55:43 -0400, Chuck Swiger wrote: > >Farid Hajji wrote: > >[ ... ] > >>Shouldn't such counters be at least 64 bit wide? > > > >You betcha. :-) The problem is that a 32-bit CPU, like the Intel x86 > >family, can't increment a 64-bit counter atomicly. > > This isn't absolutely true. You _can_ perform atomic 64-bit > operations on an x86 (for x>=5), they are just extremely expensive. > > There are regular threads on this sort of problem and I don't believe > anyone has come up with a solution that did not involve overheads that > were considered unacceptable in the general case. The overhead of a 64-bit atomic increment isn't so bad on x86. It takes just a few instructions to do the arithmetic (since namei only needs to do increments), plus a cmpxchg8b. But at the moment, we actually use non-atomic increments, which appears to be a bug. We should probably just eat the overhead of 64-bit atomically-incremented counters; the cache_lookup() path isn't so critical that we need every cycle. From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 19:42:12 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB9C637B401 for ; Sun, 6 Jul 2003 19:42:12 -0700 (PDT) Received: from olmec.nighttide.net (jasper.nighttide.net [207.5.141.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2B6943FDF for ; Sun, 6 Jul 2003 19:42:11 -0700 (PDT) (envelope-from darren@nighttide.net) Received: from localhost (darren@localhost [127.0.0.1]) by olmec.nighttide.net (8.12.9/8.12.9) with ESMTP id h672gARp010518 for ; Sun, 6 Jul 2003 22:42:10 -0400 (EDT) (envelope-from darren@nighttide.net) Date: Sun, 6 Jul 2003 22:42:10 -0400 (EDT) From: Darren Henderson To: freebsd-stable@freebsd.org In-Reply-To: <20030705163119.4709fe81.redbrick1@terra.com.br> Message-ID: References: <20030705163119.4709fe81.redbrick1@terra.com.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: FreeBSD Virtual Server X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 02:42:13 -0000 On Sat, 5 Jul 2003, redbrick wrote: > I have been browsing for web hosting and I found some firms (one of them > is ) offering 'virtual server hosting using > FreeBSD'. They say that virtual server is different from virtual host, > for the first is a completely separated enviroment, like a standalone > server. Always read the small print. All of it. There is at least one outfit that actually tries to sell this kind of thing, shared hosting using jails, as a collocated UNIX server. ______________________________________________________________________ Darren Henderson darren@nighttide.net Help fight junk e-mail, visit http://www.cauce.org/ From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 19:47:59 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3B3937B401 for ; Sun, 6 Jul 2003 19:47:59 -0700 (PDT) Received: from mobile.hub.org (u134n133.eastlink.ca [24.224.134.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC9A543FE1 for ; Sun, 6 Jul 2003 19:47:58 -0700 (PDT) (envelope-from scrappy@hub.org) Received: by mobile.hub.org (Postfix, from userid 1001) id 3ECCB1D0; Sun, 6 Jul 2003 23:47:57 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mobile.hub.org (Postfix) with ESMTP id 1BAC01C8; Sun, 6 Jul 2003 23:47:57 -0300 (ADT) Date: Sun, 6 Jul 2003 23:47:57 -0300 (ADT) From: The Hermit Hacker To: Darren Henderson In-Reply-To: Message-ID: <20030706234642.F53667@hub.org> References: <20030705163119.4709fe81.redbrick1@terra.com.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD Virtual Server X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 02:48:00 -0000 On Sun, 6 Jul 2003, Darren Henderson wrote: > On Sat, 5 Jul 2003, redbrick wrote: > > > I have been browsing for web hosting and I found some firms (one of them > > is ) offering 'virtual server hosting using > > FreeBSD'. They say that virtual server is different from virtual host, > > for the first is a completely separated enviroment, like a standalone > > server. > > Always read the small print. All of it. > > There is at least one outfit that actually tries to sell this > kind of thing, shared hosting using jails, as a collocated UNIX server. We don't ... we advertise it purely as a virtual server / machine ... full root is provided to the VM so that clients can operate it as if it was its own machine, but we very clearly spell it out as *virtual* ... From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 19:54:07 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87D0237B404 for ; Sun, 6 Jul 2003 19:54:07 -0700 (PDT) Received: from pd6mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AE0943F85 for ; Sun, 6 Jul 2003 19:54:06 -0700 (PDT) (envelope-from cpressey@catseye.mb.ca) Received: from pd4mr1so.prod.shaw.ca (pd4mr1so-qfe3.prod.shaw.ca [10.0.141.212]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HHM00D8LW25WQ@l-daemon> for freebsd-stable@freebsd.org; Sun, 06 Jul 2003 20:54:05 -0600 (MDT) Received: from pn2ml10so.prod.shaw.ca (pn2ml10so-qfe0.prod.shaw.ca [10.0.121.80]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HHM0054DW25TG@l-daemon> for freebsd-stable@freebsd.org; Sun, 06 Jul 2003 20:54:05 -0600 (MDT) Received: from kallisti.ca (h24-70-180-74.wp.shawcable.net [24.70.180.74]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with SMTP id <0HHM00FL8W24WB@l-daemon> for freebsd-stable@freebsd.org; Sun, 06 Jul 2003 20:54:05 -0600 (MDT) Date: Sun, 06 Jul 2003 21:55:45 -0500 From: Chris Pressey In-reply-to: <20030706213540.GU430@gsmx07.alcatel.com.au> To: Peter Jeremy Message-id: <20030706215545.1c29c5ed.cpressey@catseye.mb.ca> Organization: Cat's Eye Technologies - http://www.catseye.mb.ca/ MIME-version: 1.0 X-Mailer: Sylpheed version 0.9.3 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <200307051728.24681.me@farid-hajji.de> <44brw8g26e.fsf@be-well.ilk.org> <200307060029.00866.me@farid-hajji.de> <3F07576F.4030105@mac.com> <20030706213540.GU430@gsmx07.alcatel.com.au> cc: freebsd-stable@freebsd.org Subject: Re: Weird vmstat -s stats X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 02:54:07 -0000 On Mon, 7 Jul 2003 07:35:40 +1000 Peter Jeremy wrote: > On 2003-Jul-05 18:55:43 -0400, Chuck Swiger wrote: > >Farid Hajji wrote: > >[ ... ] > >>Shouldn't such counters be at least 64 bit wide? > > > >You betcha. :-) The problem is that a 32-bit CPU, like the Intel > >x86 family, can't increment a 64-bit counter atomicly. > > This isn't absolutely true. You _can_ perform atomic 64-bit > operations on an x86 (for x>=5), they are just extremely expensive. > > There are regular threads on this sort of problem and I don't believe > anyone has come up with a solution that did not involve overheads that > were considered unacceptable in the general case. > > Peter 'Scuse me if I'm out of my depth here, but wouldn't the atomic 64-bit update only have to be done when the lower 32 bits were about to wrap (which would be relatively infrequent)? The check to see if the lower 32 bits were about to wrap would be relatively cheap, too, I'd think. That's just an idle guess, though. -Chris From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 20:04:48 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB8FD37B401 for ; Sun, 6 Jul 2003 20:04:48 -0700 (PDT) Received: from olmec.nighttide.net (jasper.nighttide.net [207.5.141.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id B510043FCB for ; Sun, 6 Jul 2003 20:04:47 -0700 (PDT) (envelope-from darren@nighttide.net) Received: from localhost (darren@localhost [127.0.0.1]) by olmec.nighttide.net (8.12.9/8.12.9) with ESMTP id h6734kRp010593; Sun, 6 Jul 2003 23:04:46 -0400 (EDT) (envelope-from darren@nighttide.net) Date: Sun, 6 Jul 2003 23:04:46 -0400 (EDT) From: Darren Henderson To: The Hermit Hacker In-Reply-To: <20030706234642.F53667@hub.org> Message-ID: References: <20030705163119.4709fe81.redbrick1@terra.com.br> <20030706234642.F53667@hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD Virtual Server X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 03:04:49 -0000 On Sun, 6 Jul 2003, The Hermit Hacker wrote: > On Sun, 6 Jul 2003, Darren Henderson wrote: > > > On Sat, 5 Jul 2003, redbrick wrote: > > > > > I have been browsing for web hosting and I found some firms (one of them > > > is ) offering 'virtual server hosting using > > > FreeBSD'. They say that virtual server is different from virtual host, > > > for the first is a completely separated enviroment, like a standalone > > > server. > > > > Always read the small print. All of it. > > > > There is at least one outfit that actually tries to sell this > > kind of thing, shared hosting using jails, as a collocated UNIX server. > > We don't ... we advertise it purely as a virtual server / machine ... full > root is provided to the VM so that clients can operate it as if it was its > own machine, but we very clearly spell it out as *virtual* ... I wasn't refering to www.hub.org - I have no knowledge of it. Didn't mean to imply that companies marketing virtual hosting - and stating that it is virtual hosting - are doing anything even remotely improper. Companies that are marketing virtual hosting and are claiming that it is something else would make me nervous. Merely a cautionary "buyer beware", Of course the original poster was looking for technology info - actually a question I think I've asked in the past as well. Pity FreeBSD doesn't run under IBM's VM - that would be interesting :) From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 20:06:42 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD3EC37B401 for ; Sun, 6 Jul 2003 20:06:42 -0700 (PDT) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8302043FAF for ; Sun, 6 Jul 2003 20:06:41 -0700 (PDT) (envelope-from freebsd-stable-local@be-well.no-ip.com) Received: from be-well.ilk.org (be-well.no-ip.com[24.147.188.198]) by comcast.net (sccrmhc13) with ESMTP id <20030707030638016000ritke>; Mon, 7 Jul 2003 03:06:38 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.9/8.12.9) with ESMTP id h6736ZpS026917 for ; Sun, 6 Jul 2003 23:06:35 -0400 (EDT) (envelope-from freebsd-stable-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.9/8.12.6/Submit) id h6736Z7W026914; Sun, 6 Jul 2003 23:06:35 -0400 (EDT) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-stable-local@be-well.ilk.org using -f Sender: lowell@be-well.no-ip.com To: stable@freebsd.org References: <200307051728.24681.me@farid-hajji.de> <44brw8g26e.fsf@be-well.ilk.org> <200307060029.00866.me@farid-hajji.de> <3F07576F.4030105@mac.com> <20030706213540.GU430@gsmx07.alcatel.com.au> <20030706215545.1c29c5ed.cpressey@catseye.mb.ca> From: Lowell Gilbert Date: 06 Jul 2003 23:06:35 -0400 In-Reply-To: <20030706215545.1c29c5ed.cpressey@catseye.mb.ca> Message-ID: <44u19zxcg4.fsf@be-well.ilk.org> Lines: 14 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Weird vmstat -s stats X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 03:06:43 -0000 Chris Pressey writes: > 'Scuse me if I'm out of my depth here, but wouldn't the atomic 64-bit > update only have to be done when the lower 32 bits were about to wrap > (which would be relatively infrequent)? Unfortunately, that doesn't quite work. It opens up a race condition where the counter wasn't about to wrap when you do the check, but has been advanced again when you do the increment. > The check to see if the lower 32 bits were about to wrap would be > relatively cheap, too, I'd think. Absolutely. The problem is just that the check itself is not atomic. From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 20:30:27 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E925E37B401 for ; Sun, 6 Jul 2003 20:30:27 -0700 (PDT) Received: from pd3mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1311643FBF for ; Sun, 6 Jul 2003 20:30:27 -0700 (PDT) (envelope-from cpressey@catseye.mb.ca) Received: from pd2mr2so.prod.shaw.ca (pd2mr2so-ser.prod.shaw.ca [10.0.141.109])2003)) with ESMTP id <0HHM00DKWXQQBL@l-daemon> for stable@freebsd.org; Sun, 06 Jul 2003 21:30:26 -0600 (MDT) Received: from pn2ml2so.prod.shaw.ca (pn2ml2so-qfe0.prod.shaw.ca [10.0.121.146]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with ESMTP id <0HHM002LQXQQ2E@l-daemon> for stable@freebsd.org; Sun, 06 Jul 2003 21:30:26 -0600 (MDT) Received: from kallisti.ca (h24-70-180-74.wp.shawcable.net [24.70.180.74]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.16 (built May 14 2003)) with SMTP id <0HHM00HDFXQQM0@l-daemon> for stable@freebsd.org; Sun, 06 Jul 2003 21:30:26 -0600 (MDT) Date: Sun, 06 Jul 2003 22:32:06 -0500 From: Chris Pressey In-reply-to: <44u19zxcg4.fsf@be-well.ilk.org> To: stable@freebsd.org Message-id: <20030706223206.09a17f29.cpressey@catseye.mb.ca> Organization: Cat's Eye Technologies - http://www.catseye.mb.ca/ MIME-version: 1.0 X-Mailer: Sylpheed version 0.9.3 (GTK+ 1.2.10; i386-portbld-freebsd4.8) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <200307051728.24681.me@farid-hajji.de> <44brw8g26e.fsf@be-well.ilk.org> <200307060029.00866.me@farid-hajji.de> <3F07576F.4030105@mac.com> <20030706213540.GU430@gsmx07.alcatel.com.au> <20030706215545.1c29c5ed.cpressey@catseye.mb.ca> <44u19zxcg4.fsf@be-well.ilk.org> Subject: Re: Weird vmstat -s stats X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 03:30:28 -0000 On 06 Jul 2003 23:06:35 -0400 Lowell Gilbert wrote: > Chris Pressey writes: > > > 'Scuse me if I'm out of my depth here, but wouldn't the atomic > > 64-bit update only have to be done when the lower 32 bits were about > > to wrap(which would be relatively infrequent)? > > Unfortunately, that doesn't quite work. It opens up a race condition > where the counter wasn't about to wrap when you do the check, but > has been advanced again when you do the increment. > > > The check to see if the lower 32 bits were about to wrap would be > > relatively cheap, too, I'd think. > > Absolutely. The problem is just that the check itself is not atomic. OK, that makes sense. Still, it seems like there are two viable alternatives - 1) use an atomically-updated 32-bit counter, which we know WILL eventually yield an inaccurate result in a forseeable time frame; or 2) use a 64-bit counter of which only the bottom 32 bits are atomically updated, which MAY yield an inaccurate result in the same time frame. Even though it's not 100% guaranteed, the second option does strike me as a small improvement over the first. -Chris From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 20:46:21 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 851DB37B401 for ; Sun, 6 Jul 2003 20:46:21 -0700 (PDT) Received: from alcanet.com.au (mail2.alcanet.com.au [203.62.196.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1130D43F85 for ; Sun, 6 Jul 2003 20:46:20 -0700 (PDT) (envelope-from peter.jeremy@alcatel.com.au) Received: from sydsmtp01.alcatel.com.au (IDENT:root@localhost.localdomain [127.0.0.1])h673jVxC001231; Mon, 7 Jul 2003 13:45:37 +1000 Received: from gsmx07.alcatel.com.au ([139.188.20.247]) by sydsmtp01.alcatel.com.au (Lotus Domino Release 5.0.12) with ESMTP id 2003070713423550:177774 ; Mon, 7 Jul 2003 13:42:35 +1000 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) by gsmx07.alcatel.com.au (8.12.9/8.12.9) with ESMTP id h673jC7d002486; Mon, 7 Jul 2003 13:45:12 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.9/8.12.9/Submit) id h673jC0e002485; Mon, 7 Jul 2003 13:45:12 +1000 (EST) (envelope-from peter.jeremy@alcatel.com.au) Date: Mon, 7 Jul 2003 13:45:12 +1000 From: Peter Jeremy To: Chris Pressey Message-ID: <20030707034511.GY430@gsmx07.alcatel.com.au> Mail-Followup-To: Chris Pressey , stable@freebsd.org References: <200307051728.24681.me@farid-hajji.de> <44brw8g26e.fsf@be-well.ilk.org> <200307060029.00866.me@farid-hajji.de> <3F07576F.4030105@mac.com> <20030706213540.GU430@gsmx07.alcatel.com.au> <20030706215545.1c29c5ed.cpressey@catseye.mb.ca> <44u19zxcg4.fsf@be-well.ilk.org> <20030706223206.09a17f29.cpressey@catseye.mb.ca> Mime-Version: 1.0 In-Reply-To: <20030706223206.09a17f29.cpressey@catseye.mb.ca> User-Agent: Mutt/1.4.1i X-MIMETrack: Itemize by SMTP Server on SYDSMTP01/AlcatelAustralia(Release 5.0.12 |February 13, 2003) at 07/07/2003 01:42:35 PM,|February 13, 2003) at 07/07/2003 01:43:00 PM, Serialize complete at 07/07/2003 01:43:00 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline cc: stable@freebsd.org Subject: Re: Weird vmstat -s stats X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 03:46:21 -0000 On 2003-Jul-06 22:32:06 -0500, Chris Pressey wrote: >Still, it seems like there are two viable alternatives - > >1) use an atomically-updated 32-bit counter, which we know WILL >eventually yield an inaccurate result in a forseeable time frame; or >2) use a 64-bit counter of which only the bottom 32 bits are atomically >updated, which MAY yield an inaccurate result in the same time frame. In the second case, the top 32-bits also have to be atomically incremented for the result to be meaningful. Otherwise you will occasionally lose 2^32 units permanently. If there are two serial atomic updates you just occasionally lose 2^32 units temporarily. The third alternative is for applications that actually care about the result to simulate a 64-bit counter: If the 32-bit counter went backwards then the top 32-bits just incremented. This works as long as the counter can be sampled more than once between overflows. A fourth alternative is to wear the cost of 64-bit atomic operations on x86. The problem is that for the majority of users, the benefit doesn't justify the expected performance hit. >Even though it's not 100% guaranteed, the second option does strike me >as a small improvement over the first. Misleading 64-bit statistics (out by 2^32 occasionally) aren't necessarily an improvement on a 32-bit counter. To get an accurate result you still need the 'did the counter go backwards' test mentioned above. This has all been done to death in the past. If 64-bit counters are really critical to your application, I suggest you run up a patch that provides a compile-time option to switch between 32-bit and 64-bit counters. You might get enough support to get it committed as long as it is optional. Peter From owner-freebsd-stable@FreeBSD.ORG Sun Jul 6 22:36:02 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6A5C37B401 for ; Sun, 6 Jul 2003 22:36:02 -0700 (PDT) Received: from ms-smtp-02.southeast.rr.com (ms-smtp-02.southeast.rr.com [24.93.67.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3FED43FA3 for ; Sun, 6 Jul 2003 22:36:01 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from creme-brulee.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158])h675X3qP000741; Mon, 7 Jul 2003 01:33:04 -0400 (EDT) Received: from [10.2.1.4] (vpn-client-4.marcuscom.com [10.2.1.4]) h675Z74x050247; Mon, 7 Jul 2003 01:35:08 -0400 (EDT) (envelope-from marcus@marcuscom.com) From: Joe Marcus Clarke To: Doug White In-Reply-To: <20030706012837.D79211@carver.gumbysoft.com> References: <1057294495.3696.28.camel@shumai.marcuscom.com> <20030704152929.I68494@carver.gumbysoft.com> <1057359795.1231.9.camel@shumai.marcuscom.com> <20030706012837.D79211@carver.gumbysoft.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-e2pjkKiGmh8Z5CmSoL1+" Organization: MarcusCom, Inc. Message-Id: <1057556155.326.7.camel@gyros> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 07 Jul 2003 01:35:56 -0400 X-Spam-Status: No, hits=-11.6 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_XIMIAN autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: stable@freebsd.org Subject: Re: Latest -STABLE detects my DLT drive as a CD-ROM X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 05:36:03 -0000 --=-e2pjkKiGmh8Z5CmSoL1+ Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2003-07-06 at 04:32, Doug White wrote: > On Fri, 4 Jul 2003, Joe Marcus Clarke wrote: >=20 > > On Fri, 2003-07-04 at 18:30, Doug White wrote: > > > On Thu, 4 Jul 2003, Joe Marcus Clarke wrote: > > > > > > > sa0: Removable Sequential Access SCSI-2 device > > > ^^^^ > > > > > > Why are the firmware versions different? > > > > I noticed that, too. But nothing has changed. I simply rebooted after > > the upgrade. >=20 > Hm. we'd need to get some diagnostic info out of the drivers there to see > the MODE SENSE info. Something is offsetting differently into the data > and picking up the wrong bits, which maybe why the firmware rev is moving > around too. I thought about that. I'm going to have the local admins reboot the drive, and check the cabling tomorrow. IF that doesn't work, I'll roll back the recent SCSI changes. >=20 > You might roll back the scsi controller driver .. are you on ahc? Yep, Adaptec 2940. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-e2pjkKiGmh8Z5CmSoL1+ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQA/CQa7b2iPiv4Uz4cRAp7XAJ9MVZ6MMlCJb5L4tevf+qsNAxS72wCbB9do U19aVpPodOjhLgbjuaFtaqg= =8l2A -----END PGP SIGNATURE----- --=-e2pjkKiGmh8Z5CmSoL1+-- From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 00:40:12 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B88837B401 for ; Mon, 7 Jul 2003 00:40:12 -0700 (PDT) Received: from zorg.miratech-software.com (162.catv55.lgt01.lan.ch [212.60.55.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71BB243FBF for ; Mon, 7 Jul 2003 00:40:10 -0700 (PDT) (envelope-from PNarozhniy@MIRATECH.UA) Received: from mtx-mail.msg (mtx-mail [10.16.3.2]) by zorg.miratech-software.com (Postfix) with ESMTP id 9BFA14B1; Mon, 7 Jul 2003 09:39:38 +0200 (CEST) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Date: Mon, 7 Jul 2003 10:39:36 +0300 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FreeBSD Virtual Server Thread-Index: AcNDLCGXU3aX1KG3Ql21I7TsyG7yrABLqlfA From: "Pavel Narozhniy" To: "redbrick" , Subject: RE: FreeBSD Virtual Server X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 07:40:12 -0000 > -----Original Message----- > From: redbrick [mailto:redbrick1@terra.com.br] > Sent: Saturday, July 05, 2003 10:31 PM > To: freebsd-stable@freebsd.org > Subject: FreeBSD Virtual Server >=20 >=20 > Hi there, >=20 > I have been browsing for web hosting and I found some firms=20 > (one of them > is ) offering 'virtual server hosting using > FreeBSD'. They say that virtual server is different from virtual host, > for the first is a completely separated enviroment, like a standalone > server. >=20 > I am a newbie on FreeBSD, I search at the archive and Google for this > info; and at this moment I am aware of VMWare's solution software, but > I'd like to ask you guys if anyone knows any other virtualization > software avaliable, preferably free for personal use. This is not VMWare, this is jail. You can read man page on it, see man = jail. From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 01:05:39 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8567937B401 for ; Mon, 7 Jul 2003 01:05:39 -0700 (PDT) Received: from HAL9000.homeunix.com (ip114.bella-vista.sfo.interquest.net [66.199.86.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48F9943FDF for ; Mon, 7 Jul 2003 01:05:38 -0700 (PDT) (envelope-from das@freebsd.org) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.9/8.12.9) with ESMTP id h6785WK5090572; Mon, 7 Jul 2003 01:05:33 -0700 (PDT) (envelope-from das@freebsd.org) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.9/8.12.9/Submit) id h6785Uwe090571; Mon, 7 Jul 2003 01:05:30 -0700 (PDT) (envelope-from das@freebsd.org) Date: Mon, 7 Jul 2003 01:05:30 -0700 From: David Schultz To: "Marc G. Fournier" Message-ID: <20030707080530.GA23029@HAL9000.homeunix.com> Mail-Followup-To: "Marc G. Fournier" , freebsd-stable@freebsd.org, Ted Mittelstaedt References: <20030701155450.J67063@hub.org> <20030702073306.GA3324@HAL9000.homeunix.com> <20030702084558.J67063@hub.org> <20030703033117.GA7647@HAL9000.homeunix.com> <20030703005047.B67063@hub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030703005047.B67063@hub.org> cc: freebsd-stable@freebsd.org cc: Ted Mittelstaedt Subject: Re: Okay, looks like I might have a *good* one here ... inode hang X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 08:05:39 -0000 On Thu, Jul 03, 2003, Marc G. Fournier wrote: > > follow that one, too. Maybe the trail will simply lead back to > > unionfs... > > 'K, how about a loop? Heh...it's a deadlock between unionfs and nullfs. Sheesh. If unionfs is at fault here, I think I already know where the problem is, and it isn't easy to fix. But I'll have to look more carefully when I get a chance. From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 02:23:45 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2E3A37B401 for ; Mon, 7 Jul 2003 02:23:45 -0700 (PDT) Received: from geminix.org (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id C97B043F85 for ; Mon, 7 Jul 2003 02:23:44 -0700 (PDT) (envelope-from gemini@geminix.org) Message-ID: <3F093C1D.6030601@geminix.org> Date: Mon, 07 Jul 2003 11:23:41 +0200 From: Uwe Doering Organization: Private UNIX Site User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030701 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <20030705163119.4709fe81.redbrick1@terra.com.br> <20030706234642.F53667@hub.org> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Received: from gemini by geminix.org with asmtp (TLSv1:AES256-SHA:256) (Exim 3.36 #1) id 19ZSDn-000OHS-00; Mon, 07 Jul 2003 11:23:43 +0200 Subject: Re: FreeBSD Virtual Server X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 09:23:46 -0000 Darren Henderson wrote: > On Sun, 6 Jul 2003, The Hermit Hacker wrote: >>On Sun, 6 Jul 2003, Darren Henderson wrote: >>>On Sat, 5 Jul 2003, redbrick wrote: >>>>I have been browsing for web hosting and I found some firms (one of them >>>>is ) offering 'virtual server hosting using >>>>FreeBSD'. They say that virtual server is different from virtual host, >>>>for the first is a completely separated enviroment, like a standalone >>>>server. >>> >>>Always read the small print. All of it. >>> >>>There is at least one outfit that actually tries to sell this >>>kind of thing, shared hosting using jails, as a collocated UNIX server. >> >>We don't ... we advertise it purely as a virtual server / machine ... full >>root is provided to the VM so that clients can operate it as if it was its >>own machine, but we very clearly spell it out as *virtual* ... > > I wasn't refering to www.hub.org - I have no knowledge of it. Didn't mean > to imply that companies marketing virtual hosting - and stating that > it is virtual hosting - are doing anything even remotely improper. > > Companies that are marketing virtual hosting and are claiming that it is > something else would make me nervous. Merely a cautionary "buyer beware", I'm not sure whether you mean us (EscapeBox). We don't call our solution a "virtual server", for a good reason, however. Around fall last year, a couple of outfits here in Germany tried to make virtual server hosting a mass market, at rock-bottom prices. Of course they ended up with inferior "Mickey Mouse" implementations that can hardly be used for any serious Internet hosting. Consequently, the relevant newsgroups and discussion forums are full of complaints by customers who feel ripped off, and the reputation of "virtual servers" is basically ruined in the public opinion. So if you are a company doing business in this area, have a working solution and try to sell to customers with serious projects, including business customers, you better don't call your product a virtual server in Germany. This is why we coined a new product class for what we offer: "on-demand servers". We think this is justified since the built-in "managed service" feature differentiates us from the rest of the pack anyway. On the other hand, we clearly state already on our index page that it is "a full-blown UNIX server box, several of which coexist on a powerful common platform, completely isolated from each other". We believe that with this wording there can be no doubt what's under the hood. We are certainly not happy about having to engage in this kind of marketing BS. We'd rather prefer to work on further improving our product since we are technicians at heart. Unfortunately we had to act to escape said collective virtual server bashing. Just wanted to shed some light on what marketing nonsense even well-meaning companies (which I think we are) sometimes have to deal with in order to make a living. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 02:25:34 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E00F637B428 for ; Mon, 7 Jul 2003 02:25:33 -0700 (PDT) Received: from smtp02.syd.iprimus.net.au (smtp02.syd.iprimus.net.au [210.50.76.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id E246943F75 for ; Mon, 7 Jul 2003 02:25:32 -0700 (PDT) (envelope-from tim@robbins.dropbear.id.au) Received: from dilbert.robbins.dropbear.id.au (210.50.114.33) by smtp02.syd.iprimus.net.au (7.0.015) id 3EF7A10D002356A5; Mon, 7 Jul 2003 19:25:30 +1000 Received: by dilbert.robbins.dropbear.id.au (Postfix, from userid 1000) id 2177EC96E; Mon, 7 Jul 2003 19:25:28 +1000 (EST) Date: Mon, 7 Jul 2003 19:25:27 +1000 From: Tim Robbins To: "Marc G. Fournier" , freebsd-stable@freebsd.org, Ted Mittelstaedt Message-ID: <20030707192527.A9706@dilbert.robbins.dropbear.id.au> References: <20030701155450.J67063@hub.org> <20030702073306.GA3324@HAL9000.homeunix.com> <20030702084558.J67063@hub.org> <20030703033117.GA7647@HAL9000.homeunix.com> <20030703005047.B67063@hub.org> <20030707080530.GA23029@HAL9000.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030707080530.GA23029@HAL9000.homeunix.com>; from das@freebsd.org on Mon, Jul 07, 2003 at 01:05:30AM -0700 Subject: Re: Okay, looks like I might have a *good* one here ... inode hang X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 09:25:34 -0000 On Mon, Jul 07, 2003 at 01:05:30AM -0700, David Schultz wrote: > On Thu, Jul 03, 2003, Marc G. Fournier wrote: > > > follow that one, too. Maybe the trail will simply lead back to > > > unionfs... > > > > 'K, how about a loop? > > Heh...it's a deadlock between unionfs and nullfs. Sheesh. > If unionfs is at fault here, I think I already know where > the problem is, and it isn't easy to fix. But I'll have to > look more carefully when I get a chance. nullfs on 4.x can probably deadlock in certain situations while attempting to recycle vnodes; see null_vnops.c 1.63. This bug was made more obvious in 5.x by null_vnops.c 1.51, but I'm pretty sure that the problem was still there in earlier versions, but was just harder to trigger. There are a few questionable things in unionfs too. There might be a race in union_inactive() (should it grab the vnode interlock before dropping the vnode lock and call vgonel() instead of vgone()?), and the support for locking stacks of vnodes seems to be #if 0'd out in union_lock(). Tim From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 04:40:05 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 735FF37B401 for ; Mon, 7 Jul 2003 04:40:05 -0700 (PDT) Received: from fbsd.reiteration.net (pc-62-31-233-54-se.blueyonder.co.uk [62.31.233.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 528C143FB1 for ; Mon, 7 Jul 2003 04:40:04 -0700 (PDT) (envelope-from jcr@canuck.co.uk) Received: from localhost ([127.0.0.1] helo=reiteration.net ident=stonyb) by fbsd.reiteration.net with esmtp (Exim 4.14) id 19ZULi-000HiW-Vr for freebsd-stable@freebsd.org; Mon, 07 Jul 2003 12:40:03 +0100 From: "james russell" To: freebsd-stable@freebsd.org Date: Mon, 7 Jul 2003 12:40:02 +0100 Message-Id: <20030707113421.M98385@canuck.co.uk> In-Reply-To: <20030702121242.M15172@canuck.co.uk> References: <20030702121242.M15172@canuck.co.uk> X-Mailer: Open WebMail 2.10 20030617 X-OriginatingIP: 217.155.102.238 (stonyb) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: Re: i2c not detected on Dell Inspiron 5100 4.8-STABLE X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 11:40:05 -0000 Found it, added the line device pcf0 at isa? port 0x320 irq 5 (from LINT) to kernel config file and it all came up :) From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 09:05:12 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F362A37B41D for ; Mon, 7 Jul 2003 09:05:11 -0700 (PDT) Received: from dsl-mail.kamp.net (mail.kamp-dsl.de [195.62.99.42]) by mx1.FreeBSD.org (Postfix) with SMTP id C389843F85 for ; Mon, 7 Jul 2003 09:05:09 -0700 (PDT) (envelope-from me@farid-hajji.de) Received: (qmail 27983 invoked by uid 505); 7 Jul 2003 16:05:13 -0000 Received: from me@farid-hajji.de by dsl-mail by uid 502 with qmail-scanner-1.14 (spamassassin: 2.43. Clear:. Processed in 0.250865 secs); 07 Jul 2003 16:05:13 -0000 Received: from unknown (HELO reverse-213-146-116-200.dialin.kamp-dsl.de) (213.146.116.200) by dsl-mail.kamp.net with SMTP; 7 Jul 2003 16:05:13 -0000 From: Farid Hajji To: Uwe Doering Date: Mon, 7 Jul 2003 18:04:58 +0200 User-Agent: KMail/1.5.1 References: <20030705163119.4709fe81.redbrick1@terra.com.br> <3F093C1D.6030601@geminix.org> In-Reply-To: <3F093C1D.6030601@geminix.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307071805.02111.me@farid-hajji.de> cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD Virtual Server X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: me@farid-hajji.de List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 16:05:12 -0000 On Monday 07 July 2003 11:23 am, Uwe Doering wrote: > I'm not sure whether you mean us (EscapeBox). We don't call our > solution a "virtual server", for a good reason, however. Around fall [...] > We are certainly not happy about having to engage in this kind of > marketing BS. We'd rather prefer to work on further improving our > product since we are technicians at heart. Unfortunately we had to act > to escape said collective virtual server bashing. If you simply stated on your web pages that you're offering some jail(8)-based hosting... If a company mentions FreeBSD, its most likely that they'll provide some jail(8)s, with or without root access. Strangely, very few companies admit this, even if it's obvious both in the industry and to better informed sysadmins... I would stay clear of companies that are not openly stating their core technology. If you modified the kernel to better suit your needs, that's okay, and your trade secret. That is not the problem here. Just be open about what you're offering, and the credibility issues quickly melt away. matrix(8) would have been a better marketing term though... :-) Good luck, -FH. -- Farid Hajji. http://www.farid-hajji.net/address.html From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 10:10:42 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05A5437B401 for ; Mon, 7 Jul 2003 10:10:42 -0700 (PDT) Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 892B643FA3 for ; Mon, 7 Jul 2003 10:10:41 -0700 (PDT) (envelope-from mvh@ix.netcom.com) Received: from lsanca1-ar6-4-62-202-122.lsanca1.elnk.dsl.genuity.net ([4.62.202.122] helo=netcom1.netcom.com) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19ZZVg-0006PS-00 for stable@freebsd.org; Mon, 07 Jul 2003 10:10:40 -0700 Received: by netcom1.netcom.com (Postfix, from userid 1000) id 355B9533F; Mon, 7 Jul 2003 10:10:40 -0700 (PDT) From: Mike Harding To: stable@freebsd.org Message-Id: <20030707171040.355B9533F@netcom1.netcom.com> Date: Mon, 7 Jul 2003 10:10:40 -0700 (PDT) Subject: beware nvidia driver + make world X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 17:10:42 -0000 There was recently a change to /usr/src/sys/proc.h, and after a rebuild of the world and kernel and subsequent reboot my system crashed and took some files with it. This was because I hadn't rebuilt the nvidia driver so that it used this new proc.h file. If you are using the nvidia driver, and do a make world, you may want to remove and reinstall the nvidia driver port before the reboot so that this doesn't happen to you. - Mike H. From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 10:58:57 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A82237B401 for ; Mon, 7 Jul 2003 10:58:57 -0700 (PDT) Received: from sputnik.chel.su (sputnik.chel.su [195.54.9.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF0DE43FB1 for ; Mon, 7 Jul 2003 10:58:54 -0700 (PDT) (envelope-from raven@sputnik.chel.su) Received: from skipped_antispam (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id E43D21A750 for ; Mon, 7 Jul 2003 23:58:50 +0600 (YEKST) Received: from skipped_antivirus (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 3AE321A743 for ; Mon, 7 Jul 2003 23:58:50 +0600 (YEKST) Received: from mailhub (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id D14F11A740 for ; Mon, 7 Jul 2003 23:58:48 +0600 (YEKST) Received: from file-srv.office.sputnik.chel.su (file-srv [192.168.1.100]) by sputnik.chel.su (Postfix) with ESMTP id 33F931A73A; Mon, 7 Jul 2003 23:58:48 +0600 (YEKST) Date: Mon, 7 Jul 2003 23:56:47 +0500 From: Dmitry Sukhodoev X-Mailer: The Bat! (v1.60h) Organization: Sputnik X-Priority: 3 (Normal) Message-ID: <48530541406.20030707235647@sputnik.chel.su> To: Mark Woodson In-Reply-To: <200307031138.50633.mwoodson@sricrm.com> References: <20030701212607.9EAA61A774@sputnik.chel.su> <20030703110900.GH57410@dds.nl> <200307031138.50633.mwoodson@sricrm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit cc: stable@freebsd.org Subject: Re[2]: smbfs can't access to files with symbol ? in name and some other X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 17:58:57 -0000 Hello Mark, Thursday, July 3, 2003, 11:38:50 PM, you wrote: MW> On Thursday 03 July 2003 04:09 am, Alex de Kruijff wrote: >> On Wed, Jul 02, 2003 at 03:26:07AM +0600, Dmitry Sukhodoev wrote: >> > >Description: >> > >> > trying to: >> > mount_smbfs -o ro -f 644 -d 755 -N -I 192.168.1.100 -E koi8-r:cp866 >> > //raven@file-srv/e$ /mnt/smb/fileserver and mounted filesystem can't >> > access to files with with non-standart symbols in name, same as ¿ >> > >> > >How-To-Repeat: >> > >> > just mount and try >> > >> > >Fix: >> >> I beleave that this is not a bug but a _feuture_. The SMB protocol just >> isn't design to do this. The window partions also don't allow these >> symbols. >> MW> Not quite true. I've been experiencing a similar problem. There are MW> characters allowed with Windows that aren't accessible when trying use an smb MW> mounted share. MW> The easiest one for me to track down and trace is the # sign on a 2k box. MW> Though there are characters apparently on Win98 and XP boxes. MW> I've tried digging through the documentation for some information on how to MW> change the character mapping to try some kind of workaround (I'm building MW> scripts to backup win shares to s FreeBSD 4.8-STABLE box), but have not had MW> much luck finding any info online for this. for koi8-r and koi8-ru encodings solve in must be in /usr/ports/converters/libiconv/files/patch-dm: === cut === --- lib/koi8_r.h.orig 2003-07-06 21:36:00.000000000 +0600 +++ lib/koi8_r.h 2003-07-06 21:36:00.000000000 +0600 @@ -36,7 +36,7 @@ 0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x255c, 0x255d, 0x255e, /* 0xb0 */ 0x255f, 0x2560, 0x2561, 0x0401, 0x2562, 0x2563, 0x2564, 0x2565, - 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x256b, 0x256c, 0x00a9, + 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x256b, 0x256c, 0x2116, /* 0xc0 */ 0x044e, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, 0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, @@ -145,6 +145,8 @@ c = koi8_r_page23[wc-0x2320]; else if (wc >= 0x2500 && wc < 0x25a8) c = koi8_r_page25[wc-0x2500]; + else if (wc == 0x2116) + c = 0xbf; if (c != 0) { *r = c; return 1; --- lib/koi8_ru.h.orig 2001-05-26 12:00:00.000000000 +0600 +++ lib/koi8_ru.h 2003-07-06 22:01:54.000000000 +0600 @@ -34,7 +34,7 @@ 0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x0491, 0x045e, 0x255e, /* 0xb0 */ 0x255f, 0x2560, 0x2561, 0x0401, 0x0404, 0x2563, 0x0406, 0x0407, - 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x0490, 0x040e, 0x00a9, + 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x0490, 0x040e, 0x2116, /* 0xc0 */ 0x044e, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, 0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, @@ -151,6 +151,8 @@ c = koi8_ru_page23[wc-0x2320]; else if (wc >= 0x2500 && wc < 0x25a8) c = koi8_ru_page25[wc-0x2500]; + else if (wc == 0x2116) + c = 0xbf; if (c != 0) { *r = c; return 1; === cut === this patch make correct translating of "number" symbol from koi8-r and back. -- Best regards, Dmitry mailto:raven@sputnik.chel.su From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 11:16:19 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E663B37B401 for ; Mon, 7 Jul 2003 11:16:19 -0700 (PDT) Received: from catflap.home.slightlystrange.org (pc4-cmbg1-4-cust87.cmbg.cable.ntl.com [80.6.127.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15FC743FBD for ; Mon, 7 Jul 2003 11:16:19 -0700 (PDT) (envelope-from danielby@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 4.20) id 19ZaXB-000Ks5-Op for stable@freebsd.org; Mon, 07 Jul 2003 19:16:17 +0100 Date: Mon, 7 Jul 2003 19:16:17 +0100 From: Daniel Bye To: stable@freebsd.org Message-ID: <20030707181617.GB79983@catflap.home.slightlystrange.org> Mail-Followup-To: stable@freebsd.org References: <20030707171040.355B9533F@netcom1.netcom.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JYK4vJDZwFMowpUq" Content-Disposition: inline In-Reply-To: <20030707171040.355B9533F@netcom1.netcom.com> User-Agent: Mutt/1.4.1i Sender: Daniel Bye Subject: Re: beware nvidia driver + make world X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dan@slightlystrange.org List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 18:16:20 -0000 --JYK4vJDZwFMowpUq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 07, 2003 at 10:10:40AM -0700, Mike Harding wrote: >=20 > There was recently a change to /usr/src/sys/proc.h, and after a > rebuild of the world and kernel and subsequent reboot my system > crashed and took some files with it. This was because I hadn't > rebuilt the nvidia driver so that it used this new proc.h file. >=20 > If you are using the nvidia driver, and do a make world, you may want > to remove and reinstall the nvidia driver port before the reboot so > that this doesn't happen to you. Too late! ;-) Once I got the box up and running again (rebuilt kernel without device agp, reinstalled nvidia-driver without WITH_FREEBSD_AGP=3Dyes, prevent loading of agp.ko on boot), I also needed to alter the XFree86 config file - my card (an integrated NV15 nForce2) seems to return a slightly different BoardName string when probed, which makes X choke. Amending the value in the BoardName directive to match the probed value fixed it for me, so be aware of this, as well, if X won't start for you... The correct value can be found in the error logfile dropped as X dies. Dan --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --JYK4vJDZwFMowpUq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/CbjxhvzwOpChvo8RAtMnAJ93OVGVzGVrrDz0LZQsLEcLnmGoQwCg7JsW Am1MaFa8+NyBGhpKpkC8Ny8= =tsw5 -----END PGP SIGNATURE----- --JYK4vJDZwFMowpUq-- From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 14:00:40 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59FE937B401; Mon, 7 Jul 2003 14:00:40 -0700 (PDT) Received: from lakemtao01.cox.net (lakemtao01.cox.net [68.1.17.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5581343F85; Mon, 7 Jul 2003 14:00:39 -0700 (PDT) (envelope-from dpuryear@usa.net) Received: from dpboxen.usa.net ([68.108.224.34]) by lakemtao01.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030707210037.DAIA8337.lakemtao01.cox.net@dpboxen.usa.net>; Mon, 7 Jul 2003 17:00:37 -0400 Message-Id: <5.2.1.1.0.20030707155536.063a9d78@pop.netaddress.com> X-Sender: dpuryear@pop.netaddress.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Mon, 07 Jul 2003 15:57:32 -0500 To: freebsd-questions@freebsd.org, freebsd-stable@freebsd.org From: Dustin Puryear Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: FreeBSD 4.4-REL to FreeBSD 4.8-STABLE upgrade problem. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 21:00:40 -0000 I sent this to freebsd-questions earlier via the newsgroup, but I just found out today that the list-to-news gateway has been down for half a month now. Any idea when it's going back up? Who was hosting that service anyway? And now for the question.. I have a test server that is being used to test a 4.4-REL to 4.8-STABLE upgrade, and I've found the system will no longer boot unless I load a saved 4.4-REL kernel. The error I get is along the lines of: Mounting root from ufs:/dev/ad4s1a Root mount failed: 16 At first I got this error using a custom kernel configuration known as WWW, but after getting this error I built a new kernel based on GENERIC: # cd /usr/src # make update # make buildkernel # make installkernel # reboot Per /usr/src/UPDATING there was a change in the ATA drive at 4.5-REL, but it mentioned running mergemaster to create the new devices, and according to /usr/src/Makefile I shouldn't do that until I get past the current stage (which is where I am stuck): (/usr/src/Makefile comments) 1. cd /usr/src 2. make buildworld 3. make buildkernel 4. make installkernel 5. reboot 6. mergemaster -p This machine does have the Promise RAID-1 IDE controller that is built into a lot motherboards these days. Here is my dmesg output from this server on a successful boot: ar0: 39266MB [5005/255/63] subdisks: ad4: 39266MB [79780/16/63] at ata2-master UDMA100 ad6: 39266MB [79780/16/63] at ata3-master UDMA100 However, this test machine mimics how the web servers were setup, and they do not use /dev/ar, but instead use /dev/ad0: # cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/ad4s1b none swap sw 0 0 /dev/ad4s1a / ufs rw 1 1 /dev/ad4s1f /usr ufs rw 2 2 /dev/ad4s1e /var ufs rw 2 2 /dev/acd0c /cdrom cd9660 ro,noauto 0 0 proc /proc procfs rw 0 0 I am thinking that in 4.5-REL or newer (we are trying to upgrade to 4.8) that things might have changed? Again, /usr/src/UPDATING mentions some changes to the ATA code, but nothing specific to our configuration. Any ideas here? Following are the partition and disklabel information for /dev/ad4 and /dev/ar0: # fdisk /dev/ad4 ******* Working on device /dev/ad4 ******* parameters extracted from in-core disklabel are: cylinders=5005 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=5005 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 63, size 80405262 (39260 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: # disklabel -r ad4s1 # /dev/ad4s1c: type: ESDI disk: ad4s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 5004 sectors/unit: 80405262 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 204800 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 12*) b: 1056032 204800 swap # (Cyl. 12*- 78*) c: 80405262 0 unused 0 0 # (Cyl. 0 - 5004*) e: 40960 1260832 4.2BSD 1024 8192 16 # (Cyl. 78*- 81*) f: 79103470 1301792 4.2BSD 1024 8192 16 # (Cyl. 81*- 5004*) # fdisk /dev/ar0 ******* Working on device /dev/ar0 ******* parameters extracted from in-core disklabel are: cylinders=5005 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=5005 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 63, size 80405262 (39260 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: # disklabel -r ar0 # /dev/ar0c: type: ESDI disk: ad4s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 5004 sectors/unit: 80405262 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 204800 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 12*) b: 1056032 204800 swap # (Cyl. 12*- 78*) c: 80405262 0 unused 0 0 # (Cyl. 0 - 5004*) e: 40960 1260832 4.2BSD 1024 8192 16 # (Cyl. 78*- 81*) f: 79103470 1301792 4.2BSD 1024 8192 16 # (Cyl. 81*- 5004*) --- Dustin Puryear Puryear Information Technology, LLC Providing expertise in the management, integration, and security of Windows and UNIX systems, networks, and applications. From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 14:06:30 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA08B37B401; Mon, 7 Jul 2003 14:06:30 -0700 (PDT) Received: from lug.kamloops.net (lug2.kamloops.net [209.52.173.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id B539443FAF; Mon, 7 Jul 2003 14:06:29 -0700 (PDT) (envelope-from fcash@sd73.bc.ca) Received: from localhost ([127.0.0.1]) by lug.kamloops.net with esmtp (Exim 3.16 #1) id 19Ze7R-0004WJ-00; Mon, 07 Jul 2003 15:05:57 -0700 From: Freddie Cash Organization: School District 73 To: Dustin Puryear Date: Mon, 7 Jul 2003 13:59:36 -0700 User-Agent: KMail/1.5.2 References: <5.2.1.1.0.20030707155536.063a9d78@pop.netaddress.com> In-Reply-To: <5.2.1.1.0.20030707155536.063a9d78@pop.netaddress.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307071359.36798.fcash@sd73.bc.ca> cc: stable@freebsd.org cc: questions@freebsd.org Subject: Re: FreeBSD 4.4-REL to FreeBSD 4.8-STABLE upgrade problem. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: fcash@sd73.bc.ca List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 21:06:31 -0000 On July 7, 2003 01:57 pm, Dustin Puryear wrote: > I have a test server that is being used to test a 4.4-REL to > 4.8-STABLE upgrade, and I've found the system will no longer boot > unless I load a saved 4.4-REL kernel. The error I get is along the > lines of: > Mounting root from ufs:/dev/ad4s1a > Root mount failed: 16 > Per /usr/src/UPDATING there was a change in the ATA drive at 4.5-REL, > but it mentioned running mergemaster to create the new devices, and > according to /usr/src/Makefile I shouldn't do that until I get past > the current stage (which is where I am stuck): > (/usr/src/Makefile comments) > 1. cd /usr/src > 2. make buildworld > 3. make buildkernel > 4. make installkernel > 5. reboot > 6. mergemaster -p There's your problem. You should run "mergemaster -p" as step 2. The -p means "Pre-buildworld". -- Freddie Cash District HelpDesk / Network Admin fcash@sd73.bc.ca helpdesk@sd73.bc.ca (250) 374-0679 ext. 219 From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 14:23:13 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D54AD37B401; Mon, 7 Jul 2003 14:23:13 -0700 (PDT) Received: from lakemtao01.cox.net (lakemtao01.cox.net [68.1.17.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id B099743FCB; Mon, 7 Jul 2003 14:23:12 -0700 (PDT) (envelope-from dpuryear@usa.net) Received: from dpboxen.usa.net ([68.108.224.34]) by lakemtao01.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030707212310.DHYV8337.lakemtao01.cox.net@dpboxen.usa.net>; Mon, 7 Jul 2003 17:23:10 -0400 Message-Id: <5.2.1.1.0.20030707161332.03031948@pop.netaddress.com> X-Sender: dpuryear@pop.netaddress.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Mon, 07 Jul 2003 16:19:27 -0500 To: fcash@sd73.bc.ca From: Dustin Puryear In-Reply-To: <200307071359.36798.fcash@sd73.bc.ca> References: <5.2.1.1.0.20030707155536.063a9d78@pop.netaddress.com> <5.2.1.1.0.20030707155536.063a9d78@pop.netaddress.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: stable@freebsd.org cc: questions@freebsd.org Subject: Re: FreeBSD 4.4-REL to FreeBSD 4.8-STABLE upgrade problem. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 21:23:14 -0000 At 01:59 PM 7/7/2003 -0700, Freddie Cash wrote: > > (/usr/src/Makefile comments) > > 1. cd /usr/src > > 2. make buildworld > > 3. make buildkernel > > 4. make installkernel > > 5. reboot > > 6. mergemaster -p > >There's your problem. You should run "mergemaster -p" as step 2. The >-p means "Pre-buildworld". This was suggested on another list actually. Unfortunately, either you are wrong or the FreeBSD docs are wrong. In /usr/src/Makefile the steps are listed in the order I show above. Also, per the mergemaster manpage the -p option is used to update the "password database and recreate /etc/passwd." Ultimately, I think that this is an issue with the kernel recognizing the storage system, but I could be wrong! Please do correct me if I am. Quick reminder for others: The 4.4-REL kernel is able to mount / fine, but 4.8-STABLE is not. This may either be a symptom of another problem, or the immediate problem. Is this off-topic for freebsd-stable? --- Dustin Puryear Puryear Information Technology, LLC Providing expertise in the management, integration, and security of Windows and UNIX systems, networks, and applications. From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 14:53:23 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E5EF37B437; Mon, 7 Jul 2003 14:53:23 -0700 (PDT) Received: from lakemtao02.cox.net (lakemtao02.cox.net [68.1.17.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AEC443F3F; Mon, 7 Jul 2003 14:53:22 -0700 (PDT) (envelope-from dpuryear@usa.net) Received: from dpboxen.usa.net ([68.108.224.34]) by lakemtao02.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030707215320.JQEH24359.lakemtao02.cox.net@dpboxen.usa.net>; Mon, 7 Jul 2003 17:53:20 -0400 Message-Id: <5.2.1.1.0.20030707163654.03031948@pop.netaddress.com> X-Sender: dpuryear@pop.netaddress.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Mon, 07 Jul 2003 16:39:23 -0500 To: fcash@sd73.bc.ca From: Dustin Puryear In-Reply-To: <200307071427.54166.fcash@sd73.bc.ca> References: <5.2.1.1.0.20030707161332.03031948@pop.netaddress.com> <5.2.1.1.0.20030707155536.063a9d78@pop.netaddress.com> <5.2.1.1.0.20030707161332.03031948@pop.netaddress.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: stable@freebsd.org cc: questions@freebsd.org Subject: Re: FreeBSD 4.4-REL to FreeBSD 4.8-STABLE upgrade problem. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 21:53:24 -0000 At 02:27 PM 7/7/2003 -0700, Freddie Cash wrote: >On July 7, 2003 02:19 pm, you wrote: > From the man page for mergemaster: > -p Pre-buildworld mode. Compares only files known to be >essen- > tial to the success of {build|install}world, including > /etc/make.conf. > >There is a blurb near the top that mentions running pwd_mkdb with the -p >option to rebuild the master password file. I think this is what is >confusing you. My manpage must be outdated or just wrong then: # man mergemaster | grep -- -p the -p option to rebuild your password databases and recreate This is from a longer paragraph, and no mention is made of "Pre-buildworld mode". This may be indeed what is throwing me. There seems to also be an error in /usr/src/Makefile since it states that: # For individuals wanting to upgrade their sources (even if only a # delta of a few days): # # 1. `cd /usr/src' (or to the directory containing your source tree). # 2. `make buildworld' # 3. `make buildkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC). # 5. `reboot' (in single user mode: boot -s from the loader prompt). # 6. `mergemaster -p' # 7. `make installworld' # 8. `mergemaster' # 9. `reboot' Notice that there is no mention of mergemaster until step 6. This is a test system, but it's remote and I don't want to clobber it unnecessarily. --- Dustin Puryear Puryear Information Technology, LLC Providing expertise in the management, integration, and security of Windows and UNIX systems, networks, and applications. From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 15:12:03 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A60F37B401; Mon, 7 Jul 2003 15:12:03 -0700 (PDT) Received: from lakemtao02.cox.net (lakemtao02.cox.net [68.1.17.243]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D28F43FAF; Mon, 7 Jul 2003 15:12:02 -0700 (PDT) (envelope-from dpuryear@usa.net) Received: from dpboxen.usa.net ([68.108.224.34]) by lakemtao02.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030707221159.JVUZ24359.lakemtao02.cox.net@dpboxen.usa.net>; Mon, 7 Jul 2003 18:11:59 -0400 Message-Id: <5.2.1.1.0.20030707170451.065536c8@pop.netaddress.com> X-Sender: dpuryear@pop.netaddress.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Mon, 07 Jul 2003 17:07:39 -0500 To: fcash@sd73.bc.ca From: Dustin Puryear In-Reply-To: <200307071458.17762.fcash@sd73.bc.ca> References: <5.2.1.1.0.20030707163654.03031948@pop.netaddress.com> <5.2.1.1.0.20030707161332.03031948@pop.netaddress.com> <5.2.1.1.0.20030707163654.03031948@pop.netaddress.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: stable@freebsd.org cc: questions@freebsd.org Subject: Re: FreeBSD 4.4-REL to FreeBSD 4.8-STABLE upgrade problem. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 22:12:03 -0000 At 02:58 PM 7/7/2003 -0700, Freddie Cash wrote: >On July 7, 2003 02:39 pm, you wrote: > > At 02:27 PM 7/7/2003 -0700, Freddie Cash wrote: > > >On July 7, 2003 02:19 pm, you wrote: > > >There is a blurb near the top that mentions running pwd_mkdb with > > > the -p option to rebuild the master password file. I think this is > > > what is confusing you. > > > My manpage must be outdated or just wrong then: > > > # man mergemaster | grep -- -p > > the -p option to rebuild your password databases and recreate > >Read the begining of that sentence. I'll bet it is talking about >pwd_mkdb(8) and not mergemaster. Well crap. Still, my version doesn't mention anything about "Pre-buildworld mode" so the pie on my face is at least tasty. >Since you have already updated your source tree, read >/usr/src/usr.sbin/mergemaster/mergemaster.8 That is the man page for >/usr/src/usr.sbin/mergemaster/mergemaster.sh That will explain >everything, including when to run it using the -p parameter. That >would be pre-buildworld. Will do. > > Notice that there is no mention of mergemaster until step 6. > >The Makefile reads the same on my 4.8 system. However, that should >probably be updated, as every time I've seen a mention of mergemaster >-p on any of the mailing lists, it has always occured before the >buildworld. (And that's the advice I've been following since the -p >parameter was introduced.) Yes, updating the docs would be very helpful in situations.. oh, I don't know.. like this one. --- Dustin Puryear Puryear Information Technology, LLC Providing expertise in the management, integration, and security of Windows and UNIX systems, networks, and applications. From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 16:33:05 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3600937B401; Mon, 7 Jul 2003 16:33:04 -0700 (PDT) Received: from hub.org (hub.org [64.117.225.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87E9E43FAF; Mon, 7 Jul 2003 16:33:03 -0700 (PDT) (envelope-from scrappy@hub.org) Received: from hub.org (unknown [64.117.225.220]) by hub.org (Postfix) with ESMTP id 6B4505B9A12; Mon, 7 Jul 2003 20:32:58 -0300 (ADT) Date: Mon, 7 Jul 2003 20:32:58 -0300 (ADT) From: "Marc G. Fournier" To: Tim Robbins In-Reply-To: <20030707192527.A9706@dilbert.robbins.dropbear.id.au> Message-ID: <20030707203130.P9021@hub.org> References: <20030701155450.J67063@hub.org> <20030702073306.GA3324@HAL9000.homeunix.com> <20030703033117.GA7647@HAL9000.homeunix.com> <20030707080530.GA23029@HAL9000.homeunix.com> <20030707192527.A9706@dilbert.robbins.dropbear.id.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org cc: Ted Mittelstaedt Subject: Re: Okay, looks like I might have a *good* one here ... inode hang X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 23:33:05 -0000 'k, since this one sounds like it may be a painful one to fix, I'm doign the same thing using an nfs mount for now, which, unless I'm missing something, does the same thing with a but more net traffic ... ? the reason I am/was using nullfs was to get at the "top files" of the union mount for backup purposes ... On Mon, 7 Jul 2003, Tim Robbins wrote: > On Mon, Jul 07, 2003 at 01:05:30AM -0700, David Schultz wrote: > > > On Thu, Jul 03, 2003, Marc G. Fournier wrote: > > > > follow that one, too. Maybe the trail will simply lead back to > > > > unionfs... > > > > > > 'K, how about a loop? > > > > Heh...it's a deadlock between unionfs and nullfs. Sheesh. > > If unionfs is at fault here, I think I already know where > > the problem is, and it isn't easy to fix. But I'll have to > > look more carefully when I get a chance. > > nullfs on 4.x can probably deadlock in certain situations while attempting to > recycle vnodes; see null_vnops.c 1.63. This bug was made more obvious in > 5.x by null_vnops.c 1.51, but I'm pretty sure that the problem was still > there in earlier versions, but was just harder to trigger. > > There are a few questionable things in unionfs too. There might be a race in > union_inactive() (should it grab the vnode interlock before dropping > the vnode lock and call vgonel() instead of vgone()?), and the support for > locking stacks of vnodes seems to be #if 0'd out in union_lock(). > > > Tim > From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 21:46:22 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17F5737B401 for ; Mon, 7 Jul 2003 21:46:21 -0700 (PDT) Received: from paiol.terra.com.br (paiol.terra.com.br [200.176.3.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 362CA43F85 for ; Mon, 7 Jul 2003 21:46:20 -0700 (PDT) (envelope-from redbrick1@terra.com.br) Received: from canela.terra.com.br (canela.terra.com.br [200.176.3.79]) by paiol.terra.com.br (Postfix) with ESMTP id ED92284813F for ; Tue, 8 Jul 2003 01:46:18 -0300 (BRT) Received: from nargothrond (200-171-136-46.dsl.telesp.net.br [200.171.136.46]) (authenticated user redbrick1) by canela.terra.com.br (Postfix) with ESMTP id 73E0D224075 for ; Tue, 8 Jul 2003 01:46:18 -0300 (BRT) Date: Tue, 8 Jul 2003 00:03:52 -0300 From: redbrick To: freebsd-stable@freebsd.org Message-Id: <20030708000352.4883e841.redbrick1@terra.com.br> In-Reply-To: <20030706234642.F53667@hub.org> References: <20030705163119.4709fe81.redbrick1@terra.com.br> <20030706234642.F53667@hub.org> X-Mailer: Sylpheed version 0.7.4claws (GTK+ 1.2.10; i386-debian-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: FreeBSD Virtual Server X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 04:46:22 -0000 Flames aside, how do you implement your virtual server? You do it using jail or anything else? Reza a lenda que, em Sun, 6 Jul 2003 23:47:57 -0300 (ADT) do Condado, The Hermit Hacker , mais conhecido como o escritor, disse: > On Sun, 6 Jul 2003, Darren Henderson wrote: > > > On Sat, 5 Jul 2003, redbrick wrote: > > > > > I have been browsing for web hosting and I found some firms (one > > > of them is ) offering 'virtual server hosting > > > using FreeBSD'. They say that virtual server is different from > > > virtual host, for the first is a completely separated enviroment, > > > like a standalone server. > > > > Always read the small print. All of it. > > > > There is at least one outfit that actually tries to sell this > > kind of thing, shared hosting using jails, as a collocated UNIX > > server. > > We don't ... we advertise it purely as a virtual server / machine ... > full root is provided to the VM so that clients can operate it as if > it was its own machine, but we very clearly spell it out as *virtual* > ... > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to > "freebsd-stable-unsubscribe@freebsd.org" > > -- Feng Sian From owner-freebsd-stable@FreeBSD.ORG Mon Jul 7 22:49:40 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4367A37B401; Mon, 7 Jul 2003 22:49:40 -0700 (PDT) Received: from mail.freebsd-corp-net-guide.com (mail.freebsd-corp-net-guide.com [206.29.169.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B23F43F85; Mon, 7 Jul 2003 22:49:39 -0700 (PDT) (envelope-from tedm@toybox.placo.com) Received: from tedsbox (nat-rtr.freebsd-corp-net-guide.com [206.29.168.154]) h685nbF47429; Mon, 7 Jul 2003 22:49:37 -0700 (PDT) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "Tim Robbins" , "Marc G. Fournier" , Date: Mon, 7 Jul 2003 22:50:39 -0700 Message-ID: <000f01c34514$dc260ed0$1401a8c0@tedsbox> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <20030707192527.A9706@dilbert.robbins.dropbear.id.au> Importance: Normal Subject: RE: Okay, looks like I might have a *good* one here ... inode hang X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 05:49:40 -0000 Mark, Don't forget to attach this to the original PR's that you filed. Ted -----Original Message----- From: Tim Robbins [mailto:tjr@FreeBSD.ORG] Sent: Monday, July 07, 2003 2:25 AM To: Marc G. Fournier; freebsd-stable@FreeBSD.ORG; Ted Mittelstaedt Subject: Re: Okay, looks like I might have a *good* one here ... inode hang On Mon, Jul 07, 2003 at 01:05:30AM -0700, David Schultz wrote: > On Thu, Jul 03, 2003, Marc G. Fournier wrote: > > > follow that one, too. Maybe the trail will simply lead back to > > > unionfs... > > > > 'K, how about a loop? > > Heh...it's a deadlock between unionfs and nullfs. Sheesh. > If unionfs is at fault here, I think I already know where > the problem is, and it isn't easy to fix. But I'll have to > look more carefully when I get a chance. nullfs on 4.x can probably deadlock in certain situations while attempting to recycle vnodes; see null_vnops.c 1.63. This bug was made more obvious in 5.x by null_vnops.c 1.51, but I'm pretty sure that the problem was still there in earlier versions, but was just harder to trigger. There are a few questionable things in unionfs too. There might be a race in union_inactive() (should it grab the vnode interlock before dropping the vnode lock and call vgonel() instead of vgone()?), and the support for locking stacks of vnodes seems to be #if 0'd out in union_lock(). Tim From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 09:40:04 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E76AD37B401; Tue, 8 Jul 2003 09:40:03 -0700 (PDT) Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id F314243F93; Tue, 8 Jul 2003 09:40:02 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP (SSL) id MUA74016; Tue, 08 Jul 2003 09:40:01 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id 473895D08; Tue, 8 Jul 2003 09:40:00 -0700 (PDT) To: Dustin Puryear In-Reply-To: Message from Dustin Puryear <5.2.1.1.0.20030707170451.065536c8@pop.netaddress.com> Date: Tue, 08 Jul 2003 09:40:00 -0700 From: "Kevin Oberman" Message-Id: <20030708164000.473895D08@ptavv.es.net> cc: stable@freebsd.org cc: questions@freebsd.org cc: fcash@sd73.bc.ca Subject: Re: FreeBSD 4.4-REL to FreeBSD 4.8-STABLE upgrade problem. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 16:40:04 -0000 > Date: Mon, 07 Jul 2003 17:07:39 -0500 > From: Dustin Puryear > Sender: owner-freebsd-stable@freebsd.org > > At 02:58 PM 7/7/2003 -0700, Freddie Cash wrote: > >On July 7, 2003 02:39 pm, you wrote: > > > At 02:27 PM 7/7/2003 -0700, Freddie Cash wrote: > > > >On July 7, 2003 02:19 pm, you wrote: > > > >There is a blurb near the top that mentions running pwd_mkdb with > > > > the -p option to rebuild the master password file. I think this is > > > > what is confusing you. > > > > > My manpage must be outdated or just wrong then: > > > > > # man mergemaster | grep -- -p > > > the -p option to rebuild your password databases and recreate > > > >Read the begining of that sentence. I'll bet it is talking about > >pwd_mkdb(8) and not mergemaster. > > Well crap. Still, my version doesn't mention anything about "Pre-buildworld > mode" so the pie on my face is at least tasty. > > >Since you have already updated your source tree, read > >/usr/src/usr.sbin/mergemaster/mergemaster.8 That is the man page for > >/usr/src/usr.sbin/mergemaster/mergemaster.sh That will explain > >everything, including when to run it using the -p parameter. That > >would be pre-buildworld. > > Will do. > > > > Notice that there is no mention of mergemaster until step 6. > > > >The Makefile reads the same on my 4.8 system. However, that should > >probably be updated, as every time I've seen a mention of mergemaster > >-p on any of the mailing lists, it has always occured before the > >buildworld. (And that's the advice I've been following since the -p > >parameter was introduced.) > > Yes, updating the docs would be very helpful in situations.. oh, I don't > know.. like this one. If you look at the source code (or were here when the -p option was added to mergemaster, you would see that 'mergemaster -p' really just runs mergemaster on a couple of files which could block installworld from working if not already updated. At this time (in either STABLE or CURRENT) it makes absolutely no difference whether it is run before or after build of the world and kernel. It must be run before installworld, although it only makes a difference on limited occasions. (4.4 to 4.8 would be such a case.) FWIW, the only files currently merged when the -p option is present are the group and password files, but this list is subject to change if needed. It is intended to be run before buildworld so that other files can be included down the road if they are needed. But, at this time, running it before installworld is all that is required. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 10:20:27 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7869837B401 for ; Tue, 8 Jul 2003 10:20:27 -0700 (PDT) Received: from mobile.hub.org (u134n133.eastlink.ca [24.224.134.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6E9743F93 for ; Tue, 8 Jul 2003 10:20:25 -0700 (PDT) (envelope-from scrappy@hub.org) Received: by mobile.hub.org (Postfix, from userid 1001) id 7E6504EB; Tue, 8 Jul 2003 14:20:24 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mobile.hub.org (Postfix) with ESMTP id 73F9A4A3; Tue, 8 Jul 2003 14:20:24 -0300 (ADT) Date: Tue, 8 Jul 2003 14:20:24 -0300 (ADT) From: The Hermit Hacker To: redbrick In-Reply-To: <20030708000352.4883e841.redbrick1@terra.com.br> Message-ID: <20030708141958.V6266@hub.org> References: <20030705163119.4709fe81.redbrick1@terra.com.br> <20030706234642.F53667@hub.org> <20030708000352.4883e841.redbrick1@terra.com.br> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD Virtual Server X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 17:20:27 -0000 On Tue, 8 Jul 2003, redbrick wrote: > > Flames aside, how do you implement your virtual server? You do it using > jail or anything else? purely a jail environment, full root access providd to the client, and unionfs used to share common applications ... > > Reza a lenda que, em Sun, 6 Jul 2003 23:47:57 -0300 (ADT) do Condado, > The Hermit Hacker , mais conhecido como o escritor, > disse: > > > On Sun, 6 Jul 2003, Darren Henderson wrote: > > > > > On Sat, 5 Jul 2003, redbrick wrote: > > > > > > > I have been browsing for web hosting and I found some firms (one > > > > of them is ) offering 'virtual server hosting > > > > using FreeBSD'. They say that virtual server is different from > > > > virtual host, for the first is a completely separated enviroment, > > > > like a standalone server. > > > > > > Always read the small print. All of it. > > > > > > There is at least one outfit that actually tries to sell this > > > kind of thing, shared hosting using jails, as a collocated UNIX > > > server. > > > > We don't ... we advertise it purely as a virtual server / machine ... > > full root is provided to the VM so that clients can operate it as if > > it was its own machine, but we very clearly spell it out as *virtual* > > ... > > > > _______________________________________________ > > freebsd-stable@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to > > "freebsd-stable-unsubscribe@freebsd.org" > > > > > > > -- > Feng Sian > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 13:01:05 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB20037B401 for ; Tue, 8 Jul 2003 13:01:05 -0700 (PDT) Received: from loop.cnt.org (mailbox.cnt.org [68.20.235.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B36F43F93 for ; Tue, 8 Jul 2003 13:01:05 -0700 (PDT) (envelope-from paul@mailbox.cnt.org) Received: from loop.cnt.org (localhost.cnt.org [127.0.0.1]) by loop.cnt.org (8.12.3/8.12.3) with ESMTP id h68K14vC023600 for ; Tue, 8 Jul 2003 15:01:04 -0500 (CDT) (envelope-from paul@mailbox.cnt.org) X-Authentication-Warning: loop.cnt.org: Host localhost.cnt.org [127.0.0.1] claimed to be loop.cnt.org Received: (from paul@localhost) by loop.cnt.org (8.12.3/8.12.3/Submit) id h68K14eN023599 for freebsd-stable@freebsd.org; Tue, 8 Jul 2003 15:01:04 -0500 (CDT) (envelope-from paul) Date: Tue, 8 Jul 2003 15:01:04 -0500 From: Paul Smith To: freebsd-stable@freebsd.org Message-ID: <20030708200104.GA66624@cnt.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 20:01:05 -0000 Greetings, Apologies if this is not the appropriate list, but my questions are about best practices in maintaining production servers (so I believe I can justify a post in -stable, short of a -release list :) I maintain a modest installation of 6 FreeBSD servers. They're CVSUP'd to RELENG_4_8 (I make buildworld on each individually) and I portupgrade ports as necessary. In an attempt to mature and harden this installation, I'm wondering what is the best approach for keeping production servers patched and with the latest ports. I know that compiling everything on each box is poor security practice and a unnecessary drain on resources. But I'm confused as to how to go about compiling world and the ports on a separate machine and how to then distribute to the production servers. Should I compile ports as packages? Which directories are appropriate for NFS export? Each machine is i386, so there should be any architecture issues, but each has its own hardware configuration, so how would I building a custom kernel work? My selfish goal is to reduce maintenance time and effort by centralizing patches and updates, and my overall goal is to enhance security and reliability on the production servers by removing compiling tools. Thanks in advance for any advice on this matter. Cheers, Paul -- Paul Smith Webmaster/Systems Administrator Center for Neighborhood Technology Chicago, Illinois USA From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 13:33:58 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7064237B401 for ; Tue, 8 Jul 2003 13:33:58 -0700 (PDT) Received: from out003.verizon.net (out003pub.verizon.net [206.46.170.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A3BB43FBD for ; Tue, 8 Jul 2003 13:33:57 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from mac.com ([141.149.47.46]) by out003.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030708203356.WQEJ4805.out003.verizon.net@mac.com>; Tue, 8 Jul 2003 15:33:56 -0500 Message-ID: <3F0B2AAE.5080708@mac.com> Date: Tue, 08 Jul 2003 16:33:50 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paul Smith References: <20030708200104.GA66624@cnt.org> In-Reply-To: <20030708200104.GA66624@cnt.org> X-Enigmail-Version: 0.76.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out003.verizon.net from [141.149.47.46] at Tue, 8 Jul 2003 15:33:53 -0500 cc: freebsd-stable@freebsd.org Subject: Re: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 20:33:58 -0000 Paul Smith wrote: > Apologies if this is not the appropriate list, but my questions are about > best practices in maintaining production servers (so I believe I can justify > a post in -stable, short of a -release list :) You ask good questions, regardless of where they were directed to. [ -questions or maybe -isp might have been a better choice. ] > I maintain a modest installation of 6 FreeBSD servers. They're CVSUP'd to > RELENG_4_8 (I make buildworld on each individually) and I portupgrade ports > as necessary. In an attempt to mature and harden this installation, I'm > wondering what is the best approach for keeping production servers patched > and with the latest ports. I know that compiling everything on each box is > poor security practice and a unnecessary drain on resources. But I'm confused > as to how to go about compiling world and the ports on a separate machine and > how to then distribute to the production servers. Should I compile ports as > packages? Which directories are appropriate for NFS export? Each machine is > i386, so there should be any architecture issues, but each has its own > hardware configuration, so how would I building a custom kernel work? If you do a "make package" for each port that you install, you can copy of using network filesharing (NFS, Samba, etc) to distribute the /usr/ports/packages directory. Create that directory if it doesn't exist, and "make package" will save the .tgz there rather than under each individual port directory. Beyond that, you should consider sharing /usr/src and /usr/obj from your buildserver onto the other machines for performing upgrades. You can copy all of your kernel config files to the build server, and do: make buildkernel KERNCONF=machine1 make buildkernel KERNCONF=machine2 ...etc, for each distinct kernel config file you have. You then "make installkernel" with the right KERNCONF as appropriate for the machine you're upgrading. While you're there, you can compare and possibly merge several individual config files into one that appropriate for most or all of your hardware. -- -Chuck From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 13:41:20 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5167337B401 for ; Tue, 8 Jul 2003 13:41:20 -0700 (PDT) Received: from web11604.mail.yahoo.com (web11604.mail.yahoo.com [216.136.172.56]) by mx1.FreeBSD.org (Postfix) with SMTP id D728A43FCB for ; Tue, 8 Jul 2003 13:41:19 -0700 (PDT) (envelope-from holtor@yahoo.com) Message-ID: <20030708204119.35355.qmail@web11604.mail.yahoo.com> Received: from [67.85.44.127] by web11604.mail.yahoo.com via HTTP; Tue, 08 Jul 2003 13:41:19 PDT Date: Tue, 8 Jul 2003 13:41:19 -0700 (PDT) From: Holt Grendal To: stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Disk Controller Support X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 20:41:20 -0000 Hello! Does the latest 4.8-stable support the SiS 648 disk controller? I see its not listed in the hardware document for 4.8-release but I am hoping support has since been added in. I do see its supported in 5.x but I don't wish to use that version yet. Does any one know? Thanks Holt __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 13:42:13 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F12637B401 for ; Tue, 8 Jul 2003 13:42:13 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4712443F93 for ; Tue, 8 Jul 2003 13:42:12 -0700 (PDT) (envelope-from freebsd-stable@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19ZzGT-0007lo-00 for ; Tue, 08 Jul 2003 22:40:41 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19ZzFw-0007kB-00 for ; Tue, 08 Jul 2003 22:40:08 +0200 From: Samuel Tardieu Date: Tue, 08 Jul 2003 22:40:35 +0200 Organization: Avian Carrier & Friends Lines: 24 Message-ID: <877k6swy4c.fsf@inf.enst.fr> References: <20030708200104.GA66624@cnt.org> <3F0B2AAE.5080708@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@main.gmane.org Mail-Copies-To: sam@rfc1149.net User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.5 (cauliflower, i386--freebsd) Cancel-Lock: sha1:SqkBIAjETmBC/L9CnV7urKpwXV4= Sender: news Subject: Re: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 20:42:13 -0000 >>>>> "Chuck" == Chuck Swiger writes: Chuck> Beyond that, you should consider sharing /usr/src and /usr/obj Chuck> from your buildserver onto the other machines for performing Chuck> upgrades. You can copy all of your kernel config files to the Chuck> build server, and do: Chuck> make buildkernel KERNCONF=machine1 Chuck> make buildkernel KERNCONF=machine2 Chuck> ...etc, for each distinct kernel config file you have. Even better: make buildkernel KERNCONF="machine1 machine2 ..." Typically, in the server's /etc/make.conf, use: KERNCONF="SERVER CLIENT1 CLIENT2 CLIENT3 ..." A buildkernel will make all of them and a installkernel will install only the first one (SERVER). Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 13:49:59 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBF6E37B401 for ; Tue, 8 Jul 2003 13:49:59 -0700 (PDT) Received: from dsl-mail.kamp.net (mail.kamp-dsl.de [195.62.99.42]) by mx1.FreeBSD.org (Postfix) with SMTP id 1946143F3F for ; Tue, 8 Jul 2003 13:49:58 -0700 (PDT) (envelope-from me@farid-hajji.de) Received: (qmail 8459 invoked by uid 505); 8 Jul 2003 20:50:03 -0000 Received: from me@farid-hajji.de by dsl-mail by uid 502 with qmail-scanner-1.14 (spamassassin: 2.43. Clear:. Processed in 0.246221 secs); 08 Jul 2003 20:50:03 -0000 Received: from unknown (HELO reverse-213-146-116-200.dialin.kamp-dsl.de) (213.146.116.200) by dsl-mail.kamp.net with SMTP; 8 Jul 2003 20:50:03 -0000 From: Farid Hajji To: Chuck Swiger Date: Tue, 8 Jul 2003 22:50:03 +0200 User-Agent: KMail/1.5.1 References: <20030708200104.GA66624@cnt.org> <3F0B2AAE.5080708@mac.com> In-Reply-To: <3F0B2AAE.5080708@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307082250.03189.me@farid-hajji.de> cc: paul@cnt.org cc: freebsd-stable@freebsd.org Subject: Re: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: me@farid-hajji.de List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 20:50:00 -0000 > If you do a "make package" for each port that you install, you can copy of > using network filesharing (NFS, Samba, etc) to distribute the > /usr/ports/packages directory. Create that directory if it doesn't exist, > and "make package" will save the .tgz there rather than under each > individual port directory. Beware of ports that try to detect the CPU while compiling. mplayer (IIRC) or some CPU intensive ports _may_ detect a P4 on the compling machine and use it, so the binary may not work on vanilla i586s. /etc/make.conf is your friend. -- Farid Hajji. http://www.farid-hajji.net/address.html From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 14:05:14 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5DDC37B401 for ; Tue, 8 Jul 2003 14:05:14 -0700 (PDT) Received: from loop.cnt.org (mailbox.cnt.org [68.20.235.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31EF143FCB for ; Tue, 8 Jul 2003 14:05:14 -0700 (PDT) (envelope-from paul@mailbox.cnt.org) Received: from loop.cnt.org (localhost.cnt.org [127.0.0.1]) by loop.cnt.org (8.12.3/8.12.3) with ESMTP id h68L5CvC024764; Tue, 8 Jul 2003 16:05:12 -0500 (CDT) (envelope-from paul@mailbox.cnt.org) X-Authentication-Warning: loop.cnt.org: Host localhost.cnt.org [127.0.0.1] claimed to be loop.cnt.org Received: (from paul@localhost) by loop.cnt.org (8.12.3/8.12.3/Submit) id h68L5CFZ024763; Tue, 8 Jul 2003 16:05:12 -0500 (CDT) (envelope-from paul) Date: Tue, 8 Jul 2003 16:05:12 -0500 From: Paul Smith To: Farid Hajji Message-ID: <20030708210511.GF66624@cnt.org> References: <20030708200104.GA66624@cnt.org> <3F0B2AAE.5080708@mac.com> <200307082250.03189.me@farid-hajji.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200307082250.03189.me@farid-hajji.de> User-Agent: Mutt/1.4i cc: freebsd-stable@freebsd.org Subject: Re: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 21:05:15 -0000 Farid Hajji wrote on 08/Jul/03 at 3:50 PM: > > If you do a "make package" for each port that you install, you can copy of > > using network filesharing (NFS, Samba, etc) to distribute the > > /usr/ports/packages directory. Create that directory if it doesn't exist, > > and "make package" will save the .tgz there rather than under each > > individual port directory. Is there a way to take advantage of the portupgrade suite when it comes to building packages? I.e., is there a "make package" equivalent in portupgrade? I would imagine portupgrade would make packages of any dependicies as well, no? -- Paul Smith Webmaster/Systems Administrator Center for Neighborhood Technology Chicago, Illinois USA From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 14:18:35 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A57B037B401 for ; Tue, 8 Jul 2003 14:18:35 -0700 (PDT) Received: from out005.verizon.net (out005pub.verizon.net [206.46.170.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7556943F85 for ; Tue, 8 Jul 2003 14:18:34 -0700 (PDT) (envelope-from cswiger@mac.com) Received: from mac.com ([141.149.47.46]) by out005.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030708211833.VFOX20032.out005.verizon.net@mac.com>; Tue, 8 Jul 2003 16:18:33 -0500 Message-ID: <3F0B3526.8050903@mac.com> Date: Tue, 08 Jul 2003 17:18:30 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paul Smith References: <20030708200104.GA66624@cnt.org> <3F0B2AAE.5080708@mac.com> <200307082250.03189.me@farid-hajji.de> <20030708210511.GF66624@cnt.org> In-Reply-To: <20030708210511.GF66624@cnt.org> X-Enigmail-Version: 0.76.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out005.verizon.net from [141.149.47.46] at Tue, 8 Jul 2003 16:18:33 -0500 cc: freebsd-stable@freebsd.org Subject: Re: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 21:18:36 -0000 Paul Smith wrote: [ ... ] > Is there a way to take advantage of the portupgrade suite when it comes to > building packages? I.e., is there a "make package" equivalent in portupgrade? > I would imagine portupgrade would make packages of any dependicies as well, > no? Exactly; use the "-p" option to portupgrade: -p --package Build a package when each specified port is installed or upgraded. If a package is upgraded and its dependent packages are given from the com- mand line (including the case where -r is speci- fied), build packages for them as well. -- -Chuck From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 14:43:46 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9F9E37B401 for ; Tue, 8 Jul 2003 14:43:46 -0700 (PDT) Received: from postal3.es.net (postal3.es.net [198.128.3.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id 387BF43F85 for ; Tue, 8 Jul 2003 14:43:46 -0700 (PDT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal3.es.net (Postal Node 3) with ESMTP (SSL) id MUA74016; Tue, 08 Jul 2003 14:43:44 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id A6BA45D07; Tue, 8 Jul 2003 14:43:43 -0700 (PDT) To: me@farid-hajji.de In-Reply-To: Message from Farid Hajji <200307082250.03189.me@farid-hajji.de> Date: Tue, 08 Jul 2003 14:43:43 -0700 From: "Kevin Oberman" Message-Id: <20030708214343.A6BA45D07@ptavv.es.net> cc: freebsd-stable@freebsd.org cc: paul@cnt.org Subject: Re: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 21:43:47 -0000 > From: Farid Hajji > Date: Tue, 8 Jul 2003 22:50:03 +0200 > Sender: owner-freebsd-stable@freebsd.org > > > If you do a "make package" for each port that you install, you can copy of > > using network filesharing (NFS, Samba, etc) to distribute the > > /usr/ports/packages directory. Create that directory if it doesn't exist, > > and "make package" will save the .tgz there rather than under each > > individual port directory. > > Beware of ports that try to detect the CPU while compiling. > mplayer (IIRC) or some CPU intensive ports _may_ detect > a P4 on the compling machine and use it, so the binary > may not work on vanilla i586s. /etc/make.conf is your friend. If the port is done correctly (and it likely is for the package builder to work correctly), it will turn off such features. The mplayer port does exactly this. You need to build with "WITHOUT_RUNTIME_CPUDETECTION" for it to test your CPU type and build for it. By default, the port built will be CPU independent. Of course, this does impact performance a bit, so you might want to build packages for each type of CPU you use. :-( -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634 From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 16:35:27 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0584A37B401 for ; Tue, 8 Jul 2003 16:35:27 -0700 (PDT) Received: from ns1.itga.com.au (ns1.itga.com.au [202.53.40.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id B64EB43FA3 for ; Tue, 8 Jul 2003 16:35:25 -0700 (PDT) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by ns1.itga.com.au (8.12.9/8.12.9) with ESMTP id h68NZGUl048001; Wed, 9 Jul 2003 09:35:16 +1000 (EST) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (localhost [127.0.0.1]) by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id JAA29618; Wed, 9 Jul 2003 09:35:15 +1000 (EST) Message-Id: <200307082335.JAA29618@lightning.itga.com.au> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4 From: Gregory Bond To: Paul Smith In-reply-to: Your message of Tue, 08 Jul 2003 15:01:04 -0500. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 09 Jul 2003 09:35:15 +1000 Sender: gnb@itga.com.au cc: freebsd-stable@freebsd.org Subject: Re: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2003 23:35:27 -0000 Here's what we do: For the system: - A separate build box, spec'd no higher than the lowest production machine - keep a CVS repository on the build box - buildbox /etc/make.conf has KERNCONF="SERVER CLIENT1 CLIENT2..." - run make update / make buildworld / make buildkernel on the build box - Install kernel & world on the build box, run mergemaster, etc as documented - run the build box for a couple of days (rebuilding ports etc) to check it out - NFS mount /usr/src and /usr/obj readonly on each client - client /etc/make.conf has KERNCONF=CLIENTn - installkernel / installworld / mergemaster on the client in the normal way For the ports: - use portupgrade on build box and clients - build box has the union of all the client package sets installed on it - build box does "portupgrade -p" to build packages - client boxes NFS mount /usr/ports/ (including /usr/ports/packages) (can also do it with a local CVSup'd /usr/ports and using FTP to the build box to get the packages, but that's harder to get right.) - clients run portupgrade -PP to use the packages only This works well enough for us with a similar number of servers. From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 18:29:46 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7114437B401 for ; Tue, 8 Jul 2003 18:29:46 -0700 (PDT) Received: from loop.cnt.org (mailbox.cnt.org [68.20.235.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4296A43F3F for ; Tue, 8 Jul 2003 18:29:45 -0700 (PDT) (envelope-from paul@mailbox.cnt.org) Received: from loop.cnt.org (localhost.cnt.org [127.0.0.1]) by loop.cnt.org (8.12.3/8.12.3) with ESMTP id h691ThvC027321; Tue, 8 Jul 2003 20:29:43 -0500 (CDT) (envelope-from paul@mailbox.cnt.org) X-Authentication-Warning: loop.cnt.org: Host localhost.cnt.org [127.0.0.1] claimed to be loop.cnt.org Received: (from paul@localhost) by loop.cnt.org (8.12.3/8.12.3/Submit) id h691ThTx027320; Tue, 8 Jul 2003 20:29:43 -0500 (CDT) (envelope-from paul) Date: Tue, 8 Jul 2003 20:29:43 -0500 From: Paul Smith To: Gregory Bond Message-ID: <20030709012942.GJ66624@cnt.org> References: <200307082335.JAA29618@lightning.itga.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200307082335.JAA29618@lightning.itga.com.au> User-Agent: Mutt/1.4i cc: freebsd-stable@freebsd.org Subject: Re: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 01:29:46 -0000 Gregory Bond wrote on 08/Jul/03 at 6:35 PM: > Here's what we do: > > For the system: > > - A separate build box, spec'd no higher than the lowest production machine > - keep a CVS repository on the build box > - buildbox /etc/make.conf has KERNCONF="SERVER CLIENT1 CLIENT2..." > - run make update / make buildworld / make buildkernel on the build box > - Install kernel & world on the build box, run mergemaster, etc as documented > - run the build box for a couple of days (rebuilding ports etc) to check it > out > - NFS mount /usr/src and /usr/obj readonly on each client > - client /etc/make.conf has KERNCONF=CLIENTn > - installkernel / installworld / mergemaster on the client in the normal way > > For the ports: > > - use portupgrade on build box and clients > - build box has the union of all the client package sets installed on it > - build box does "portupgrade -p" to build packages > - client boxes NFS mount /usr/ports/ (including /usr/ports/packages) > (can also do it with a local CVSup'd /usr/ports and using FTP to > the build box to get the packages, but that's harder to get right.) > - clients run portupgrade -PP to use the packages only > > This works well enough for us with a similar number of servers. Say a system like this were put into place to support existing production servers. What's the cleanest/most elegant/least destablizing way to remove the compiler tools on those machines? -- Paul Smith Webmaster/Systems Administrator Center for Neighborhood Technology Chicago, Illinois USA From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 19:29:31 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1A3F37B401 for ; Tue, 8 Jul 2003 19:29:31 -0700 (PDT) Received: from ns1.itga.com.au (ns1.itga.com.au [202.53.40.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71FAA43FA3 for ; Tue, 8 Jul 2003 19:29:30 -0700 (PDT) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (lightning.itga.com.au [192.168.71.20]) by ns1.itga.com.au (8.12.9/8.12.9) with ESMTP id h692TPUl049027; Wed, 9 Jul 2003 12:29:25 +1000 (EST) (envelope-from gnb@itga.com.au) Received: from lightning.itga.com.au (localhost [127.0.0.1]) by lightning.itga.com.au (8.9.3/8.9.3) with ESMTP id MAA09700; Wed, 9 Jul 2003 12:29:21 +1000 (EST) Message-Id: <200307090229.MAA09700@lightning.itga.com.au> X-Mailer: exmh version 2.4 05/15/2001 with nmh-1.0.4 From: Gregory Bond To: Paul Smith In-reply-to: Your message of Tue, 08 Jul 2003 20:29:43 -0500. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 09 Jul 2003 12:29:21 +1000 Sender: gnb@itga.com.au cc: freebsd-stable@freebsd.org Subject: Re: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 02:29:32 -0000 paul@cnt.org said: > Say a system like this were put into place to support existing > production servers. What's the cleanest/most elegant/least > destablizing way to remove the compiler tools on those machines? It's not supported out of the box as far as I can see. One approach is like this: - Add new variable NO_COMPILERS to /etc/make.conf on all the client machines - Go through the Makefiles and add code to drop the compiler tools if this variable is defined. Look for example at how NO_CVS is implemented in src/gnu/ usr.bin/Makefile and work from that. - You'll have to manually rm the tools from the existing client machines as this change won't delete old ones, it'll just not install new ones. - You might like to also define NOINSTALLLIB and NOPROFILE on the client make.conf to not install all the .a and _p.a libraries (see /usr/share/mk/ bsd.lib.mk). Even easier might be to maintain a list of files you don't want on the client machines and then rm them after every installworld (you could automate this in the /usr/src/Makefile). From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 01:29:57 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 351CD37B404 for ; Wed, 9 Jul 2003 01:29:57 -0700 (PDT) Received: from web42004.mail.yahoo.com (web42004.mail.yahoo.com [66.218.93.172]) by mx1.FreeBSD.org (Postfix) with SMTP id 3ABF243FDD for ; Wed, 9 Jul 2003 01:29:56 -0700 (PDT) (envelope-from embohoh@yahoo.com) Message-ID: <20030709082956.61490.qmail@web42004.mail.yahoo.com> Received: from [68.166.57.254] by web42004.mail.yahoo.com via HTTP; Wed, 09 Jul 2003 01:29:56 PDT Date: Wed, 9 Jul 2003 01:29:56 -0700 (PDT) From: bodo ah To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 08:29:57 -0000 Hello there, I have some problem with my filesystem. #df -h ... /dev/da0s1e 288M 265M -208.0K 100% /var ... #du -h /var .. 19M /var .. Does anybody has an idea what Im supposed to do? Thank you. --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 01:37:10 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BCC937B401 for ; Wed, 9 Jul 2003 01:37:10 -0700 (PDT) Received: from ece.cmu.edu (ECE.CMU.EDU [128.2.136.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D47F43FBD for ; Wed, 9 Jul 2003 01:37:09 -0700 (PDT) (envelope-from allbery@ece.cmu.edu) Received: from [10.9.204.87] (allbery.dsl.telerama.com [205.201.8.182]) (authenticated) by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h698b7e28932; Wed, 9 Jul 2003 04:37:07 -0400 (EDT) From: "Brandon S. Allbery KF8NH" To: bodo ah In-Reply-To: <20030709082956.61490.qmail@web42004.mail.yahoo.com> References: <20030709082956.61490.qmail@web42004.mail.yahoo.com> Content-Type: text/plain Message-Id: <1057739810.6430.3.camel@pyanfar.ece.cmu.edu> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 09 Jul 2003 04:36:50 -0400 Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 08:37:10 -0000 On Wed, 2003-07-09 at 04:29, bodo ah wrote: > #df -h > ... > /dev/da0s1e 288M 265M -208.0K 100% /var > ... > #du -h /var > .. > 19M /var > .. > > Does anybody has an idea what Im supposed to do? Install sysutils/lsof and use it to find what program has a deleted file open on /var; kill that program, and the space will be reclaimed. -- brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net system administrator [WAY too many hats] allbery@ece.cmu.edu electrical and computer engineering KF8NH carnegie mellon university ["better check the oblivious first" -ke6sls] From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 01:39:42 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7C5837B401 for ; Wed, 9 Jul 2003 01:39:42 -0700 (PDT) Received: from red.microlink.lt (office.microlink.lt [213.197.128.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F48A43F75 for ; Wed, 9 Jul 2003 01:39:41 -0700 (PDT) (envelope-from Domas.Mituzas@microlink.lt) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Wed, 9 Jul 2003 11:39:40 +0300 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: /var error Thread-Index: AcNF9HiVI92Heoz/SNiEa8MVHI84iQAAO4eg From: "Domas Mituzas" To: "bodo ah" cc: freebsd-stable@freebsd.org Subject: RE: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 08:39:43 -0000 Hi,=20 there are files that are unlinked and still opened ( rm'ing a file won't = erase it, unless it has no references). You can use lsof to find out = what large files are opened. Domas --- original message I have some problem with my filesystem. #df -h /dev/da0s1e 288M 265M -208.0K 100% /var #du -h /var 19M /var From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 01:55:19 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEB8837B401 for ; Wed, 9 Jul 2003 01:55:19 -0700 (PDT) Received: from solfertje.student.utwente.nl (solfertje.student.utwente.nl [130.89.167.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id F06C443FBF for ; Wed, 9 Jul 2003 01:55:18 -0700 (PDT) (envelope-from dalroi@solfertje.student.utwente.nl) Received: from solfertje.student.utwente.nl (failways.internal [10.236.150.2]) by solfertje.student.utwente.nl (Postfix) with ESMTP id E4627380; Wed, 9 Jul 2003 10:56:27 +0200 (CEST) Date: Wed, 9 Jul 2003 10:55:09 +0200 (CEST) From: Alban Hertroys To: me@farid-hajji.de In-Reply-To: <200307060029.00866.me@farid-hajji.de> MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Message-Id: <20030709085627.E4627380@solfertje.student.utwente.nl> cc: freebsd-stable@freebsd.org Subject: Re: Weird vmstat -s stats X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alban Hertroys List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 08:55:20 -0000 On 6 Jul, Farid Hajji punched keys in this particular order: >> > "vmstat -s" shows on one of my boxes (uptime: 26 days): >> > >> > -1597015721 total name lookups >> > cache hits (101% pos + 0% neg) system 0% per-directory >> > deletions 0%, falsehits 0%, toolong 0% >> > >> > Weird. I'll have to cvsup again and hope this has been fixed :) >> >> I'm not seeing it on an up-to-date -STABLE. Of course, that doesn't >> mean much, because it looks like a counter wraparound. > > Of course it's a wraparound. I was not able to reproduce this > condition on newer -STABLE. It takes some weeks of uptime > and heavy use to reach this stage, unless you happen to know > how to increment the counter with a test program (I don't > know how). > > Shouldn't such counters be at least 64 bit wide? > > -Farid. It's a counter. Does a negative name lookup count mean anything? Is it's signedness useful for anything? Does it really need 64 bits? Just a few questions, as I don't really know anything about the subject, but I happen to know quite a bit (a byte?) about C... -- Alban Hertroys http://solfertje.student.utwente.nl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No, it's not a bug! It's a six-legged feature! From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 01:59:53 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 991FB37B401 for ; Wed, 9 Jul 2003 01:59:53 -0700 (PDT) Received: from host185.dolanmedia.com (host185.dolanmedia.com [209.98.197.185]) by mx1.FreeBSD.org (Postfix) with SMTP id 8E8C843F75 for ; Wed, 9 Jul 2003 01:59:52 -0700 (PDT) (envelope-from greg.panula@dolaninformation.com) Received: (qmail 87569 invoked by uid 0); 9 Jul 2003 08:59:52 -0000 Received: from greg.panula@dolaninformation.com by proxy by uid 82 with qmail-scanner-1.16 ( Clear:. Processed in 1.749013 secs); 09 Jul 2003 08:59:52 -0000 X-Qmail-Scanner-Mail-From: greg.panula@dolaninformation.com via proxy X-Qmail-Scanner-Rcpt-To: embohoh@yahoo.com,freebsd-stable@freebsd.org X-Qmail-Scanner: 1.16 (Clear:. Processed in 1.749013 secs) Received: from unknown (HELO mail.dolanmedia.com) (10.1.1.23) by host185.dolanmedia.com with SMTP; 9 Jul 2003 08:59:49 -0000 Received: from dolaninformation.com (10.1.1.135) by mail.dolanmedia.com (Worldmail 1.3.167); 9 Jul 2003 03:59:49 -0500 Sender: pang@FreeBSD.ORG Message-ID: <3F0BD985.F6DFF5B9@dolaninformation.com> Date: Wed, 09 Jul 2003 03:59:49 -0500 From: Greg Panula Organization: Dolan Information Center Inc X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: bodo ah References: <20030709082956.61490.qmail@web42004.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: greg.panula@dolaninformation.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 08:59:53 -0000 bodo ah wrote: > > Hello there, > > I have some problem with my filesystem. > > #df -h > ... > /dev/da0s1e 288M 265M -208.0K 100% /var > ... > #du -h /var > .. > 19M /var > .. > > Does anybody has an idea what Im supposed to do? > you might try dropping into single user mode and then unmounting the volume and running fsck against it. kill 1 umount /var fsck /var 200 some odd megs is a fair amount to go missing. good luck. From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 08:21:36 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2116937B401 for ; Wed, 9 Jul 2003 08:21:36 -0700 (PDT) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 095D243F75 for ; Wed, 9 Jul 2003 08:21:35 -0700 (PDT) (envelope-from kirk@strauser.com) Received: from pooh.honeypot.net.strauser.com (kirk@pooh.honeypot.net [10.0.5.128]) by kanga.honeypot.net (8.12.9/8.12.9) with ESMTP id h69FMuEN001875 for ; Wed, 9 Jul 2003 10:23:00 -0500 (CDT) (envelope-from kirk@strauser.com) To: freebsd-stable@freebsd.org References: <20030709082956.61490.qmail@web42004.mail.yahoo.com> <1057739810.6430.3.camel@pyanfar.ece.cmu.edu> From: Kirk Strauser Date: Wed, 09 Jul 2003 10:22:56 -0500 In-Reply-To: <1057739810.6430.3.camel@pyanfar.ece.cmu.edu> (Brandon S. Allbery's message of "09 Jul 2003 04:36:50 -0400") Message-ID: <87fzlfhghb.fsf@pooh.honeypot.net> Lines: 10 X-Mailer: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Subject: Re: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 15:21:36 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable At 2003-07-09T08:36:50Z, "Brandon S. Allbery KF8NH" w= rites: > Install sysutils/lsof and use it to find what program has a deleted file > open on /var; kill that program, and the space will be reclaimed. I see that advice a lot. Is lsof inherently superior to `fstat' in the base system? =2D-=20 Kirk Strauser --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/DDNQ5sRg+Y0CpvERAp1bAJsH3OTbRziymj0DTmewrK2QKYZLYgCeOjq6 +N30tBmLZptmmlBHCjuUphA= =Co0I -----END PGP SIGNATURE----- --=-=-=-- From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 08:27:49 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D787C37B401 for ; Wed, 9 Jul 2003 08:27:49 -0700 (PDT) Received: from ece.cmu.edu (ECE.CMU.EDU [128.2.136.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2489B43F75 for ; Wed, 9 Jul 2003 08:27:47 -0700 (PDT) (envelope-from allbery@ece.cmu.edu) Received: from [128.2.136.40] (vnuwtwz5010qe389@PYANFAR.ECE.CMU.EDU [128.2.136.40]) (authenticated) by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h69FRde02387; Wed, 9 Jul 2003 11:27:39 -0400 (EDT) From: "Brandon S. Allbery KF8NH" To: Kirk Strauser In-Reply-To: <87fzlfhghb.fsf@pooh.honeypot.net> References: <20030709082956.61490.qmail@web42004.mail.yahoo.com> <1057739810.6430.3.camel@pyanfar.ece.cmu.edu> <87fzlfhghb.fsf@pooh.honeypot.net> Content-Type: text/plain Message-Id: <1057764457.1862.4.camel@pyanfar.ece.cmu.edu> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 09 Jul 2003 15:27:38 +0000 Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 15:27:50 -0000 On Wed, 2003-07-09 at 15:22, Kirk Strauser wrote: > At 2003-07-09T08:36:50Z, "Brandon S. Allbery KF8NH" writes: > > Install sysutils/lsof and use it to find what program has a deleted file > > open on /var; kill that program, and the space will be reclaimed. > > I see that advice a lot. Is lsof inherently superior to `fstat' in the base > system? fstat (everyone else who has this calls it "fuser", so I didn't even know it was there) doesn't seem to provide much information; lsof gives you enough to have a decent chance of identifying the file in question, which is problematic when it doesn't have a name.... -- brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net system administrator [WAY too many hats] allbery@ece.cmu.edu electrical and computer engineering KF8NH carnegie mellon university ["better check the oblivious first" -ke6sls] From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 08:33:59 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51F3B37B404 for ; Wed, 9 Jul 2003 08:33:58 -0700 (PDT) Received: from kanga.honeypot.net (kanga.honeypot.net [208.162.254.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 445B443FB1 for ; Wed, 9 Jul 2003 08:33:57 -0700 (PDT) (envelope-from kirk@strauser.com) Received: from pooh.honeypot.net.strauser.com (kirk@pooh.honeypot.net [10.0.5.128]) by kanga.honeypot.net (8.12.9/8.12.9) with ESMTP id h69FZAEN002497; Wed, 9 Jul 2003 10:35:11 -0500 (CDT) (envelope-from kirk@strauser.com) To: "Brandon S. Allbery KF8NH" References: <20030709082956.61490.qmail@web42004.mail.yahoo.com> <1057739810.6430.3.camel@pyanfar.ece.cmu.edu> <87fzlfhghb.fsf@pooh.honeypot.net> <1057764457.1862.4.camel@pyanfar.ece.cmu.edu> From: Kirk Strauser Date: Wed, 09 Jul 2003 10:35:12 -0500 In-Reply-To: <1057764457.1862.4.camel@pyanfar.ece.cmu.edu> (Brandon S. Allbery's message of "09 Jul 2003 15:27:38 +0000") Message-ID: <87adbnhfwv.fsf@pooh.honeypot.net> Lines: 11 X-Mailer: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" cc: freebsd-stable@freebsd.org Subject: Re: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 15:33:59 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable At 2003-07-09T15:27:38Z, "Brandon S. Allbery KF8NH" w= rites: > fstat (everyone else who has this calls it "fuser", so I didn't even know > it was there) doesn't seem to provide much information; lsof gives you > enough to have a decent chance of identifying the file in question, which > is problematic when it doesn't have a name.... OK, I can live with that. =2D-=20 Kirk Strauser --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/DDYw5sRg+Y0CpvERAmD+AJwInAvR3acz3oRjaPO6aLLG86Np5gCfVh70 Dl/jf8vogu82vrM2D4b0rOM= =gxBk -----END PGP SIGNATURE----- --=-=-=-- From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 09:41:57 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2836137B401 for ; Wed, 9 Jul 2003 09:41:57 -0700 (PDT) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19D8F43F3F for ; Wed, 9 Jul 2003 09:41:56 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Wed, 9 Jul 2003 17:41:48 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 19aHz0-0003Yb-00; Wed, 09 Jul 2003 17:39:54 +0100 Date: Wed, 9 Jul 2003 17:39:54 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Kirk Strauser In-Reply-To: <87fzlfhghb.fsf@pooh.honeypot.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant cc: freebsd-stable@freebsd.org Subject: Re: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 16:41:57 -0000 On Wed, 9 Jul 2003, Kirk Strauser wrote: > At 2003-07-09T08:36:50Z, "Brandon S. Allbery KF8NH" writes: > > > Install sysutils/lsof and use it to find what program has a deleted file > > open on /var; kill that program, and the space will be reclaimed. > > I see that advice a lot. Is lsof inherently superior to `fstat' in the base > system? You don't _need_ lsof, it just ties things neatly together for you. If you don't have lsof (for whatever reason), you can scan down /var looking for "missing" open inodes - eg, the script at http://ioctl.org/unix/scripts/openfiles does that. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ ...and then three milkmaids turned up (to the delight and delactation of the crowd). From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 09:52:58 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5761137B401 for ; Wed, 9 Jul 2003 09:52:58 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FB4F43F75 for ; Wed, 9 Jul 2003 09:52:57 -0700 (PDT) (envelope-from freebsd-stable@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19aIAr-0007ue-00 for ; Wed, 09 Jul 2003 18:52:09 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19aIAr-0007uV-00 for ; Wed, 09 Jul 2003 18:52:09 +0200 From: othermark Date: Wed, 9 Jul 2003 16:52:09 +0000 (UTC) Lines: 22 Message-ID: X-Complaints-To: usenet@main.gmane.org Keywords: lpt User-Agent: slrn/0.9.7.4 (FreeBSD) Sender: news Subject: lpt.c spams the log X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 16:52:58 -0000 I have an older machine at home with a ECP/EPP capable lpt port. On bootup I run `lptcontrol -e` to enable extended mode, however, I recieve thousands of these messages eminating from lpt.c:788 log(LOG_NOTICE, LPT_NAME "%d: advanced mode not avail, polling\n", unit); mainly because this statement is in a loop running thru the buffer. would it be appropriate to turn off extended mode at this point, or is there a reason to leave it on for the rest of the buffer? case EINVAL: /* advanced mode not avail */ log(LOG_NOTICE, LPT_NAME "%d: advanced mode not avail, polling\n", unit); break; default: return(err); --- Mark atkin901 at NOSPAM yahoo dot com (!wired)?(coffee++):(wired); From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 10:52:36 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEBCD37B401 for ; Wed, 9 Jul 2003 10:52:36 -0700 (PDT) Received: from fubar.adept.org (fubar.adept.org [63.147.172.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 631A743F93 for ; Wed, 9 Jul 2003 10:52:36 -0700 (PDT) (envelope-from mike@adept.org) Received: by fubar.adept.org (Postfix, from userid 1001) id 30A231524B; Wed, 9 Jul 2003 10:52:36 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by fubar.adept.org (Postfix) with ESMTP id 2CE7C15247 for ; Wed, 9 Jul 2003 10:52:36 -0700 (PDT) Date: Wed, 9 Jul 2003 10:52:36 -0700 (PDT) From: Mike Hoskins To: stable@freebsd.org In-Reply-To: <200307090229.MAA09700@lightning.itga.com.au> Message-ID: <20030709105010.O59356@fubar.adept.org> References: <200307090229.MAA09700@lightning.itga.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 17:52:37 -0000 On Wed, 9 Jul 2003, Gregory Bond wrote: > Even easier might be to maintain a list of files you don't want on the client > machines and then rm them after every installworld (you could automate this in > the /usr/src/Makefile). Great points, just wanted to add... You could also use config mgmt tools like cfengine, PIKT, etc. (see ports) to remove (and make sure they stay removed) these files on all servers. You would then get all the other benefits (and headaches) typically associated with config mgmt. (Syncing config files from a central source, notification of changes, etc.) We've had cfengine running for awhile... A bit of a learning curve, but it has proven to be worthwhile. -mrh -- From: "Spam Catcher" To: spam-catcher@adept.org Do NOT send email to the address listed above or you will be added to a blacklist! From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 11:05:36 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5839137B490 for ; Wed, 9 Jul 2003 11:05:36 -0700 (PDT) Received: from fubar.adept.org (fubar.adept.org [63.147.172.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id C359643F93 for ; Wed, 9 Jul 2003 11:05:35 -0700 (PDT) (envelope-from mike@adept.org) Received: by fubar.adept.org (Postfix, from userid 1001) id B80141524B; Wed, 9 Jul 2003 11:05:35 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by fubar.adept.org (Postfix) with ESMTP id B728115247 for ; Wed, 9 Jul 2003 11:05:35 -0700 (PDT) Date: Wed, 9 Jul 2003 11:05:35 -0700 (PDT) From: Mike Hoskins To: freebsd-stable@freebsd.org In-Reply-To: Message-ID: <20030709110208.G77890@fubar.adept.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 18:05:36 -0000 On Wed, 9 Jul 2003, Jan Grant wrote: > On Wed, 9 Jul 2003, Kirk Strauser wrote: > > At 2003-07-09T08:36:50Z, "Brandon S. Allbery KF8NH" writes: > > > Install sysutils/lsof and use it to find what program has a deleted file > > > open on /var; kill that program, and the space will be reclaimed. > > I see that advice a lot. Is lsof inherently superior to `fstat' in the base > > system? I think it's just Linux/SysV folks that are used to lsof. > You don't _need_ lsof, it just ties things neatly together for you. If > you don't have lsof (for whatever reason), you can scan down /var > looking for "missing" open inodes - eg, the script at > http://ioctl.org/unix/scripts/openfiles Couldn't you also just do something like, `find /var|xargs lsof` That seems to yield similar output as lsof for me... Granted, some columns are swapped around. -mrh -- From: "Spam Catcher" To: spam-catcher@adept.org Do NOT send email to the address listed above or you will be added to a blacklist! From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 11:10:19 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70C2437B47B for ; Wed, 9 Jul 2003 11:10:19 -0700 (PDT) Received: from ece.cmu.edu (ECE.CMU.EDU [128.2.136.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0C9543F3F for ; Wed, 9 Jul 2003 11:10:18 -0700 (PDT) (envelope-from allbery@ece.cmu.edu) Received: from [128.2.136.40] (zv4p3y50ieucc2xd@PYANFAR.ECE.CMU.EDU [128.2.136.40]) (authenticated) by ece.cmu.edu (8.11.0/8.10.2) with ESMTP id h69IAGe13891; Wed, 9 Jul 2003 14:10:16 -0400 (EDT) From: "Brandon S. Allbery KF8NH" To: Mike Hoskins In-Reply-To: <20030709110208.G77890@fubar.adept.org> References: <20030709110208.G77890@fubar.adept.org> Content-Type: text/plain Message-Id: <1057774214.1862.7.camel@pyanfar.ece.cmu.edu> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 09 Jul 2003 18:10:15 +0000 Content-Transfer-Encoding: 7bit cc: freebsd-stable@freebsd.org Subject: Re: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 18:10:19 -0000 On Wed, 2003-07-09 at 18:05, Mike Hoskins wrote: > I think it's just Linux/SysV folks that are used to lsof. Linux and System V have fuser; lsof used to be the BSD workaround for lack of it. -- brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net system administrator [WAY too many hats] allbery@ece.cmu.edu electrical and computer engineering KF8NH carnegie mellon university ["better check the oblivious first" -ke6sls] From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 11:11:59 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C07037B401 for ; Wed, 9 Jul 2003 11:11:59 -0700 (PDT) Received: from fubar.adept.org (fubar.adept.org [63.147.172.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2146043F85 for ; Wed, 9 Jul 2003 11:11:59 -0700 (PDT) (envelope-from mike@adept.org) Received: by fubar.adept.org (Postfix, from userid 1001) id 172661524B; Wed, 9 Jul 2003 11:11:59 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by fubar.adept.org (Postfix) with ESMTP id 1650715247 for ; Wed, 9 Jul 2003 11:11:59 -0700 (PDT) Date: Wed, 9 Jul 2003 11:11:59 -0700 (PDT) From: Mike Hoskins To: stable@freebsd.org In-Reply-To: <1057774214.1862.7.camel@pyanfar.ece.cmu.edu> Message-ID: <20030709111046.P77890@fubar.adept.org> References: <1057774214.1862.7.camel@pyanfar.ece.cmu.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 18:11:59 -0000 On Wed, 9 Jul 2003, Brandon S. Allbery KF8NH wrote: > On Wed, 2003-07-09 at 18:05, Mike Hoskins wrote: > > I think it's just Linux/SysV folks that are used to lsof. > Linux and System V have fuser; lsof used to be the BSD workaround for > lack of it. True, but every Linux admin I've seen uses lsof... The RPM's always installed. Ditto for the Solaris package. Maybe it's just the people I've worked with. ;) Whatever it is, I don't think it's so much lsof's superiority as it's seeming ubiquity. -mrh -- From: "Spam Catcher" To: spam-catcher@adept.org Do NOT send email to the address listed above or you will be added to a blacklist! From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 11:18:13 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73AD737B401 for ; Wed, 9 Jul 2003 11:18:13 -0700 (PDT) Received: from fubar.adept.org (fubar.adept.org [63.147.172.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B98843F75 for ; Wed, 9 Jul 2003 11:18:13 -0700 (PDT) (envelope-from mike@adept.org) Received: by fubar.adept.org (Postfix, from userid 1001) id 0EDD01524B; Wed, 9 Jul 2003 11:18:13 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by fubar.adept.org (Postfix) with ESMTP id 0B28115247 for ; Wed, 9 Jul 2003 11:18:13 -0700 (PDT) Date: Wed, 9 Jul 2003 11:18:13 -0700 (PDT) From: Mike Hoskins To: stable@freebsd.org In-Reply-To: <20030709110208.G77890@fubar.adept.org> Message-ID: <20030709111734.Y77890@fubar.adept.org> References: <20030709110208.G77890@fubar.adept.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 18:18:13 -0000 On Wed, 9 Jul 2003, Mike Hoskins wrote: > On Wed, 9 Jul 2003, Jan Grant wrote: > Couldn't you also just do something like, > `find /var|xargs lsof` Uh, of course I meant s/lsof/fstat. -mrh -- From: "Spam Catcher" To: spam-catcher@adept.org Do NOT send email to the address listed above or you will be added to a blacklist! From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 11:35:31 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A82BB37B40B for ; Wed, 9 Jul 2003 11:35:31 -0700 (PDT) Received: from fed1mtao04.cox.net (fed1mtao04.cox.net [68.6.19.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1650F43F3F for ; Wed, 9 Jul 2003 11:35:31 -0700 (PDT) (envelope-from keith@southo.net) Received: from southoq6ppwrt1 ([68.8.189.57]) by fed1mtao04.cox.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20030709183531.INQP18119.fed1mtao04.cox.net@southoq6ppwrt1>; Wed, 9 Jul 2003 14:35:31 -0400 From: "Southo" To: Date: Wed, 9 Jul 2003 11:33:23 -0700 Message-ID: <0c0901c34648$945b0ad0$f901a8c0@southoq6ppwrt1> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal In-Reply-To: <3F0BD985.F6DFF5B9@dolaninformation.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: freebsd-stable@freebsd.org Subject: RE: /var error X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 18:35:32 -0000 If you just cleaned out /var try creating a small file to re-sync the filesystem. I've had a similar issue in the past after freeing up space. Regards, Keith Baldwin Southo.net -----Original Message----- From: owner-freebsd-stable@freebsd.org [mailto:owner-freebsd-stable@freebsd.org] On Behalf Of Greg Panula Sent: Wednesday, July 09, 2003 2:00 AM To: bodo ah Cc: freebsd-stable@freebsd.org Subject: Re: /var error bodo ah wrote: > > Hello there, > > I have some problem with my filesystem. > > #df -h > ... > /dev/da0s1e 288M 265M -208.0K 100% /var > ... > #du -h /var > .. > 19M /var > .. > > Does anybody has an idea what Im supposed to do? > you might try dropping into single user mode and then unmounting the volume and running fsck against it. kill 1 umount /var fsck /var 200 some odd megs is a fair amount to go missing. good luck. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 11:39:27 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0604937B401 for ; Wed, 9 Jul 2003 11:39:27 -0700 (PDT) Received: from gs166.sp.cs.cmu.edu (GS166.SP.CS.CMU.EDU [128.2.205.169]) by mx1.FreeBSD.org (Postfix) with SMTP id 5404B43FA3 for ; Wed, 9 Jul 2003 11:39:26 -0700 (PDT) (envelope-from dpelleg@gs166.sp.cs.cmu.edu) Sender: dpelleg@gs166.sp.cs.cmu.edu To: Chuck Swiger References: <20030708200104.GA66624@cnt.org> <3F0B2AAE.5080708@mac.com> <20030708210511.GF66624@cnt.org> <3F0B3526.8050903@mac.com> From: Dan Pelleg Date: 09 Jul 2003 14:39:08 -0400 In-Reply-To: <3F0B3526.8050903@mac.com> Message-ID: Lines: 24 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: Paul Smith cc: freebsd-stable@freebsd.org Subject: Re: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 18:39:27 -0000 Chuck Swiger writes: > Paul Smith wrote: > [ ... ] > > Is there a way to take advantage of the portupgrade suite when it comes to > > building packages? I.e., is there a "make package" equivalent in portupgrade? > > I would imagine portupgrade would make packages of any dependicies as well, > > no? > > Exactly; use the "-p" option to portupgrade: > > -p > --package Build a package when each specified port is > installed or upgraded. If a package is upgraded > and its dependent packages are given from the com- > mand line (including the case where -r is speci- > fied), build packages for them as well. ...and on the installing side, use -PP. -- Dan Pelleg From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 11:50:57 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2424637B401 for ; Wed, 9 Jul 2003 11:50:57 -0700 (PDT) Received: from loop.cnt.org (mailbox.cnt.org [68.20.235.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 649EA43FA3 for ; Wed, 9 Jul 2003 11:50:56 -0700 (PDT) (envelope-from paul@mailbox.cnt.org) Received: from loop.cnt.org (localhost.cnt.org [127.0.0.1]) by loop.cnt.org (8.12.3/8.12.3) with ESMTP id h69IotvC036928; Wed, 9 Jul 2003 13:50:55 -0500 (CDT) (envelope-from paul@mailbox.cnt.org) X-Authentication-Warning: loop.cnt.org: Host localhost.cnt.org [127.0.0.1] claimed to be loop.cnt.org Received: (from paul@localhost) by loop.cnt.org (8.12.3/8.12.3/Submit) id h69IotKK036927; Wed, 9 Jul 2003 13:50:55 -0500 (CDT) (envelope-from paul) Date: Wed, 9 Jul 2003 13:50:55 -0500 From: Paul Smith To: Gregory Bond Message-ID: <20030709185054.GI32234@cnt.org> References: <200307082335.JAA29618@lightning.itga.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200307082335.JAA29618@lightning.itga.com.au> User-Agent: Mutt/1.4i cc: freebsd-stable@freebsd.org Subject: Re: Hardening production servers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 18:50:57 -0000 Gregory Bond wrote on 08/Jul/03 at 6:35 PM: > Here's what we do: > > For the system: > > - A separate build box, spec'd no higher than the lowest production machine > - keep a CVS repository on the build box > - buildbox /etc/make.conf has KERNCONF="SERVER CLIENT1 CLIENT2..." > - run make update / make buildworld / make buildkernel on the build box > - Install kernel & world on the build box, run mergemaster, etc as documented > - run the build box for a couple of days (rebuilding ports etc) to check it > out > - NFS mount /usr/src and /usr/obj readonly on each client > - client /etc/make.conf has KERNCONF=CLIENTn > - installkernel / installworld / mergemaster on the client in the normal way > > [ ... ] Just a quick addendum for anyone who's stepping through this, as I've just done :) - If you are going to 'make installworld' in single-user mode on the client, you need to '# sh /etc/netstart' after fsck, mount, swapon, etc. to be able to NFS mount the build server. May be obvious, but tripped me up a bit at first. -- Paul Smith Webmaster/Systems Administrator Center for Neighborhood Technology Chicago, Illinois USA From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 15:49:45 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A62B337B401 for ; Wed, 9 Jul 2003 15:49:45 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41E6243FAF for ; Wed, 9 Jul 2003 15:49:45 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 2E7BD72FE3; Wed, 9 Jul 2003 15:49:45 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 2B71172FDC; Wed, 9 Jul 2003 15:49:45 -0700 (PDT) Date: Wed, 9 Jul 2003 15:49:45 -0700 (PDT) From: Doug White To: Holt Grendal In-Reply-To: <20030708204119.35355.qmail@web11604.mail.yahoo.com> Message-ID: <20030709154918.X57363@carver.gumbysoft.com> References: <20030708204119.35355.qmail@web11604.mail.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: stable@freebsd.org Subject: Re: Disk Controller Support X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2003 22:49:46 -0000 On Tue, 8 Jul 2003, Holt Grendal wrote: > Does the latest 4.8-stable support the SiS 648 disk controller? > I see its not listed in the hardware document for 4.8-release but I am > hoping support has since been added in. > > I do see its supported in 5.x but I don't wish to use that version > yet. If I'm reading the CVS history correctly, no, that has not been backported. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org From owner-freebsd-stable@FreeBSD.ORG Wed Jul 9 19:59:05 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AECB937B401 for ; Wed, 9 Jul 2003 19:59:05 -0700 (PDT) Received: from nitrogen.nocdirect.com (nitrogen.nocdirect.com [66.227.56.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBE1043FA3 for ; Wed, 9 Jul 2003 19:59:04 -0700 (PDT) (envelope-from dpuryear@usa.net) Received: from adsl-35-229-95.msy.bellsouth.net ([67.35.229.95] helo=dpboxen.usa.net) by nitrogen.nocdirect.com with esmtp (Exim 3.36 #1) id 19aRdV-0005Da-00 for freebsd-stable@freebsd.org; Wed, 09 Jul 2003 21:58:21 -0500 Message-Id: <5.2.1.1.0.20030709215447.04e1c838@pop.netaddress.com> X-Sender: dpuryear@pop.netaddress.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Wed, 09 Jul 2003 21:54:55 -0500 To: freebsd-stable@freebsd.org From: Dustin Puryear Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - nitrogen.nocdirect.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - usa.net Subject: Re: [SAGE] FreeBSD 4.4-REL to FreeBSD 4.8-STABLE upgrade problem. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2003 02:59:06 -0000 Before reading below: I am considering a new install rather than an upgrade of our servers. However, now I just want to beat this problem. :) At 02:19 PM 7/8/2003 +0000, Phil Pennock wrote: >On 2003-07-08 at 14:09 +0000, Phil Pennock wrote: > > There was a fairly major update to the IDE disk device handlers which > > required new device nodes. Bringing in the new MAKEDEV script and > > running that to create the disk devices will probably let you boot on > > the new kernel and try to repair things from there. > >Okay, I'll go get more coffee after sending this. You noticed this one. >Sorry. > >There are two mergemaster steps, one which does the minimum needed to >let the rest of the build continue. Yes, I ran 'mergemaster -p' but found that it really only merged my passwd and group files with the new ones. Unless it did some other things behind the scenes then there is no fix here. >The issue is, as you note, the device stuff. As I said though, just >pull in MAKEDEV manually and run it. That will fix this. Either >"sh MAKEDEV all" or "sh MAKEDEV ad0" ... I keep thinking it's the device stuff myself, but even MAKEDEV didn't do the trick (interesting notes below this stuff): # cd /usr/src # make update # /usr/src/usr.sbin/mergemaster/mergemaster.sh -p # make buildworld # make buildkernel # make installkernel # cd /etc # mv MAKEDEV MAKEDEV.old # cp /usr/src/etc/MAKEDEV . # sh MAKEDEV all # reboot Upon reboot I get my favorite lines: blah, blah blah, blah ar0: ... [...] status: READY subdisks: 0 READY ad4: ... at ata2-master UDMA100 1 READY ad6: ... at ata3-master UDMA100 acd0: CDROM ... at ata0-master PIO4 Mounting root from ufs:/dev/ad4s1a Root mount failed: 16 Manual root filesystem specification: blah, blah Okay, so I reboot, but this time I load kernel.good and the system comes up fine with the old 4.4-REL kernel: ar0: ... [...] status: READY subdisks: ad4: ... at ata2-master UDMA100 ad6: ... at ata3-master UDMA100 acd0: CDROM ... at ata0-master using PIO4 Oh, and I found that this server has a HighPoint RAID controller which can do RAID 0, 1, 0+1, and JBOD. Looking in my array configuration I see that we have: Channel Mode Status Primary Master: Mirror (RAID 1) for array #0 UDMA 5 HDD0 Secondary Master: Mirror ... UDMA 5 Hidden I initially said that this was a Promise controller. Here is my /etc/fstab for /: /dev/ad4s1a / ufs rw 1 1 Following is /var/run/dmesg.log after booting from kernel.good: Copyright (c) 1992-2001 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 4.4-RELEASE #1: Sun Jun 30 21:23:39 CDT 2002 root@XXX:/usr/src/sys/compile/WWW Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 1494468860 Hz CPU: Pentium 4 (1494.47-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf07 Stepping = 7 Features=0x3febf9ff,ACC> real memory = 268369920 (262080K bytes) avail memory = 257404928 (251372K bytes) Preloaded elf kernel "kernel.good" at 0xc0375000. md0: Malloc disk Using $PIR table, 12 entries at 0xc00fdea0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 12 pcib2: at device 30.0 on pci0 pci2: on pcib2 rl0: port 0x9000-0x90ff mem 0xd9000000-0xd90000ff irq 11 at device 3.0 on pci2 rl0: Ethernet address: 00:50:ba:60:7b:83 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto atapci0: port 0xa400-0xa4ff,0xa000-0xa003,0x9c00-0x9c07,0x9800-0x9803,0x9400-0x9407 irq 10 at device 6.0 on pci2 ata2: at 0x9400 on atapci0 ata3: at 0x9c00 on atapci0 isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0xf000-0xf00f at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci1 ata1: at 0x170 irq 15 on atapci1 pci0: at 31.2 irq 11 pci0: (vendor=0x8086, dev=0x2443) at 31.3 irq 0 pci0: at 31.4 irq 11 pci0: (vendor=0x8086, dev=0x2445) at 31.5 irq 9 orm0: