From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 00:03:39 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 907A416A4DE for ; Sun, 27 Aug 2006 00:03:39 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id EB54943D46 for ; Sun, 27 Aug 2006 00:03:38 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 41612 invoked by uid 1001); 27 Aug 2006 00:03:27 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Sat, 26 Aug 2006 20:03:27 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17648.57678.873663.331638@bhuda.mired.org> Date: Sat, 26 Aug 2006 20:03:26 -0400 To: Peter Jeremy In-Reply-To: <20060826231042.GI16768@turion.vk2pj.dyndns.org> References: <17648.35923.366716.65517@bhuda.mired.org> <20060826180900.GA81762@troutmask.apl.washington.edu> <17648.38296.39807.492937@bhuda.mired.org> <20060826192418.GA82155@troutmask.apl.washington.edu> <17648.42078.268722.152591@bhuda.mired.org> <20060826231042.GI16768@turion.vk2pj.dyndns.org> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: hackers@freebsd.org, Steve Kargl Subject: Re: amd64 questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 00:03:39 -0000 In <20060826231042.GI16768@turion.vk2pj.dyndns.org>, Peter Jeremy typed: > >> > > > 3) openoffice doesn't build on amd64, and the i386 build doesn't run > >> > > > on amd64, so the recommended way to run openoffice on amd64 is to > >> > > > run the Linux build. > OOo2.0 should (and generally does) build. The entire OOo port seems > very fragile and occasionally breaks for no obvious reason. I don't > recall ever seeing the recommendation to use the Linux build, though. > If you have problems with building OOo on a reasonably up-to-date > -stable or -current amd64 system, with an up-to-date ports tree, I > suggest you take it up on freebsd-openoffice. Just to clarify, I came across a number of posts to the effect that "the Linux build is the only alternative for OOo at this point" while googling for information about it, and the build was failing for me. This was sort of the point of asking - to see if my from searching the web after the build failed for me was correct. It appears that one of the source tarballs for OOo was busted; a very recent change to the port deals with that. So I updated my ports tree, did "make distclean; make" to restart it. The version of OOo that it grabs is clearly newer than the old one; it deals with gethostbyname_r having been MFC'ed, which the sources I was trying previously didn't. All in all, the move from 5-STABLE/i368 to 6-STABLE/amd64 has been relatively painless. I think I had four things that didn't just build: three of them had relatively painless workarounds, and OOo. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 00:13:05 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8015916A4E1 for ; Sun, 27 Aug 2006 00:13:05 +0000 (UTC) (envelope-from erdgeist@erdgeist.org) Received: from elektropost.org (elektropost.org [80.237.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AFE043D45 for ; Sun, 27 Aug 2006 00:13:04 +0000 (GMT) (envelope-from erdgeist@erdgeist.org) Received: (qmail 8895 invoked by uid 0); 27 Aug 2006 00:14:00 -0000 Received: from fuckup.club.berlin.ccc.de (HELO ?23.23.23.91?) (erdgeist@erdgeist.org@195.160.172.2) by elektropost.org with AES256-SHA encrypted SMTP; 27 Aug 2006 00:14:00 -0000 Message-ID: <44F0E38F.5030809@erdgeist.org> Date: Sun, 27 Aug 2006 02:13:03 +0200 From: Dirk Engling User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 To: hackers@freebsd.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 00:13:05 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I have the following problem: since I need and do not like any kind of smtp activity in my jails (there's no 127.0.0.1 in a jail, all services listen to the jails external interface), I put those lines into my /etc/rc.conf: sendmail_enable="NO" sendmail_outbound_enable="NO" sendmail_submit_enable="NO" this works fine: nothing listening on the jails interface... except that cron tries to deliver its status mails and fails. While failing, sendmail seems to hog cpu and finally floods /var/spool/clientmqueue and /var/log/maillog. My quick fix now is to replace /usr/libexec/sendmail/sendmail with /usr/bin/true in /etc/mail/mailer.conf, however: it seems problematic that cron insists on a mail sub system, when all it should do is execute stuff periodically. There should be an option to let it only log to a file. For my jails this would make sense, too: I never read root's mails locally, anyway. Am I missing the obvious solution here? erdgeist -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFE8OOPImmQdUyYEgkRAlg8AJ94cvRnJO8y04wZdYdzaX1YM4SorACffJtE DN2NRiU437SGchnsOrh5hQs= =t0dd -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 00:27:04 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C117E16A4DD for ; Sun, 27 Aug 2006 00:27:04 +0000 (UTC) (envelope-from danger@FreeBSD.org) Received: from virtual.micronet.sk (smtp.micronet.sk [84.16.32.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5292F43D46 for ; Sun, 27 Aug 2006 00:27:04 +0000 (GMT) (envelope-from danger@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by virtual.micronet.sk (Postfix) with ESMTP id 9E80510E74A; Sun, 27 Aug 2006 02:26:52 +0200 (CEST) X-Virus-Scanned: by amavisd-new at virtual.micronet.sk Received: from virtual.micronet.sk ([127.0.0.1]) by localhost (virtual.micronet.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X1lqq-plc-Xf; Sun, 27 Aug 2006 02:26:51 +0200 (CEST) Received: from danger.mcrn.sk (danger.mcrn.sk [84.16.37.254]) by virtual.micronet.sk (Postfix) with ESMTP id 52A6110E748; Sun, 27 Aug 2006 02:26:51 +0200 (CEST) Date: Sun, 27 Aug 2006 02:27:05 +0200 From: Daniel Gerzo Organization: The FreeBSD Project X-Priority: 3 (Normal) Message-ID: <1097706490.20060827022705@rulez.sk> To: Dirk Engling In-Reply-To: <44F0E38F.5030809@erdgeist.org> References: <44F0E38F.5030809@erdgeist.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Gerzo List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 00:27:04 -0000 Hello Dirk, Sunday, August 27, 2006, 2:13:03 AM, you wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > Hello, > I have the following problem: since I need and do not like any kind of > smtp activity in my jails (there's no 127.0.0.1 in a jail, all services > listen to the jails external interface), I put those lines into my > /etc/rc.conf: > sendmail_enable="NO" > sendmail_outbound_enable="NO" > sendmail_submit_enable="NO" > this works fine: nothing listening on the jails interface... except that > cron tries to deliver its status mails and fails. > While failing, sendmail seems to hog cpu and finally floods > /var/spool/clientmqueue and /var/log/maillog. > My quick fix now is to replace /usr/libexec/sendmail/sendmail with > /usr/bin/true in /etc/mail/mailer.conf, however: it seems problematic > that cron insists on a mail sub system, when all it should do is execute > stuff periodically. There should be an option to let it only log to a file. check /etc/defaults/periodic.conf > For my jails this would make sense, too: I never read root's mails > locally, anyway. > Am I missing the obvious solution here? > erdgeist -- Best regards, Daniel mailto:danger@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 01:19:45 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4ADD16A4DA; Sun, 27 Aug 2006 01:19:45 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38BAB43D53; Sun, 27 Aug 2006 01:19:42 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.24] (andersonbox4.centtech.com [192.168.42.24]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k7R1JfcI056399; Sat, 26 Aug 2006 20:19:42 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44F0F32C.2000404@centtech.com> Date: Sat, 26 Aug 2006 20:19:40 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <44E45C3F.6060901@centtech.com> <20060817122502.GF1483@deviant.kiev.zoral.com.ua> <44E4614B.9000902@centtech.com> <44E482E8.50509@centtech.com> <20060817150423.GA20768@deviant.kiev.zoral.com.ua> <44E48610.3000407@centtech.com> <44EB6B37.9090302@centtech.com> <20060824105457.GC33565@garage.freebsd.pl> <44EE78F5.8000101@centtech.com> <44F03D48.2050404@centtech.com> <20060826124406.GD52998@garage.freebsd.pl> In-Reply-To: <20060826124406.GD52998@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1734/Sat Aug 26 15:48:40 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: Kostik Belousov , FreeBSD Hackers Subject: Re: 6-STABLE snapshot (background fsck) lock-up X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 01:19:45 -0000 On 08/26/06 07:44, Pawel Jakub Dawidek wrote: > On Sat, Aug 26, 2006 at 07:23:36AM -0500, Eric Anderson wrote: >> Hmm - had another panic. Again, screen shots are here: >> >> http://www.googlebit.com/freebsd/snapshots/gjournal_panic2/ > > I can't find panic message. What was it? > It was a deadlock. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 03:14:08 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74D6F16A4DF for ; Sun, 27 Aug 2006 03:14:08 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from cydem.org (S0106000103ce4c9c.vc.shawcable.net [24.87.27.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4112F43D49 for ; Sun, 27 Aug 2006 03:14:08 +0000 (GMT) (envelope-from soralx@cydem.org) Received: from soralx.cydem.org (unknown [192.168.0.249]) by cydem.org (Postfix/FreeBSD) with ESMTP id 6498A90C31; Sat, 26 Aug 2006 20:14:06 -0700 (PDT) From: soralx@cydem.org To: freebsd-hackers@freebsd.org, erdgeist@erdgeist.org Date: Sat, 26 Aug 2006 20:14:05 -0700 User-Agent: KMail/1.9.1 References: <44F0E38F.5030809@erdgeist.org> In-Reply-To: <44F0E38F.5030809@erdgeist.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608262014.06175.soralx@cydem.org> Cc: Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 03:14:08 -0000 > I have the following problem: since I need and do not like any kind of > smtp activity in my jails (there's no 127.0.0.1 in a jail, all services [...] > cron tries to deliver its status mails and fails. try 'MAILTO=""' in /etc/crontab [SorAlx] ridin' VN1500-B2 From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 03:20:14 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74F1C16A4DE for ; Sun, 27 Aug 2006 03:20:14 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id CB72A43D46 for ; Sun, 27 Aug 2006 03:20:13 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 83597 invoked by uid 1001); 27 Aug 2006 00:33:20 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Sat, 26 Aug 2006 20:33:20 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17648.59470.572563.377998@bhuda.mired.org> Date: Sat, 26 Aug 2006 20:33:18 -0400 To: Dirk Engling In-Reply-To: <44F0E38F.5030809@erdgeist.org> References: <44F0E38F.5030809@erdgeist.org> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 03:20:14 -0000 In <44F0E38F.5030809@erdgeist.org>, Dirk Engling typed: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > > I have the following problem: since I need and do not like any kind of > smtp activity in my jails (there's no 127.0.0.1 in a jail, all services > listen to the jails external interface), I put those lines into my > /etc/rc.conf: > > sendmail_enable="NO" > sendmail_outbound_enable="NO" > sendmail_submit_enable="NO" You may want sendmail_msp_queue_enable="NO" as well. sendmail_enable="NONE" is a shorthand for turning all four of them off, though I believe it's been depreciated. > this works fine: nothing listening on the jails interface... except that > cron tries to deliver its status mails and fails. > > While failing, sendmail seems to hog cpu and finally floods > /var/spool/clientmqueue and /var/log/maillog. > > My quick fix now is to replace /usr/libexec/sendmail/sendmail with > /usr/bin/true in /etc/mail/mailer.conf, however: it seems problematic > that cron insists on a mail sub system, when all it should do is execute > stuff periodically. There should be an option to let it only log to a file. And to which crontab file and lines should the option apply? > For my jails this would make sense, too: I never read root's mails > locally, anyway. > > Am I missing the obvious solution here? Posibly. Worse yet, you're missing some obvious problems. cron mails any output from each line to someone - exactly who depends on which crontab file it is, and if it specifies a user to run as. Replacing all of those with a single log file isn't generally very useful. A syslog hook of some kind might be work. In any case, you can fix each line in a crontab to not send mail by redirecting it's output - both stdout and stderr - to a file. Except some of the things run from cron want to send mail all on their own, so fixing cron won't solve your problem. Why are you running cron inside the jails at all? Are you letting your users run it? If not, can you disable it, and instead run scripts from your real crontab that do the appropriate thigns in each jail? http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 03:34:27 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0B1A16A4DE for ; Sun, 27 Aug 2006 03:34:27 +0000 (UTC) (envelope-from erdgeist@erdgeist.org) Received: from elektropost.org (elektropost.org [80.237.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1196643D49 for ; Sun, 27 Aug 2006 03:34:26 +0000 (GMT) (envelope-from erdgeist@erdgeist.org) Received: (qmail 25153 invoked by uid 0); 27 Aug 2006 03:35:22 -0000 Received: from erdgeist.org (erdgeist@erdgeist.org@80.237.196.15) by elektropost.org with AES256-SHA encrypted SMTP; 27 Aug 2006 03:35:22 -0000 Date: Sun, 27 Aug 2006 05:35:22 +0200 (CEST) From: Dirk Engling To: Mike Meyer In-Reply-To: <17648.59470.572563.377998@bhuda.mired.org> Message-ID: <20060827052733.F16322@erdgeist.org> References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 03:34:27 -0000 On Sat, 26 Aug 2006, Mike Meyer wrote: > Except some of the things run from cron want to send mail all on their > own, so fixing cron won't solve your problem. > > Why are you running cron inside the jails at all? Are you letting your > users run it? If not, can you disable it, and instead run scripts from > your real crontab that do the appropriate thigns in each jail? It's not me, it's the OS running cron to do its periodic checks, per default. But Daniel Gerzo already pointed out, how to solve that. Still: FreeBSD's /etc/ assumes and provides a working mail subsystem in its default configuration. That exposes sendmail to the publicly visible IP address. Shutting the mail sub system off causes trouble. I hope, that describes my motivation to bring up the topic. erdgeist From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 04:47:02 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E827B16A4DD for ; Sun, 27 Aug 2006 04:47:02 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id 5CC6643D49 for ; Sun, 27 Aug 2006 04:47:02 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 7662 invoked by uid 1001); 27 Aug 2006 04:46:51 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Sun, 27 Aug 2006 00:46:51 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17649.9146.307818.780974@bhuda.mired.org> Date: Sun, 27 Aug 2006 00:46:50 -0400 To: Dirk Engling In-Reply-To: <20060827052733.F16322@erdgeist.org> References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 04:47:03 -0000 In <20060827052733.F16322@erdgeist.org>, Dirk Engling typed: > On Sat, 26 Aug 2006, Mike Meyer wrote: > > Except some of the things run from cron want to send mail all on their > > own, so fixing cron won't solve your problem. > > Why are you running cron inside the jails at all? Are you letting your > > users run it? If not, can you disable it, and instead run scripts from > > your real crontab that do the appropriate thigns in each jail? > It's not me, it's the OS running cron to do its periodic checks, per > default. That's just a default. You can can change it by adding cron_enable="NO" to /etc/rc.conf in each jail. So maybe the question should be "Why haven't your turned off cron in the jails?" > Daniel Gerzo already pointed out, how to solve that. By checking periodic.conf? That doesn't prevent cron from sending mail; that just turns off the periodic scripts that cron launches, some of which also send mail. > Still: FreeBSD's /etc/ assumes and provides a working mail subsystem in > its default configuration. That exposes sendmail to the publicly visible > IP address. Shutting the mail sub system off causes trouble. In order: right, wrong and right. The default configuration doesn't expose sendmail to the publicly visible IP addres. The daemon it runs only listens for connections to the localhost address. > I hope, that describes my motivation to bring up the topic. Well, it's a bit ambiguous. If your concern is that the default configuration exposes sendmail on a public IP address, you're wrong. If your concern is that default sendmail is exposed in jails, then you need to fix that when you set up the jail. There are tools around for setting up jails for a variety of uses, but I don't think any are bundled with the system. If your concern is that shutting off a subsystem can break things - I'd say that's a *good* thing. One of the things that make Unix powerful is that it assumes the user knows what they are doing. If you've installed another mail package (there are a number of them in the ports tree), then you want to turn off sendmail. If the system assumed that you then no longer had a working mail system and shut down everything that tried to send mail, it would be wrong. Given the choice between a system that does exactly what I tell it to, and one that second guesses me, makes changes behind my back, and makes setting things up the way I want a PITA, I know which one I want. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 04:49:30 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7551716A4E7 for ; Sun, 27 Aug 2006 04:49:30 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id 5AF4443D58 for ; Sun, 27 Aug 2006 04:49:29 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 7718 invoked by uid 1001); 27 Aug 2006 04:49:18 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Sun, 27 Aug 2006 00:49:18 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17649.9294.285953.182775@bhuda.mired.org> Date: Sun, 27 Aug 2006 00:49:18 -0400 To: Steve Kargl In-Reply-To: <20060826212607.GA82729@troutmask.apl.washington.edu> References: <17648.35923.366716.65517@bhuda.mired.org> <20060826180900.GA81762@troutmask.apl.washington.edu> <17648.38296.39807.492937@bhuda.mired.org> <20060826192418.GA82155@troutmask.apl.washington.edu> <17648.42078.268722.152591@bhuda.mired.org> <20060826212607.GA82729@troutmask.apl.washington.edu> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: hackers@freebsd.org Subject: Re: amd64 questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 04:49:30 -0000 In <20060826212607.GA82729@troutmask.apl.washington.edu>, Steve Kargl typed: > On Sat, Aug 26, 2006 at 03:43:26PM -0400, Mike Meyer wrote: > >>> Hmm. My copy of the port sets that for amd64 already. Checking the CVS > >>> repository, it looks like a number of things have broken/unbroken in > >>> the last few days. In particular, one of the repositories appears to > >>> have a broken copy of the tarball the port is using. I'll update the > >>> port, make distclean, and try again. > >>> > >>> In the meantime, could you tell me which openoffice port you build? > >>> I'm using openoffice.org-2.0, and not the -devel branch. > >> > >> pkg_info shows > >> openoffice.org-2.0.3 > >> > >> ls -l /usr/local/bin shows that I built the port on 7 Aug 06. > >> Of course, the port could have been broken in the last 20 days. :( > > Just out of curiosity, what are the chances of getting you to build a > > package/tarball out of what you've built, since there isn't a package > > availabe from the freebsd ftp sites? I'd be willing to make it > > available for others to download. > The chances are slim. I'm fairly certain that I deleted everything > after the installation (ie., tarballs, build directories, dependencies). > I'll check, but don't hold your breath. :( For the archives. The openoffice.org-2.0 port just finished building without a hitch on my 6-STABLE amd64 system. I couldn't find anything when I went searchyng for such earlier. Hopefully this one will safe people some time in the future. I'll investigate the issue of multilib and multi-platform package support, and possibly take it up in a more appropriate forum. Thanx, http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 04:58:47 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC9D416A4DD for ; Sun, 27 Aug 2006 04:58:47 +0000 (UTC) (envelope-from gshapiro@gshapiro.net) Received: from gir.gshapiro.net (gir.gshapiro.net [209.246.26.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 685A143D45 for ; Sun, 27 Aug 2006 04:58:47 +0000 (GMT) (envelope-from gshapiro@gshapiro.net) Received: from gir.gshapiro.net (localhost [127.0.0.1]) by gir.gshapiro.net (8.13.5/8.13.6) with ESMTP id k7R4wgql016481 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 26 Aug 2006 21:58:43 -0700 (PDT) (envelope-from gshapiro@gir.gshapiro.net) X-DKIM: Sendmail DKIM Filter v0.5.1 gir.gshapiro.net k7R4wgql016481 Received: (from gshapiro@localhost) by gir.gshapiro.net (8.13.5/8.13.6/Submit) id k7R4wgl9016480; Sat, 26 Aug 2006 21:58:42 -0700 (PDT) (envelope-from gshapiro) Date: Sat, 26 Aug 2006 21:58:42 -0700 From: Gregory Shapiro To: Mike Meyer Message-ID: <20060827045842.GA1032@gir.gshapiro.net> References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> <17649.9146.307818.780974@bhuda.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17649.9146.307818.780974@bhuda.mired.org> User-Agent: Mutt/1.5.12-2006-07-14 Cc: hackers@freebsd.org, Dirk Engling Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 04:58:47 -0000 > The default configuration doesn't expose sendmail to the publicly > visible IP addres. The daemon it runs only listens for connections to > the localhost address. Unfortunately, in jails, localhost gets remapped to the jail IP address and therefore, he is correct, it is accepting connections from the outside world. This is one thing that I would love to see fixed in jails. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 05:30:57 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 500CD16A4DF for ; Sun, 27 Aug 2006 05:30:57 +0000 (UTC) (envelope-from dking@ketralnis.com) Received: from ketralnis.com (melchoir.ketralnis.com [68.183.67.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id E85BE43D53 for ; Sun, 27 Aug 2006 05:30:56 +0000 (GMT) (envelope-from dking@ketralnis.com) Received: from [10.0.1.239] (ayla.wifi.int.ketralnis.com [10.0.1.239]) (authenticated bits=0) by ketralnis.com (8.13.6/8.13.6) with ESMTP id k7R5UtCx095079 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Sat, 26 Aug 2006 22:30:56 -0700 (PDT) (envelope-from dking@ketralnis.com) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <200608262014.06175.soralx@cydem.org> References: <44F0E38F.5030809@erdgeist.org> <200608262014.06175.soralx@cydem.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <18E5D4DD-4B7B-4ED4-A9BB-5908F93B6D20@ketralnis.com> Content-Transfer-Encoding: 7bit From: David King Date: Sat, 26 Aug 2006 22:30:52 -0700 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.752.2) Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 05:30:57 -0000 >> I have the following problem: since I need and do not like any >> kind of >> smtp activity in my jails (there's no 127.0.0.1 in a jail, all >> services > [...] >> cron tries to deliver its status mails and fails. > try 'MAILTO=""' in /etc/crontab That will work for any custom Cron just that you've set, but it won't work for the default periodic jobs, since periodic(1) handles its own mailing From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 05:53:35 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A97F116A4DA for ; Sun, 27 Aug 2006 05:53:35 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00A2543D45 for ; Sun, 27 Aug 2006 05:53:34 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id DAB135138F; Sun, 27 Aug 2006 07:53:32 +0200 (CEST) Received: from localhost (dlk253.neoplus.adsl.tpnet.pl [83.24.40.253]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 79BBB50EA7; Sun, 27 Aug 2006 07:53:27 +0200 (CEST) Date: Sun, 27 Aug 2006 07:53:21 +0200 From: Pawel Jakub Dawidek To: Eric Anderson Message-ID: <20060827055321.GG52998@garage.freebsd.pl> References: <44E4614B.9000902@centtech.com> <44E482E8.50509@centtech.com> <20060817150423.GA20768@deviant.kiev.zoral.com.ua> <44E48610.3000407@centtech.com> <44EB6B37.9090302@centtech.com> <20060824105457.GC33565@garage.freebsd.pl> <44EE78F5.8000101@centtech.com> <44F03D48.2050404@centtech.com> <20060826124406.GD52998@garage.freebsd.pl> <44F0F32C.2000404@centtech.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eMnpOGXCMazMAbfp" Content-Disposition: inline In-Reply-To: <44F0F32C.2000404@centtech.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: Kostik Belousov , FreeBSD Hackers Subject: Re: 6-STABLE snapshot (background fsck) lock-up X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 05:53:35 -0000 --eMnpOGXCMazMAbfp Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 26, 2006 at 08:19:40PM -0500, Eric Anderson wrote: > On 08/26/06 07:44, Pawel Jakub Dawidek wrote: > >On Sat, Aug 26, 2006 at 07:23:36AM -0500, Eric Anderson wrote: > >>Hmm - had another panic. Again, screen shots are here: > >> > >>http://www.googlebit.com/freebsd/snapshots/gjournal_panic2/ > >I can't find panic message. What was it? >=20 >=20 > It was a deadlock. This looks like VM related problem - g_event thread is waiting for free pages, but it never get them. Are you able to connect serial console to this machine and provide also output from 'alltrace' if it happens again? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --eMnpOGXCMazMAbfp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFE8TNRForvXbEpPzQRAvTNAJ49tPYi8m61+WTezTZS4mCfSRM2HgCeLSij EdfVGsk/khslu/G9FP3k9v8= =Vi7H -----END PGP SIGNATURE----- --eMnpOGXCMazMAbfp-- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 06:35:43 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C73CD16A4DA for ; Sun, 27 Aug 2006 06:35:43 +0000 (UTC) (envelope-from alive@dienub.org) Received: from pfepa.post.tele.dk (pfepa.post.tele.dk [195.41.46.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B0B343D46 for ; Sun, 27 Aug 2006 06:35:43 +0000 (GMT) (envelope-from alive@dienub.org) Received: from m00h.dienub.org (dienub.org [83.88.67.155]) by pfepa.post.tele.dk (Postfix) with ESMTP id ACC0AFAC006; Sun, 27 Aug 2006 08:35:41 +0200 (CEST) Received: from [192.168.0.2] (unknown [192.168.0.2]) by m00h.dienub.org (Postfix) with ESMTP id 4FB241CC0B; Sun, 27 Aug 2006 08:35:41 +0200 (CEST) Message-ID: <44F13D3C.3090909@dienub.org> Date: Sun, 27 Aug 2006 08:35:40 +0200 From: "Daniel A." User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Peter Jeremy References: <44EDC84C.6010505@dienub.org> <20060826022302.GE16768@turion.vk2pj.dyndns.org> In-Reply-To: <20060826022302.GE16768@turion.vk2pj.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: doadump at pcpu.h:165 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 06:35:43 -0000 Peter Jeremy wrote: > On Thu, 2006-Aug-24 17:39:56 +0200, Daniel A. wrote: >> My server crashes very often and it's very random. > ... >> panic: machine check trap > ... >> As far as I understand, the issue is CPU-related, but that doesn't make >> sense, as my network interface cards are constantly giving me watchdog >> timeouts. > > This sounds like flaky hardware. Try checking cooling, PSU, RAM, > cabling socketing etc. Run memtest86 or similar and try swapping > components. > Hi Peter, this is no doubt caused by flaky hardware. The reason I keep posting my kgdb results is that I want to see if someone has experienced something similar. So far, I have had two crashes where I had saved the vmcore for debugging, and these two crashes are not identical. In fact, the only thing they have in common is that they are somehow related to networking. Also, I have no extra hardware. And I have tried the regular debugging stuff - After all, this has been going on for several months now, and I'm not the type of person who wouldn't notice that something is wrong with his beloved server. Sincerely, Daniel. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 06:54:58 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 466C416A4DA for ; Sun, 27 Aug 2006 06:54:58 +0000 (UTC) (envelope-from tomoyuki@pobox.com) Received: from proof.pobox.com (proof.pobox.com [207.106.133.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id D075143D45 for ; Sun, 27 Aug 2006 06:54:57 +0000 (GMT) (envelope-from tomoyuki@pobox.com) Received: from proof (localhost [127.0.0.1]) by proof.pobox.com (Postfix) with ESMTP id CE12929D4F for ; Sun, 27 Aug 2006 02:55:18 -0400 (EDT) Received: from fmv.c-wind.com (ZH074133.ppp.dion.ne.jp [222.3.74.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by proof.sasl.smtp.pobox.com (Postfix) with ESMTP id 986256F059 for ; Sun, 27 Aug 2006 02:55:18 -0400 (EDT) Date: Sun, 27 Aug 2006 15:54:45 +0900 (JST) Message-Id: <20060827.155445.74742381.tomoyuki@pobox.com> To: hackers@freebsd.org From: Tomoyuki Murakami In-Reply-To: <20060827052733.F16322@erdgeist.org> References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> X-Fingerprint: 3A 3C 3D 8A D3 7F D7 AC 0C 1C 2E C6 E1 8B 12 5B X-PGP-Key-URL: http://www.c-wind.com/tomoyuki@pobox.com.asc X-Mailer: Mew version 5.1 on Emacs 21.4 / Mule 5.0 (SAKAKI) X-Face: &9m:"[g#xi7*b@EePhiQRN|!8v_ZLJ2y36k=5R22P_.h].I8ti_*00uUULxu-o, 1)qF==5\ gB6^TJo0,+L!y?=zxth0iJbo65d List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 06:54:58 -0000 ----Security_Multipart(Sun_Aug_27_15_54_45_2006_697)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit >>> On Sun, 27 Aug 2006 05:35:22 +0200 (CEST), >>> Dirk Engling wrote: erdgeist> Still: FreeBSD's /etc/ assumes and provides a working mail subsystem in erdgeist> its default configuration. That exposes sendmail to the publicly visible erdgeist> IP address. Shutting the mail sub system off causes trouble. I have installed ssmtp-2.61 and set it in /etc/mail/mailer.conf on my Jailed environment. ... sendmail /usr/local/sbin/ssmtp send-mail /usr/local/sbin/ssmtp and sendmail_enable is "NONE" in /etc/rc.conf. I don't think it's the best, but works fine. ----Security_Multipart(Sun_Aug_27_15_54_45_2006_697)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iQCVAwUARPFBvMcdBA2xrHKhAQK6HQQApKlRR4tOxFTeAHJ7qTr8k6PMuhLmHlgu IUKQ3tlovjjVljbUKpbHLEP48pd1/i8bsrGvOUkT0euPhgszNbtwKZqN77e9U9jN DVsFZBHoERI2quC36eoOGQVTtwWy2V7Jltg12pgAkSVnB83urTl3UrCGmhwzR7Bj mp/7R4fp6RE= =nQ9O -----END PGP SIGNATURE----- ----Security_Multipart(Sun_Aug_27_15_54_45_2006_697)---- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 08:13:42 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E871E16A4DA for ; Sun, 27 Aug 2006 08:13:42 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.FreeBSD.org (Postfix) with SMTP id A47CC43D62 for ; Sun, 27 Aug 2006 08:13:40 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 24243 invoked by uid 399); 27 Aug 2006 08:13:39 -0000 Received: from localhost (HELO ?192.168.0.3?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 27 Aug 2006 08:13:39 -0000 Message-ID: <44F1542F.9000503@FreeBSD.org> Date: Sun, 27 Aug 2006 01:13:35 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.5 (X11/20060729) MIME-Version: 1.0 To: Niclas Zeising References: <44F062F3.6020603@n00b.apagnu.se> In-Reply-To: <44F062F3.6020603@n00b.apagnu.se> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: [PATCH] get periodic.conf to use the correct ports INDEX X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 08:13:43 -0000 Niclas Zeising wrote: > The periodic.conf in 7-CURRENT is still set to use the INDEX-6 ports > index file, instead of INDEX-7 which is the default on 7-CURRENT. This > should, I think, be changed. Done. Next time please consider using send-pr for this type of thing. Doug -- This .signature sanitized for your protection From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 08:49:44 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2909E16A4E1; Sun, 27 Aug 2006 08:49:44 +0000 (UTC) (envelope-from lothrandil@n00b.apagnu.se) Received: from pne-smtpout1-sn2.hy.skanova.net (pne-smtpout1-sn2.hy.skanova.net [81.228.8.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 830AF43D45; Sun, 27 Aug 2006 08:49:43 +0000 (GMT) (envelope-from lothrandil@n00b.apagnu.se) Received: from [81.229.124.17] (81.229.124.17) by pne-smtpout1-sn2.hy.skanova.net (7.2.075) id 44E9C46300180B8A; Sun, 27 Aug 2006 10:49:42 +0200 Message-ID: <44F15CA0.1020102@n00b.apagnu.se> Date: Sun, 27 Aug 2006 10:49:36 +0200 From: Niclas Zeising User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Doug Barton References: <44F062F3.6020603@n00b.apagnu.se> <44F1542F.9000503@FreeBSD.org> In-Reply-To: <44F1542F.9000503@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: [PATCH] get periodic.conf to use the correct ports INDEX X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 08:49:44 -0000 Doug Barton wrote: > Niclas Zeising wrote: >> The periodic.conf in 7-CURRENT is still set to use the INDEX-6 ports >> index file, instead of INDEX-7 which is the default on 7-CURRENT. This >> should, I think, be changed. > > Done. Next time please consider using send-pr for this type of thing. > > Doug > Thanks! And I will! //Niclas -- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 15:04:07 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CECA716A4E2 for ; Sun, 27 Aug 2006 15:04:07 +0000 (UTC) (envelope-from erdgeist@erdgeist.org) Received: from elektropost.org (elektropost.org [80.237.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B7C343FA4 for ; Sun, 27 Aug 2006 15:04:05 +0000 (GMT) (envelope-from erdgeist@erdgeist.org) Received: (qmail 70786 invoked by uid 0); 27 Aug 2006 15:05:01 -0000 Received: from fuckup.club.berlin.ccc.de (HELO ?23.23.23.91?) (erdgeist@erdgeist.org@195.160.172.2) by elektropost.org with AES256-SHA encrypted SMTP; 27 Aug 2006 15:05:01 -0000 Message-ID: <44F1B464.4040702@erdgeist.org> Date: Sun, 27 Aug 2006 17:04:04 +0200 From: Dirk Engling User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> <17649.9146.307818.780974@bhuda.mired.org> <20060827045842.GA1032@gir.gshapiro.net> In-Reply-To: <20060827045842.GA1032@gir.gshapiro.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 15:04:07 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gregory Shapiro wrote: > Unfortunately, in jails, localhost gets remapped to the jail IP > address and therefore, he is correct, it is accepting connections > from the outside world. This is one thing that I would love to > see fixed in jails. There was a multiple IPs in jails patch for 5.4, which would fix that issue, but until loopback interfaces exist in jails, I'd love to see an easy way to turn off smtp. Regards, erdgeist -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFE8bRjImmQdUyYEgkRAmH1AJ9magSHG86M5J2u1SJw+L+jx+hE5QCeKsvG bfjWWGE0Ipks6EhG9jMTtkM= =JRre -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 15:42:17 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DAB716A4F8 for ; Sun, 27 Aug 2006 15:42:17 +0000 (UTC) (envelope-from erdgeist@erdgeist.org) Received: from elektropost.org (elektropost.org [80.237.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F0E3445D2 for ; Sun, 27 Aug 2006 15:18:17 +0000 (GMT) (envelope-from erdgeist@erdgeist.org) Received: (qmail 75932 invoked by uid 0); 27 Aug 2006 15:19:12 -0000 Received: from fuckup.club.berlin.ccc.de (HELO ?23.23.23.91?) (erdgeist@erdgeist.org@195.160.172.2) by elektropost.org with AES256-SHA encrypted SMTP; 27 Aug 2006 15:19:12 -0000 Message-ID: <44F1B7B7.9090701@erdgeist.org> Date: Sun, 27 Aug 2006 17:18:15 +0200 From: Dirk Engling User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 To: Mike Meyer References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> <17649.9146.307818.780974@bhuda.mired.org> In-Reply-To: <17649.9146.307818.780974@bhuda.mired.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 15:42:17 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mike Meyer wrote: > That's just a default. You can can change it by adding > cron_enable="NO" to /etc/rc.conf in each jail. So maybe the question > should be "Why haven't your turned off cron in the jails?" Because the system uses cron to start its periodic scripts. The periodic scripts are cool and useful in jails, especially the security scripts. Thus I wont turn off cron. >> Daniel Gerzo already pointed out, how to solve that. > > By checking periodic.conf? That doesn't prevent cron from sending > mail; that just turns off the periodic scripts that cron launches, > some of which also send mail. But it prevents a vanilla system to try to connect to localhost:25 once a day. Only those periodic scripts send mails per default. > In order: right, wrong and right. I'm afraid, you're wrong. > The default configuration doesn't expose sendmail to the publicly > visible IP addres. The daemon it runs only listens for connections to > the localhost address. Which is rewritten to the jails (externally visible) address on a connect() > If your concern is that shutting off a subsystem can break things - > I'd say that's a *good* thing. One of the things that make Unix > powerful is that it assumes the user knows what they are doing. This is... a strange opinion... If the default exposes an unwanted service to the world, then turning it off should not require indepth knowledge in how to prevent other things in the system to break. The service should not even be there in the first place. > Given the choice between a system that does exactly what I tell it > to, and one that second guesses me, makes changes behind my back, and > makes setting things up the way I want a PITA, I know which one I > want. I would chose and recommend the system that provides sane and secure defaults without requiring me to understand all of the OSs sub systems. Detecting that /etc/ is inside a jail environment and adjusting your sendmail and periodic settings would be a nice thing to have. Regards erdgeist -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFE8be3ImmQdUyYEgkRAhogAJ9PDDu5SkZOp15OmzAt/Tfx8yW2zwCgg5Qo sjq1PJ/f3u3gIUiPuX8sbm8= =ouev -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 17:17:21 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4269A16A4DE for ; Sun, 27 Aug 2006 17:17:21 +0000 (UTC) (envelope-from gshapiro@gshapiro.net) Received: from gir.gshapiro.net (gir.gshapiro.net [209.246.26.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C1D343FD8 for ; Sun, 27 Aug 2006 17:08:51 +0000 (GMT) (envelope-from gshapiro@gshapiro.net) Received: from gir.gshapiro.net (localhost [127.0.0.1]) by gir.gshapiro.net (8.13.5/8.13.6) with ESMTP id k7RH8ifo039081 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 27 Aug 2006 10:08:45 -0700 (PDT) (envelope-from gshapiro@gir.gshapiro.net) X-DKIM: Sendmail DKIM Filter v0.5.1 gir.gshapiro.net k7RH8ifo039081 Received: (from gshapiro@localhost) by gir.gshapiro.net (8.13.5/8.13.6/Submit) id k7RH8iw3039080; Sun, 27 Aug 2006 10:08:44 -0700 (PDT) (envelope-from gshapiro) Date: Sun, 27 Aug 2006 10:08:44 -0700 From: Gregory Shapiro To: Dirk Engling Message-ID: <20060827170844.GB1032@gir.gshapiro.net> References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> <17649.9146.307818.780974@bhuda.mired.org> <44F1B7B7.9090701@erdgeist.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44F1B7B7.9090701@erdgeist.org> User-Agent: Mutt/1.5.12-2006-07-14 Cc: hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 17:17:21 -0000 > But it prevents a vanilla system to try to connect to localhost:25 once > a day. Only those periodic scripts send mails per default. If you still want mail to work, but don't want to listen on a network port: cd /etc/mail/ make vi `hostname`.submit.mc Change the 127.0.0.1 in the line "FEATURE(`msp', `[127.0.0.1]')dnl" to an IP address that has a listening SMTP server and will accept mail from your jail. You can also use a hostname, for example, FEATURE(`msp', `smtp.example.com') make install Then make sure you leave the default for sendmail_outbound_enable ("YES") and turn off the others. You'll have a system where mail works just fine and nothing listens on any TCP port. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 17:24:54 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B724316A4EA for ; Sun, 27 Aug 2006 17:24:54 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id 8158144131 for ; Sun, 27 Aug 2006 17:19:18 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 13467 invoked by uid 1001); 27 Aug 2006 17:18:37 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Sun, 27 Aug 2006 13:18:37 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17649.54252.987757.501860@bhuda.mired.org> Date: Sun, 27 Aug 2006 13:18:36 -0400 To: Dirk Engling In-Reply-To: <44F1B7B7.9090701@erdgeist.org> References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> <17649.9146.307818.780974@bhuda.mired.org> <44F1B7B7.9090701@erdgeist.org> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 17:24:54 -0000 In <44F1B7B7.9090701@erdgeist.org>, Dirk Engling typed: >> That's just a default. You can can change it by adding > > cron_enable="NO" to /etc/rc.conf in each jail. So maybe the question > > should be "Why haven't your turned off cron in the jails?" > > Because the system uses cron to start its periodic scripts. The periodic > scripts are cool and useful in jails, especially the security scripts. > Thus I wont turn off cron. You mean the security scripts that send out email by design? Or do you mean the ones that scan the disk for suspicious binaries and changes - which are duplicating the work that the same scripts running in the native OS? > > The default configuration doesn't expose sendmail to the publicly > > visible IP addres. The daemon it runs only listens for connections to > > the localhost address. > Which is rewritten to the jails (externally visible) address on a connect() Yup. I wasn't aware of that strange behavior of jails. That should be fixed. > > If your concern is that shutting off a subsystem can break things - > > I'd say that's a *good* thing. One of the things that make Unix > > powerful is that it assumes the user knows what they are doing. > This is... a strange opinion... If the default exposes an unwanted > service to the world, then turning it off should not require indepth > knowledge in how to prevent other things in the system to break. The > service should not even be there in the first place. My opinion may be strange, but it's based on decades of dealing with systems that don't do that, and I've been hearing it from my mentors ever since I first sat down in front of a v6 terminal. The Unix programming model has largely taken over the world, so you may have never been exposed to systems where the OS designers assumed that they knew better than the application developers what those applications developers needed to do. If so, you're lucky - it's incredibly frustrating. So is doing that kind of thing to admins [story about dump/restore being unusable on AIX deleted] or users [lots of complaints about Linux and Windows deleted]. The problem is, you're assuming that what *you* want is what everyone wants, so the system should just do that. That isn't the case. In general, the mail system isn't "an unwanted service". The default install is supposed to be a fully functional Unix system. That means it has a working mail system. Nor does it expose that service to the world in the intended install environment - which is outside of a jail. If you're futzing around with jails, you're doing fairly advanced things. I don't think it's to much to expect such people to know what they are doing. > > Given the choice between a system that does exactly what I tell it > > to, and one that second guesses me, makes changes behind my back, and > > makes setting things up the way I want a PITA, I know which one I > > want. > I would chose and recommend the system that provides sane and secure > defaults without requiring me to understand all of the OSs sub systems. The freebsd defaults *are* sane and secure - at least according to a fairly large percentage of the users. They aren't sane and secure for everyone - that's simply not possible. Extreme versions of "secure" are generally well outside anything most users would consider "sane". You get this sane and secure setting without having to understand all of the OSs sub systems. Of course, if this setting doesn't meet your definition of "sane and secure", there are ways to change it. Once you start mucking about with the system, you have to know what you're doing. > Detecting that /etc/ is inside a jail environment and adjusting your > sendmail and periodic settings would be a nice thing to have. No, it wouldn't. Why do you think everyone wants a system that doesn't have mail just because it's in a jail, or don't mind running duplicate disk scanners, or .... I think the better fix would be to make jails not expose their localhost IP address to the outside world. Of course, a knob in rc.conf that says "this system has no functioning mail" and caused all the subsystems that expected to send mail (which includes more than just periodic) might be useful, and would also solve the problem. However, that's *not* a sendmail knob - because sendmail isn't the only possible mail software you could have installed. On the other hand, it's not clear that this adjustment can be done rationally without knowing something about what the user expects. And unfortunately, it would still require you to actually know something about the system in order to use it effectively. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 18:18:52 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71A9616A4DE; Sun, 27 Aug 2006 18:18:52 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0946343D45; Sun, 27 Aug 2006 18:18:51 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.24] (andersonbox4.centtech.com [192.168.42.24]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k7RIImjb016817; Sun, 27 Aug 2006 13:18:51 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44F1E208.3030300@centtech.com> Date: Sun, 27 Aug 2006 13:18:48 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <44E4614B.9000902@centtech.com> <44E482E8.50509@centtech.com> <20060817150423.GA20768@deviant.kiev.zoral.com.ua> <44E48610.3000407@centtech.com> <44EB6B37.9090302@centtech.com> <20060824105457.GC33565@garage.freebsd.pl> <44EE78F5.8000101@centtech.com> <44F03D48.2050404@centtech.com> <20060826124406.GD52998@garage.freebsd.pl> <44F0F32C.2000404@centtech.com> <20060827055321.GG52998@garage.freebsd.pl> In-Reply-To: <20060827055321.GG52998@garage.freebsd.pl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1735/Sun Aug 27 11:10:55 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: Kostik Belousov , FreeBSD Hackers Subject: Re: 6-STABLE snapshot (background fsck) lock-up X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 18:18:52 -0000 On 08/27/06 00:53, Pawel Jakub Dawidek wrote: > On Sat, Aug 26, 2006 at 08:19:40PM -0500, Eric Anderson wrote: >> On 08/26/06 07:44, Pawel Jakub Dawidek wrote: >>> On Sat, Aug 26, 2006 at 07:23:36AM -0500, Eric Anderson wrote: >>>> Hmm - had another panic. Again, screen shots are here: >>>> >>>> http://www.googlebit.com/freebsd/snapshots/gjournal_panic2/ >>> I can't find panic message. What was it? >> >> It was a deadlock. > > This looks like VM related problem - g_event thread is waiting for free > pages, but it never get them. > > Are you able to connect serial console to this machine and provide also > output from 'alltrace' if it happens again? > I don't have serial set up on it now, but I'll see what I can do. Does anyone happen to use IPMI+serial over ethernet on a Dell PowerEdge server? Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 19:25:01 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B587116A4DF for ; Sun, 27 Aug 2006 19:25:01 +0000 (UTC) (envelope-from simon@zaphod.nitro.dk) Received: from mx.nitro.dk (zarniwoop.nitro.dk [83.92.207.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3F5643D4C for ; Sun, 27 Aug 2006 19:25:00 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: from zaphod.nitro.dk (unknown [192.168.3.39]) by mx.nitro.dk (Postfix) with ESMTP id 7C5A832E420; Sun, 27 Aug 2006 19:24:59 +0000 (UTC) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id 4151911437; Sun, 27 Aug 2006 21:24:59 +0200 (CEST) Date: Sun, 27 Aug 2006 21:24:58 +0200 From: "Simon L. Nielsen" To: Dirk Engling Message-ID: <20060827192457.GE1149@zaphod.nitro.dk> References: <44F0E38F.5030809@erdgeist.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44F0E38F.5030809@erdgeist.org> User-Agent: Mutt/1.5.11 Cc: hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 19:25:01 -0000 On 2006.08.27 02:13:03 +0200, Dirk Engling wrote: > I have the following problem: since I need and do not like any kind of > smtp activity in my jails (there's no 127.0.0.1 in a jail, all services > listen to the jails external interface), I put those lines into my > /etc/rc.conf: [...] I know it's not exactly the solution to your problem, when you don't want the mail, but I find that using the mail/ssmtp port for local mail in jails is pretty nice. There is no deamon running and I can have one config file in all the jails which says that ssmtp should relay the mails to a real mailserver. (Might be useful for other people building jails.) -- Simon L. Nielsen From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 05:58:20 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4DE916A4DD for ; Mon, 28 Aug 2006 05:58:20 +0000 (UTC) (envelope-from imp@BSDIMP.COM) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68A8543D53 for ; Mon, 28 Aug 2006 05:58:20 +0000 (GMT) (envelope-from imp@BSDIMP.COM) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k7S5vVrk062049; Sun, 27 Aug 2006 23:57:32 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 27 Aug 2006 23:57:44 -0600 (MDT) Message-Id: <20060827.235744.1387160624.imp@bsdimp.com> To: mwm-keyword-freebsdhackers2.e313df@mired.org From: "M. Warner Losh" In-Reply-To: <17648.42078.268722.152591@bhuda.mired.org> References: <17648.38296.39807.492937@bhuda.mired.org> <20060826192418.GA82155@troutmask.apl.washington.edu> <17648.42078.268722.152591@bhuda.mired.org> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 27 Aug 2006 23:57:32 -0600 (MDT) Cc: hackers@freebsd.org, sgk@troutmask.apl.washington.edu Subject: Re: amd64 questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 05:58:20 -0000 For what it is worth, I'm working on patches that would let one build and install compiler for machine foo, machine_arch bar sufficiently well that the cross building system of gnu configure (autoconf) can use them to build many simple things, and a few complicated ones. This is similar to the -m32, but actually installs an entire toolchain. Space inefficient, but seems to work well for me. I'm just ironing out the final kinks in it (and updating the base system to fix a few bugs) before committing it. Maybe that would be useful? Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 06:01:25 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44DBB16A4DD for ; Mon, 28 Aug 2006 06:01:25 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id D075243D49 for ; Mon, 28 Aug 2006 06:01:23 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k7S5x1V5062061; Sun, 27 Aug 2006 23:59:01 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 27 Aug 2006 23:59:13 -0600 (MDT) Message-Id: <20060827.235913.-1889955932.imp@bsdimp.com> To: rick-freebsd@kiwi-computer.com From: "M. Warner Losh" In-Reply-To: <20060826225350.GA20172@megan.kiwi-computer.com> References: <200608261919.07106.mlobo@digiart.art.br> <20060826225350.GA20172@megan.kiwi-computer.com> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 27 Aug 2006 23:59:02 -0600 (MDT) Cc: freebsd-hackers@freebsd.org, mlobo@digiart.art.br Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 06:01:25 -0000 In message: <20060826225350.GA20172@megan.kiwi-computer.com> "Rick C. Petty" writes: : On Sat, Aug 26, 2006 at 07:19:06PM -0300, Mario Lobo wrote: : > : > My /usr/ports directory was occuping 24 gigs, of which 20 was just from the : > 'work' directories ! : > : > Removing them one by one was a pain so I wrote this little utility to wipe : > them off. : : I find that the following command works just fine for me: : : find /usr/ports -type d -name work -prune -print -delete cd /usr/ports ; rm -rf */*/work seems to run a little faster for me... So long as I don't have a huge number of work directories (fewer than thousands). Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 06:01:35 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F0D216A4E0 for ; Mon, 28 Aug 2006 06:01:35 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2420E43D4C for ; Mon, 28 Aug 2006 06:01:34 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k7S5xt2N062062; Sun, 27 Aug 2006 23:59:56 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 28 Aug 2006 00:00:08 -0600 (MDT) Message-Id: <20060828.000008.228971861.imp@bsdimp.com> To: erdgeist@erdgeist.org From: "M. Warner Losh" In-Reply-To: <44F0D335.4030604@erdgeist.org> References: <200608261919.07106.mlobo@digiart.art.br> <20060826225350.GA20172@megan.kiwi-computer.com> <44F0D335.4030604@erdgeist.org> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sun, 27 Aug 2006 23:59:56 -0600 (MDT) Cc: freebsd-hackers@freebsd.org, rick-freebsd@kiwi-computer.com, mlobo@digiart.art.br Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 06:01:35 -0000 In message: <44F0D335.4030604@erdgeist.org> Dirk Engling writes: : Rick C. Petty wrote: : > On Sat, Aug 26, 2006 at 07:19:06PM -0300, Mario Lobo wrote: : >> My /usr/ports directory was occuping 24 gigs, of which 20 was just from the : >> 'work' directories ! : >> : >> Removing them one by one was a pain so I wrote this little utility to wipe : >> them off. : > : > I find that the following command works just fine for me: : > : > find /usr/ports -type d -name work -prune -print -delete : : And EVEN cooler is having a : : WRKDIRPREFIX= /var/ports : : in your /etc/make.conf, that way an "rm -rf /var/ports/*" cleans without : unnecessary directory recursion. I just discovered this in my quest to see how hard it would be to get ports cross building as part of some other work I've been doing... Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 06:04:24 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34F0B16A4DA for ; Mon, 28 Aug 2006 06:04:24 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F7A243D70 for ; Mon, 28 Aug 2006 06:04:23 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k7S61H6I062095; Mon, 28 Aug 2006 00:01:17 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 28 Aug 2006 00:01:30 -0600 (MDT) Message-Id: <20060828.000130.-1264101530.imp@bsdimp.com> To: sgk@troutmask.apl.washington.edu From: "M. Warner Losh" In-Reply-To: <20060826212607.GA82729@troutmask.apl.washington.edu> References: <20060826192418.GA82155@troutmask.apl.washington.edu> <17648.42078.268722.152591@bhuda.mired.org> <20060826212607.GA82729@troutmask.apl.washington.edu> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Mon, 28 Aug 2006 00:01:17 -0600 (MDT) Cc: hackers@freebsd.org, mwm@mired.org Subject: Re: amd64 questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 06:04:24 -0000 In message: <20060826212607.GA82729@troutmask.apl.washington.edu> Steve Kargl writes: : On Sat, Aug 26, 2006 at 03:43:26PM -0400, Mike Meyer wrote: : > In <20060826192418.GA82155@troutmask.apl.washington.edu>, Steve Kargl typed: : >> On Sat, Aug 26, 2006 at 02:40:24PM -0400, Mike Meyer wrote: : >>> I'm not sure what you're saying is false - that the compiler can : >>> generate i386 binaries, or that the rest of the toolchain doesn't do : >>> the right thing. : >>> I can build i386 binaries with the system cc. However, if I just : >>> specify '-m32', it dies during the link because it tries to link with : >>> amd64 object files. I've managed to get some simple things to build by : >>> passing the appropriate command line to cc. : >>> Would rebuilding the compiler with multilibs fix that problem? Or does : >>> it assume a library structure that isn't in place on FreeBSD? : >> I believe it is a library structure problem. You need at least : >> a 32-bit and 64-bit libgcc.so. When you use -m32 the compiler : >> goes looking for an appropriate libgcc.so and only finds a 64-bit : >> version. : > : > Yup. If you tell it -L/usr/lib32 (which gets installed if you build the : > world with WITH_LIB32 defined), it'll find that. Then complain because : > /lib/crt1.o is the 64 bit one. If I use the command line arguments: : > : > -m32 -nostartfiles /usr/lib32/crt1.o /usr/lib32/crti.o \ : > /usr/lib32/crtbegin.o /usr/lib32/crtend.o /usr/lib32/crtn.o -L/usr/lib32 : > : > simple programs build and run properly. : : If gcc is built with multilib, it's my understanding that you : don't need to do all of this commandline mangling. You also don't need it if you build gcc and binutils with a tools prefix :-) Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 07:34:06 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0A5B16A4DD for ; Mon, 28 Aug 2006 07:34:06 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.FreeBSD.org (Postfix) with SMTP id 59FC343D46 for ; Mon, 28 Aug 2006 07:34:06 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 1062 invoked by uid 399); 28 Aug 2006 07:34:05 -0000 Received: from localhost (HELO ?192.168.0.3?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 28 Aug 2006 07:34:05 -0000 Message-ID: <44F29C6B.5080905@FreeBSD.org> Date: Mon, 28 Aug 2006 00:34:03 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.5 (X11/20060729) MIME-Version: 1.0 To: "Yuan, Jue" References: <200608251958.09341.yuanjue02@gmail.com> In-Reply-To: <200608251958.09341.yuanjue02@gmail.com> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: How to change kernel version tag? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 07:34:06 -0000 Yuan, Jue wrote: > Hi all. > > Could I change the kernel version tag manually? /sys/conf/newvers.sh hth, Doug -- This .signature sanitized for your protection From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 13:00:54 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7670B16A4DD for ; Mon, 28 Aug 2006 13:00:54 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEC7043D6B for ; Mon, 28 Aug 2006 13:00:47 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 1281 invoked from network); 28 Aug 2006 13:00:45 -0000 Received: from unknown (HELO localhost) (775067@[217.50.145.224]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 28 Aug 2006 13:00:45 -0000 Date: Mon, 28 Aug 2006 15:00:39 +0200 From: Fabian Keil To: Mike Meyer Message-ID: <20060828150039.21e8bd4a@localhost> In-Reply-To: <17649.54252.987757.501860@bhuda.mired.org> References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> <17649.9146.307818.780974@bhuda.mired.org> <44F1B7B7.9090701@erdgeist.org> <17649.54252.987757.501860@bhuda.mired.org> X-Mailer: Sylpheed-Claws 2.3.1 (GTK+ 2.8.19; i386-portbld-freebsd6.1) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_RMpzPGi5+9/l2Bb4gAbZfll"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: hackers@freebsd.org, Dirk Engling Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 13:00:54 -0000 --Sig_RMpzPGi5+9/l2Bb4gAbZfll Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Mike Meyer wrote: > In <44F1B7B7.9090701@erdgeist.org>, Dirk Engling = typed: > > > The default configuration doesn't expose sendmail to the publicly > > > visible IP addres. The daemon it runs only listens for connections to > > > the localhost address. > > Which is rewritten to the jails (externally visible) address on a conne= ct() >=20 > Yup. I wasn't aware of that strange behavior of jails. That should be > fixed. Fixed how? Disallow jailed applications to connect to 127.0.0.1, and thus break most of them, or have them reach 127.0.0.1 on the host system and weaken the security?=20 I think the "strange behaviour" makes sense and it certainly makes jailing servers easier. Because of the security aspect it's a good idea to have the jail run on a private IP address that's only reachable through packet filter and port forwarding anyway. Don't forward the ports you don't need and the "problem" is solved. =20 > I think the better fix would be to make jails not expose their > localhost IP address to the outside world. Exactly. Fabian --=20 http://www.fabiankeil.de/ --Sig_RMpzPGi5+9/l2Bb4gAbZfll Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE8uj7BYqIVf93VJ0RAjQKAJ96zA8j3IGgbg2x0NoHVR6n4dihPgCfcRQt zY3/PvdLUFCS7nYHaNOiyZk= =cUEe -----END PGP SIGNATURE----- --Sig_RMpzPGi5+9/l2Bb4gAbZfll-- From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 13:38:54 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9BD916A4DD for ; Mon, 28 Aug 2006 13:38:54 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id 4FA7443D46 for ; Mon, 28 Aug 2006 13:38:53 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 56735 invoked by uid 1001); 28 Aug 2006 13:38:44 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Mon, 28 Aug 2006 09:38:44 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17650.61924.263953.172573@bhuda.mired.org> Date: Mon, 28 Aug 2006 09:38:44 -0400 To: Fabian Keil In-Reply-To: <20060828150039.21e8bd4a@localhost> References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> <17649.9146.307818.780974@bhuda.mired.org> <44F1B7B7.9090701@erdgeist.org> <17649.54252.987757.501860@bhuda.mired.org> <20060828150039.21e8bd4a@localhost> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: Dirk Engling , hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 13:38:54 -0000 In <20060828150039.21e8bd4a@localhost>, Fabian Keil typed: > Mike Meyer wrote: > > > In <44F1B7B7.9090701@erdgeist.org>, Dirk Engling typed: > > > > > The default configuration doesn't expose sendmail to the publicly > > > > visible IP addres. The daemon it runs only listens for connections to > > > > the localhost address. > > > Which is rewritten to the jails (externally visible) address on a connect() > > Yup. I wasn't aware of that strange behavior of jails. That should be > > fixed. > Fixed how? Disallow jailed applications to connect to 127.0.0.1, > and thus break most of them, or have them reach 127.0.0.1 on the > host system and weaken the security? > > > I think the better fix would be to make jails not expose their > > localhost IP address to the outside world. > Exactly. Ok, I'm confused. Exactly how is fixing jails to not expose their localhost IP address to the outside world not fixing this strange behavior of jails? http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 14:23:46 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D7A616A4DD for ; Mon, 28 Aug 2006 14:23:46 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay01.ispgateway.de (smtprelay01.ispgateway.de [80.67.18.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id A262A43D45 for ; Mon, 28 Aug 2006 14:23:45 +0000 (GMT) (envelope-from freebsd-listen@fabiankeil.de) Received: (qmail 12879 invoked from network); 28 Aug 2006 14:23:43 -0000 Received: from unknown (HELO localhost) (775067@[217.50.145.224]) (envelope-sender ) by smtprelay01.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 28 Aug 2006 14:23:43 -0000 Date: Mon, 28 Aug 2006 16:23:34 +0200 From: Fabian Keil To: Mike Meyer Message-ID: <20060828162334.5c026d7f@localhost> In-Reply-To: <17650.61924.263953.172573@bhuda.mired.org> References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> <17649.9146.307818.780974@bhuda.mired.org> <44F1B7B7.9090701@erdgeist.org> <17649.54252.987757.501860@bhuda.mired.org> <20060828150039.21e8bd4a@localhost> <17650.61924.263953.172573@bhuda.mired.org> X-Mailer: Sylpheed-Claws 2.3.1 (GTK+ 2.8.19; i386-portbld-freebsd6.1) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_7F1O4vtrsXk64b68W_uM4eS; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: Dirk Engling , hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 14:23:46 -0000 --Sig_7F1O4vtrsXk64b68W_uM4eS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Mike Meyer wrote: > In <20060828150039.21e8bd4a@localhost>, Fabian Keil typed: > > Mike Meyer wrote: > >=20 > > > In <44F1B7B7.9090701@erdgeist.org>, Dirk Engling typed: > >=20 > > > > > The default configuration doesn't expose sendmail to the publicly > > > > > visible IP addres. The daemon it runs only listens for connection= s to > > > > > the localhost address. > > > > Which is rewritten to the jails (externally visible) address on a c= onnect() > > > Yup. I wasn't aware of that strange behavior of jails. That should be > > > fixed. > > Fixed how? Disallow jailed applications to connect to 127.0.0.1, > > and thus break most of them, or have them reach 127.0.0.1 on the > > host system and weaken the security?=20 > > > > > I think the better fix would be to make jails not expose their > > > localhost IP address to the outside world. > > Exactly. I think I misunderstood what you where saying here, sorry. I assumed you meant the user should run the jail on one of the addresses in the 127.0.0.0/8 range, while you probably were suggesting jails should have their own localhost IP address that is different from their outside IP address? =20 > Ok, I'm confused. Exactly how is fixing jails to not expose their > localhost IP address to the outside world not fixing this strange > behavior of jails? AFAICS jails currently have no localhost IP address they could expose. They have one IP address that is always visible from the host system, and conveniently jailed applications that try to bind to 127.0.0.1 get connected to the one jail IP address, instead of receiving an error or getting through to the host system's localhost. Fabian --=20 http://www.fabiankeil.de/ --Sig_7F1O4vtrsXk64b68W_uM4eS Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE8vxtBYqIVf93VJ0RAr7KAJ0a6eg7V8xgyqlwTtlOP7qbT+F3KQCgkO5v Y6bDfzN0bDcFXhBwdm9He4w= =feuF -----END PGP SIGNATURE----- --Sig_7F1O4vtrsXk64b68W_uM4eS-- From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 16:11:16 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1237116A4E5; Mon, 28 Aug 2006 16:11:16 +0000 (UTC) (envelope-from josemi@freebsd.jazztel.es) Received: from smtp01.jazztel.es (smtp01.jazztel.es [62.14.3.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E41E43D7B; Mon, 28 Aug 2006 16:11:04 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from [87.217.186.195] (helo=[192.168.254.128]) by smtp01.jazztel.es with esmtpa (Exim 4.60) (envelope-from ) id 1GHjec-0007Ih-Vi; Mon, 28 Aug 2006 18:08:03 +0200 Message-ID: <44F31597.8080004@freebsd.jazztel.es> Date: Mon, 28 Aug 2006 18:11:03 +0200 From: Jose M Rodriguez User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Gregory Shapiro References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> <17649.9146.307818.780974@bhuda.mired.org> <20060827045842.GA1032@gir.gshapiro.net> In-Reply-To: <20060827045842.GA1032@gir.gshapiro.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: hackers@freebsd.org, Dirk Engling , Mike Meyer Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 16:11:16 -0000 Gregory Shapiro escribió: >> The default configuration doesn't expose sendmail to the publicly >> visible IP addres. The daemon it runs only listens for connections to >> the localhost address. >> > > Unfortunately, in jails, localhost gets remapped to the jail IP > address and therefore, he is correct, it is accepting connections > from the outside world. This is one thing that I would love to > see fixed in jails. > So you must use a specific submit.mc/.cf pointing to the correct MSP IP, not to 127.0.0.1. -- josemi > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 16:19:22 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D546116A4E0 for ; Mon, 28 Aug 2006 16:19:22 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 397C343D5D for ; Mon, 28 Aug 2006 16:19:19 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (klmrwv@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k7SGJ4qC065262; Mon, 28 Aug 2006 18:19:10 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k7SGIwWh065261; Mon, 28 Aug 2006 18:18:58 +0200 (CEST) (envelope-from olli) Date: Mon, 28 Aug 2006 18:18:58 +0200 (CEST) Message-Id: <200608281618.k7SGIwWh065261@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, rick-freebsd@kiwi-computer.com, mlobo@digiart.art.br In-Reply-To: <20060826225350.GA20172@megan.kiwi-computer.com> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 28 Aug 2006 18:19:11 +0200 (CEST) Cc: Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, rick-freebsd@kiwi-computer.com, mlobo@digiart.art.br List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 16:19:22 -0000 Rick C. Petty wrote: > Mario Lobo wrote: > > My /usr/ports directory was occuping 24 gigs, of which 20 was just from the > > 'work' directories ! You should type "make clean" more often. ;-) > > Removing them one by one was a pain so I wrote this little utility to wipe > > them off. > > I find that the following command works just fine for me: > > find /usr/ports -type d -name work -prune -print -delete The following is probably the most efficient solution. It doesn't run into all subdirectories (and works with an arbitrary numebr of subdirectories). cd /usr/ports; echo */*/work | xargs rm -rf Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "I started using PostgreSQL around a month ago, and the feeling is similar to the switch from Linux to FreeBSD in '96 -- 'wow!'." -- Oddbjorn Steffensen From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 16:22:07 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC80616A4DD for ; Mon, 28 Aug 2006 16:22:07 +0000 (UTC) (envelope-from dking@ketralnis.com) Received: from ketralnis.com (melchoir.ketralnis.com [68.183.67.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B79F43D72 for ; Mon, 28 Aug 2006 16:22:07 +0000 (GMT) (envelope-from dking@ketralnis.com) Received: from [192.168.1.27] (pix.xythos.com [64.154.218.194]) (authenticated bits=0) by ketralnis.com (8.13.6/8.13.6) with ESMTP id k7SGM683086929 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Mon, 28 Aug 2006 09:22:06 -0700 (PDT) (envelope-from dking@ketralnis.com) Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <20060828150039.21e8bd4a@localhost> References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> <17649.9146.307818.780974@bhuda.mired.org> <44F1B7B7.9090701@erdgeist.org> <17649.54252.987757.501860@bhuda.mired.org> <20060828150039.21e8bd4a@localhost> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2F8CA526-B1E8-4427-90A6-8FA8B56D0CF3@ketralnis.com> Content-Transfer-Encoding: 7bit From: David King Date: Mon, 28 Aug 2006 09:21:52 -0700 To: freebsd-hackers@freebsd.org X-Mailer: Apple Mail (2.752.2) Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 16:22:07 -0000 >>>> The default configuration doesn't expose sendmail to the publicly >>>> visible IP addres. The daemon it runs only listens for >>>> connections to >>>> the localhost address. >>> Which is rewritten to the jails (externally visible) address on a >>> connect() >> Yup. I wasn't aware of that strange behavior of jails. That should be >> fixed. > Fixed how? Disallow jailed applications to connect to 127.0.0.1, > and thus break most of them, or have them reach 127.0.0.1 on the > host system and weaken the security? Would it be too much to ask to let the system keep lo0, and give the first jail lo1, the second jail lo2...? That is, a separate loopback for each jail? From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 16:42:20 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DC9716A4DE for ; Mon, 28 Aug 2006 16:42:20 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (megan.kiwi-computer.com [63.224.10.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 28CCA43D55 for ; Mon, 28 Aug 2006 16:42:19 +0000 (GMT) (envelope-from rick@kiwi-computer.com) Received: (qmail 34303 invoked by uid 2001); 28 Aug 2006 16:42:18 -0000 Date: Mon, 28 Aug 2006 11:42:18 -0500 From: "Rick C. Petty" To: freebsd-hackers@FreeBSD.ORG, mlobo@digiart.art.br Message-ID: <20060828164218.GA34151@megan.kiwi-computer.com> References: <20060826225350.GA20172@megan.kiwi-computer.com> <200608281618.k7SGIwWh065261@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608281618.k7SGIwWh065261@lurza.secnetix.de> User-Agent: Mutt/1.4.2.1i Cc: Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 16:42:20 -0000 On Mon, Aug 28, 2006 at 06:18:58PM +0200, Oliver Fromme wrote: > Rick C. Petty wrote: > > > > I find that the following command works just fine for me: > > > > find /usr/ports -type d -name work -prune -print -delete > > The following is probably the most efficient solution. > It doesn't run into all subdirectories (and works with > an arbitrary numebr of subdirectories). > > cd /usr/ports; echo */*/work | xargs rm -rf You might as well just do: rm -rf /usr/ports/*/*/work because using xargs doesn't gain you anything in this case. How does your example work with an arbitrary number of subdirectories? Your example does't work if the number of work directories exceeds the maximum number of arguments (4096 IIRC), which can happen amidst 16,000 ports. This bit me once so I use find now (granted this was before I was using portupgrade). Also I don't see how your example is any more efficient than find-- you're just making the shell do the work instead of find. In either case, it's just a sequence of opendir()/readdir(). In fact your example would start secondary processes to do the directory removal; find has this built in and thus doesn't have the overhead of process forking. Perhaps if on an arbitrary directory tree, find may not be as efficient, but the only directories deeper than depth of two (in my example) are work directories, and they would be pruned. -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 18:18:57 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74C3816A4DE for ; Mon, 28 Aug 2006 18:18:57 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id D7FDB43D53 for ; Mon, 28 Aug 2006 18:18:56 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 92404 invoked by uid 1001); 28 Aug 2006 18:18:48 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Mon, 28 Aug 2006 14:18:48 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17651.13192.130964.315409@bhuda.mired.org> Date: Mon, 28 Aug 2006 14:18:48 -0400 To: rick-freebsd@kiwi-computer.com In-Reply-To: <20060828164218.GA34151@megan.kiwi-computer.com> References: <20060826225350.GA20172@megan.kiwi-computer.com> <200608281618.k7SGIwWh065261@lurza.secnetix.de> <20060828164218.GA34151@megan.kiwi-computer.com> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: freebsd-hackers@FreeBSD.ORG, mlobo@digiart.art.br Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 18:18:57 -0000 In <20060828164218.GA34151@megan.kiwi-computer.com>, Rick C. Petty typed: > On Mon, Aug 28, 2006 at 06:18:58PM +0200, Oliver Fromme wrote: > > Rick C. Petty wrote: > > > I find that the following command works just fine for me: > > > find /usr/ports -type d -name work -prune -print -delete > > The following is probably the most efficient solution. > > It doesn't run into all subdirectories (and works with > > an arbitrary numebr of subdirectories). > > cd /usr/ports; echo */*/work | xargs rm -rf > You might as well just do: > rm -rf /usr/ports/*/*/work > because using xargs doesn't gain you anything in this case. How does your > example work with an arbitrary number of subdirectories? If echo is a shell built in, then it works just fine, and the xargs insures that you don't try passing to many arguments to rm. > Your example does't work if the number of work directories exceeds the > maximum number of arguments That limit is in the kernel exec. If echo is a shell built in, then the kernel exec doesn't gets involved until after xargs has had a chance to chop the list of arguments up. If you used "rm" instead of echo, that isn't the case. > Also I don't see how your example is any more efficient than find-- you're > just making the shell do the work instead of find. Find will check *every file* in *every directory* to see if it's named "work" or not. The shell version won't make that test on the first two levels of directories; it just expands them. > In either case, it's > just a sequence of opendir()/readdir(). In fact your example would start > secondary processes to do the directory removal; find has this built in > and thus doesn't have the overhead of process forking. And now you get into the question of what "efficient" means. Either process is going to spend most of it's time waiting on the disk. With the find, nothing else is happening while that's going on. With multiple processes, there's a possibility that one can be working while the other is waiting on the disk, so it might take more CPU time while taking less wall clock time. Which is more efficient? [NB: This is grossly oversimplified, but you get the general idea.] > Perhaps if on an > arbitrary directory tree, find may not be as efficient, but the only > directories deeper than depth of two (in my example) are work directories, > and they would be pruned. You forgot the files directories that some ports have. Your version will look through those for "work", the glob won't. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 19:05:27 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B63F16A4E1 for ; Mon, 28 Aug 2006 19:05:27 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (megan.kiwi-computer.com [63.224.10.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 91C7243D55 for ; Mon, 28 Aug 2006 19:05:26 +0000 (GMT) (envelope-from rick@kiwi-computer.com) Received: (qmail 35451 invoked by uid 2001); 28 Aug 2006 19:05:25 -0000 Date: Mon, 28 Aug 2006 14:05:25 -0500 From: "Rick C. Petty" To: Mike Meyer Message-ID: <20060828190525.GA35217@megan.kiwi-computer.com> References: <20060826225350.GA20172@megan.kiwi-computer.com> <200608281618.k7SGIwWh065261@lurza.secnetix.de> <20060828164218.GA34151@megan.kiwi-computer.com> <17651.13192.130964.315409@bhuda.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17651.13192.130964.315409@bhuda.mired.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 19:05:27 -0000 On Mon, Aug 28, 2006 at 02:18:48PM -0400, Mike Meyer wrote: > > If echo is a shell built in, then it works just fine, and the xargs > insures that you don't try passing to many arguments to rm. Ah! I was mistaken; I didn't think about builtins not requiring argument passing. > > Also I don't see how your example is any more efficient than find-- you're > > just making the shell do the work instead of find. > > Find will check *every file* in *every directory* to see if it's named > "work" or not. The shell version won't make that test on the first two > levels of directories; it just expands them. Forgot about those as well. I retract my previous suggestion, now in favor of: find /usr/ports -depth 3 -prune -o -type d -name work -prune -print -delete This will prevent from going into the files directories. This method doesn't have the extra process overhead. > And now you get into the question of what "efficient" means. Either > process is going to spend most of it's time waiting on the disk. With > the find, nothing else is happening while that's going on. With > multiple processes, there's a possibility that one can be working > while the other is waiting on the disk, so it might take more CPU time > while taking less wall clock time. Which is more efficient? [NB: This > is grossly oversimplified, but you get the general idea.] In general I would agree with you. But in this case, either the shell is doing a loop over readdir() and applying its glob internally or find is doing the loop over readdir() and applying its glob via regexec(3). In either case, the CPU time should be relatively similar. In the find case, a syscall is applied whereas the shell spits this to the xargs process thru a pipe, who has to malloc/memcpy the lines and start at least one other process, which then applies the syscall. To me, this sounds like a lot more CPU time. I'm not convinced find would take any longer wallclock time. It would be interesting to see some stats on both methods, with and without the benefit of FreeBSD's filesystem caching mechanisms. Regardless, the find command is certainly not faster to type for some people, and really what's important is how much operator time is spent. One nice thing about unix is that there's more than one way to skin a cat(1), pardon the pun. So use what you feel more comfortable using! Three cheers for free unix, -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 01:01:22 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C88B16A4DE for ; Tue, 29 Aug 2006 01:01:22 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id BB29043D45 for ; Tue, 29 Aug 2006 01:01:21 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 25592 invoked by uid 1001); 29 Aug 2006 01:01:13 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Mon, 28 Aug 2006 21:01:13 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17651.37337.346614.609322@bhuda.mired.org> Date: Mon, 28 Aug 2006 21:01:13 -0400 To: hackers@freebsd.org X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) Cc: Subject: Speaking of trivial tools X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 01:01:22 -0000 I realized today that this one was possible. I suspect it would be useful to lots of people working on ports, as well as for the sysadmin stuff I do with it. I'm just not sure where it should goes. -------------------- checkdeps.sh #!/bin/sh TMPFILE=/tmp/checkdeps.$$ pkg_info -r $1 | sed -n 's/Dependency: //p' | sort -u > $TMPFILE ldd $(pkg_info -L $1) 2>/dev/null | \ sed -e '/^\//d' -e 's/.*=> //' -e 's/(.*)//' | \ sort -u | \ xargs -n 1 pkg_info -W | \ sed 's/.* //' | \ grep -v $1 | \ sort -u | \ comm -23 - $TMPFILE rm $TMPFILE -------------------- Hand it a package name as an argument, and it'll print out the names of any packages providing libraries used by binaries in the package given as an argument that aren't listed as a dependency for that package. I fed it my complete list of packages, and it turned up some interesting things - like a package that had a dependency on a newer version of itself(!). This is just a QAD hack. It certainly got a lot of rough edges yet. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 02:08:32 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D9C416A4DD for ; Tue, 29 Aug 2006 02:08:32 +0000 (UTC) (envelope-from matthew@digitalstratum.com) Received: from mail.mundomateo.com (static-24-56-193-117.chrlmi.cablespeed.com [24.56.193.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4233443D45 for ; Tue, 29 Aug 2006 02:08:32 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from [10.0.81.14] (unknown [10.0.81.1]) by mail.mundomateo.com (Postfix) with ESMTP id 79EC4BDC4E for ; Mon, 28 Aug 2006 22:08:31 -0400 (EDT) Message-ID: <44F3A211.7050907@digitalstratum.com> Date: Mon, 28 Aug 2006 22:10:25 -0400 From: Matthew Hagerty Organization: Digital Stratum User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Hard disk going-bad detection X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: matthew@digitalstratum.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 02:08:32 -0000 Greetings, I have a hard drive that every now and then makes a sound like the head is moving from one extreme to the other, then parking. It is hard to explain, kind of a towk-kok-click with a metallic ring to it. If you have heard a drive do this before, you know the sound. I heard a drive do this to me a few months ago and it failed shortly thereafter. I have 3 drives in the system so it is very hard to know which drive it is, so in an attempt to get a new drive before the one fails out right, is there any way I can test the drives in place? One drive is primarily my system disk (20G), the second (120G) has /usr mounted on it, and the third (120G) is mounted, rsync'd, umounted every night to make a backup of the other two. So, the backup drive I can test no problem, even destructively if necessary. However, the two that make up the active system I would like to be able to test without disrupting normal operation if possible? But, I'll take the box offline for a bit if necessary. Any insight would be greatly appreciated. Thank you, Matthew From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 02:14:38 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA0C016A4E2 for ; Tue, 29 Aug 2006 02:14:38 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B35143D46 for ; Tue, 29 Aug 2006 02:14:38 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.24] (andersonbox4.centtech.com [192.168.42.24]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k7T2Eavn013974; Mon, 28 Aug 2006 21:14:36 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44F3A30C.1080305@centtech.com> Date: Mon, 28 Aug 2006 21:14:36 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: matthew@digitalstratum.com References: <44F3A211.7050907@digitalstratum.com> In-Reply-To: <44F3A211.7050907@digitalstratum.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1745/Mon Aug 28 10:02:21 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org Subject: Re: Hard disk going-bad detection X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 02:14:38 -0000 On 08/28/06 21:10, Matthew Hagerty wrote: > Greetings, > > I have a hard drive that every now and then makes a sound like the head > is moving from one extreme to the other, then parking. It is hard to > explain, kind of a towk-kok-click with a metallic ring to it. If you > have heard a drive do this before, you know the sound. I heard a drive > do this to me a few months ago and it failed shortly thereafter. > > I have 3 drives in the system so it is very hard to know which drive it > is, so in an attempt to get a new drive before the one fails out right, > is there any way I can test the drives in place? One drive is primarily > my system disk (20G), the second (120G) has /usr mounted on it, and the > third (120G) is mounted, rsync'd, umounted every night to make a backup > of the other two. So, the backup drive I can test no problem, even > destructively if necessary. However, the two that make up the active > system I would like to be able to test without disrupting normal > operation if possible? But, I'll take the box offline for a bit if > necessary. Any insight would be greatly appreciated. You didn't mention what type of drives, so I'll assume ATA. Take a look at smartd. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 02:16:38 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8BFD116A4DA for ; Tue, 29 Aug 2006 02:16:38 +0000 (UTC) (envelope-from artifact.one@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB04343D53 for ; Tue, 29 Aug 2006 02:16:37 +0000 (GMT) (envelope-from artifact.one@googlemail.com) Received: by nf-out-0910.google.com with SMTP id n29so96788nfc for ; Mon, 28 Aug 2006 19:16:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UsNznRhA0jfwbgcjl+RsWozf01dTlLh4hRwQFDP1EqihPL8yKXrDC7tzYDHfr9Z3quoZ0NGo3P0C9AE4RAHIc9IfwQ3Vz5XNdNyYpRfgqbn+taL/BXBcEsFp3I0iQVg7Y9NwZDMYmaAqC+joDi3t0tKmdcl8x4atfWl5kV2Qw5Q= Received: by 10.49.94.20 with SMTP id w20mr426639nfl; Mon, 28 Aug 2006 19:16:33 -0700 (PDT) Received: by 10.49.54.3 with HTTP; Mon, 28 Aug 2006 19:16:28 -0700 (PDT) Message-ID: <8e96a0b90608281916g497196e5w74ffca9356672026@mail.gmail.com> Date: Tue, 29 Aug 2006 03:16:28 +0100 From: "mal content" To: matthew@digitalstratum.com In-Reply-To: <44F3A211.7050907@digitalstratum.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44F3A211.7050907@digitalstratum.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Hard disk going-bad detection X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 02:16:38 -0000 On 29/08/06, Matthew Hagerty wrote: > Greetings, > > I have a hard drive that every now and then makes a sound like the head > is moving from one extreme to the other, then parking. It is hard to > explain, kind of a towk-kok-click with a metallic ring to it. If you > have heard a drive do this before, you know the sound. I heard a drive > do this to me a few months ago and it failed shortly thereafter. > > I have 3 drives in the system so it is very hard to know which drive it > is, so in an attempt to get a new drive before the one fails out right, > is there any way I can test the drives in place? One drive is primarily > my system disk (20G), the second (120G) has /usr mounted on it, and the > third (120G) is mounted, rsync'd, umounted every night to make a backup > of the other two. So, the backup drive I can test no problem, even > destructively if necessary. However, the two that make up the active > system I would like to be able to test without disrupting normal > operation if possible? But, I'll take the box offline for a bit if > necessary. Any insight would be greatly appreciated. > Your setup is exactly identical to mine, even down to mount points and disk sizes. Try smartmontools, most drives support S.M.A.R.T so you should have no trouble: http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/smartmontools/ It's useful for identifying drives that are about to die. You shouldn't need to take the machine offline. MC From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 04:22:08 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92BEB16A4DD for ; Tue, 29 Aug 2006 04:22:08 +0000 (UTC) (envelope-from matthew@digitalstratum.com) Received: from mail.mundomateo.com (static-24-56-193-117.chrlmi.cablespeed.com [24.56.193.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40A8B43D46 for ; Tue, 29 Aug 2006 04:22:08 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from [10.0.81.14] (unknown [10.0.81.1]) by mail.mundomateo.com (Postfix) with ESMTP id 7990BBDC4C; Tue, 29 Aug 2006 00:22:07 -0400 (EDT) Message-ID: <44F3C160.3020300@digitalstratum.com> Date: Tue, 29 Aug 2006 00:24:00 -0400 From: Matthew Hagerty Organization: Digital Stratum User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Eric Anderson References: <44F3A211.7050907@digitalstratum.com> <44F3A30C.1080305@centtech.com> In-Reply-To: <44F3A30C.1080305@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Hard disk going-bad detection X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: matthew@digitalstratum.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 04:22:08 -0000 Eric Anderson wrote: > On 08/28/06 21:10, Matthew Hagerty wrote: >> Greetings, >> >> I have a hard drive that every now and then makes a sound like the >> head is moving from one extreme to the other, then parking. It is >> hard to explain, kind of a towk-kok-click with a metallic ring to >> it. If you have heard a drive do this before, you know the sound. I >> heard a drive do this to me a few months ago and it failed shortly >> thereafter. >> >> I have 3 drives in the system so it is very hard to know which drive >> it is, so in an attempt to get a new drive before the one fails out >> right, is there any way I can test the drives in place? One drive is >> primarily my system disk (20G), the second (120G) has /usr mounted on >> it, and the third (120G) is mounted, rsync'd, umounted every night to >> make a backup of the other two. So, the backup drive I can test no >> problem, even destructively if necessary. However, the two that make >> up the active system I would like to be able to test without >> disrupting normal operation if possible? But, I'll take the box >> offline for a bit if necessary. Any insight would be greatly >> appreciated. > > > > You didn't mention what type of drives, so I'll assume ATA. Take a > look at smartd. > > Eric > > Sorry, forgot that part. Yes, they are ATA-100 (IBM deskstar if I remember correctly). I'll look into smartd, thanks for the info! Matthew From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 04:27:20 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B154516A4DA for ; Tue, 29 Aug 2006 04:27:20 +0000 (UTC) (envelope-from matthew@digitalstratum.com) Received: from mail.mundomateo.com (static-24-56-193-117.chrlmi.cablespeed.com [24.56.193.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BD9B43D49 for ; Tue, 29 Aug 2006 04:27:20 +0000 (GMT) (envelope-from matthew@digitalstratum.com) Received: from [10.0.81.14] (unknown [10.0.81.1]) by mail.mundomateo.com (Postfix) with ESMTP id D8B5CBDC4C; Tue, 29 Aug 2006 00:27:19 -0400 (EDT) Message-ID: <44F3C299.2030003@digitalstratum.com> Date: Tue, 29 Aug 2006 00:29:13 -0400 From: Matthew Hagerty Organization: Digital Stratum User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: mal content References: <44F3A211.7050907@digitalstratum.com> <8e96a0b90608281916g497196e5w74ffca9356672026@mail.gmail.com> In-Reply-To: <8e96a0b90608281916g497196e5w74ffca9356672026@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Hard disk going-bad detection X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: matthew@digitalstratum.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 04:27:20 -0000 mal content wrote: > On 29/08/06, Matthew Hagerty wrote: >> Greetings, >> >> I have a hard drive that every now and then makes a sound like the head >> is moving from one extreme to the other, then parking. It is hard to >> explain, kind of a towk-kok-click with a metallic ring to it. If you >> have heard a drive do this before, you know the sound. I heard a drive >> do this to me a few months ago and it failed shortly thereafter. >> >> I have 3 drives in the system so it is very hard to know which drive it >> is, so in an attempt to get a new drive before the one fails out right, >> is there any way I can test the drives in place? One drive is primarily >> my system disk (20G), the second (120G) has /usr mounted on it, and the >> third (120G) is mounted, rsync'd, umounted every night to make a backup >> of the other two. So, the backup drive I can test no problem, even >> destructively if necessary. However, the two that make up the active >> system I would like to be able to test without disrupting normal >> operation if possible? But, I'll take the box offline for a bit if >> necessary. Any insight would be greatly appreciated. >> > > Your setup is exactly identical to mine, even down to mount points and > disk sizes. > > Try smartmontools, most drives support S.M.A.R.T so you should have > no trouble: > > http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/smartmontools/ > > It's useful for identifying drives that are about to die. > > You shouldn't need to take the machine offline. > > MC Does SMART have to be enabled in the BIOS for smartmontools to work? I've always seen the SMART setting in the BIOS but it is always been defaulted to "disabled" on just about every motherboard I have ever worked with, and I never took the time to look up what it was. I'll give smartd and smartmontools a try and see what they tell me. Thanks. Matthew From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 04:45:47 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8E4716A4DE for ; Tue, 29 Aug 2006 04:45:46 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from samus.cyberbotx.com (c-68-61-58-20.hsd1.mi.comcast.net [68.61.58.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 811E043D46 for ; Tue, 29 Aug 2006 04:45:44 +0000 (GMT) (envelope-from cyberbotx@cyberbotx.com) Received: from localhost (localhost [127.0.0.1]) by samus.cyberbotx.com (Postfix) with ESMTP id A2DD8C505 for ; Tue, 29 Aug 2006 00:45:43 -0400 (EDT) X-Virus-Scanned: amavisd-new at cyberbotx.com Received: from samus.cyberbotx.com ([127.0.0.1]) by localhost (samus.cyberbotx.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id euzrqMU-K0pv for ; Tue, 29 Aug 2006 00:42:02 -0400 (EDT) Received: from metroid (unknown [192.168.2.254]) by samus.cyberbotx.com (Postfix) with SMTP id 503A0C65A for ; Tue, 29 Aug 2006 00:41:37 -0400 (EDT) Message-ID: <027301c6cb25$6b0cd770$fe02a8c0@metroid> From: "Naram Qashat" To: References: <44F3A211.7050907@digitalstratum.com><8e96a0b90608281916g497196e5w74ffca9356672026@mail.gmail.com> <44F3C299.2030003@digitalstratum.com> Date: Tue, 29 Aug 2006 00:41:37 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Subject: Re: Hard disk going-bad detection X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 04:45:47 -0000 smartmontools can enable SMART on your hard drives even if the BIOS had disabled them. Sometimes it can even force the BIOS to always turn it on, but it does depend on the BIOS. Some of them are picky about that. Naram Qashat ----- Original Message ----- From: "Matthew Hagerty" To: "mal content" Cc: Sent: Tuesday, August 29, 2006 12:29 AM Subject: Re: Hard disk going-bad detection > mal content wrote: > > On 29/08/06, Matthew Hagerty wrote: > >> Greetings, > >> > >> I have a hard drive that every now and then makes a sound like the head > >> is moving from one extreme to the other, then parking. It is hard to > >> explain, kind of a towk-kok-click with a metallic ring to it. If you > >> have heard a drive do this before, you know the sound. I heard a drive > >> do this to me a few months ago and it failed shortly thereafter. > >> > >> I have 3 drives in the system so it is very hard to know which drive it > >> is, so in an attempt to get a new drive before the one fails out right, > >> is there any way I can test the drives in place? One drive is primarily > >> my system disk (20G), the second (120G) has /usr mounted on it, and the > >> third (120G) is mounted, rsync'd, umounted every night to make a backup > >> of the other two. So, the backup drive I can test no problem, even > >> destructively if necessary. However, the two that make up the active > >> system I would like to be able to test without disrupting normal > >> operation if possible? But, I'll take the box offline for a bit if > >> necessary. Any insight would be greatly appreciated. > >> > > > > Your setup is exactly identical to mine, even down to mount points and > > disk sizes. > > > > Try smartmontools, most drives support S.M.A.R.T so you should have > > no trouble: > > > > http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/smartmontools/ > > > > It's useful for identifying drives that are about to die. > > > > You shouldn't need to take the machine offline. > > > > MC > > Does SMART have to be enabled in the BIOS for smartmontools to work? > I've always seen the SMART setting in the BIOS but it is always been > defaulted to "disabled" on just about every motherboard I have ever > worked with, and I never took the time to look up what it was. I'll > give smartd and smartmontools a try and see what they tell me. Thanks. > > Matthew > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 05:32:48 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B3F516A4DF for ; Tue, 29 Aug 2006 05:32:48 +0000 (UTC) (envelope-from rcoleman@criticalmagic.com) Received: from saturn.criticalmagic.com (saturn.criticalmagic.com [69.61.68.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05FB143D49 for ; Tue, 29 Aug 2006 05:32:47 +0000 (GMT) (envelope-from rcoleman@criticalmagic.com) Received: from [172.16.0.12] (adsl-074-229-078-253.sip.asm.bellsouth.net [74.229.78.253]) by saturn.criticalmagic.com (Postfix) with ESMTP id 0F5A03BD21; Tue, 29 Aug 2006 01:32:47 -0400 (EDT) Message-ID: <44F3D17E.6050405@criticalmagic.com> Date: Tue, 29 Aug 2006 01:32:46 -0400 From: Richard Coleman Organization: Critical Magic User-Agent: Thunderbird 1.5.0.5 (X11/20060823) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG, rick-freebsd@kiwi-computer.com, mlobo@digiart.art.br References: <200608281618.k7SGIwWh065261@lurza.secnetix.de> In-Reply-To: <200608281618.k7SGIwWh065261@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 05:32:48 -0000 Oliver Fromme wrote: > The following is probably the most efficient solution. > It doesn't run into all subdirectories (and works with > an arbitrary numebr of subdirectories). > > cd /usr/ports; echo */*/work | xargs rm -rf > > Best regards > Oliver > So does this: find /usr/ports -mindepth 3 -maxdepth 3 -name work -print -delete -prune I would be surprised if the globbing in most shells was more efficient than find. Although as mentioned before, nothing beats putting all the work directories in a single location, and using a single rm command. Richard Coleman rcoleman@criticalmagic.com From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 10:49:59 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4E4816A4E0 for ; Tue, 29 Aug 2006 10:49:59 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C11943D55 for ; Tue, 29 Aug 2006 10:49:58 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (jqdovs@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k7TAnjsc009696; Tue, 29 Aug 2006 12:49:51 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k7TAnf1h009695; Tue, 29 Aug 2006 12:49:41 +0200 (CEST) (envelope-from olli) Date: Tue, 29 Aug 2006 12:49:41 +0200 (CEST) Message-Id: <200608291049.k7TAnf1h009695@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@freebsd.org, rick-freebsd@kiwi-computer.com, mlobo@digiart.art.br, rcoleman@criticalmagic.com In-Reply-To: <44F3D17E.6050405@criticalmagic.com> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 29 Aug 2006 12:49:51 +0200 (CEST) Cc: Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@freebsd.org, rick-freebsd@kiwi-computer.com, mlobo@digiart.art.br, rcoleman@criticalmagic.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 10:49:59 -0000 Richard Coleman wrote: > Oliver Fromme wrote: > > The following is probably the most efficient solution. > > It doesn't run into all subdirectories (and works with > > an arbitrary numebr of subdirectories). > > > > cd /usr/ports; echo */*/work | xargs rm -rf > > So does this: > > find /usr/ports -mindepth 3 -maxdepth 3 -name work -print -delete -prune > > I would be surprised if the globbing in most shells was more > efficient than find. Both are mainly disk-bound, so the runtime should be about the same, I guess. (I'm too lazy to do any actual bench- marks with find and various shells.) > Although as mentioned before, nothing beats putting all the work > directories in a single location, and using a single rm command. Yes, there is something that beats it: If you put the work directories on their own filesystem, you can simply umount and newfs it, which is probably faster than rm -rf. If you use a memory filesystem (md device), it's even sufficient to just umount it. I think nothing beats that in terms of speed. ;-) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. $ dd if=/dev/urandom of=test.pl count=1 $ file test.pl test.pl: perl script text executable From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 16:25:02 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DC6F16A4DA for ; Tue, 29 Aug 2006 16:25:02 +0000 (UTC) (envelope-from bv@bilver.wjv.com) Received: from wjv.com (fl-65-40-24-38.sta.embarqhsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45FA843D5A for ; Tue, 29 Aug 2006 16:25:00 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.13.7/8.13.1) with ESMTP id k7TGOwKK025739 for ; Tue, 29 Aug 2006 12:24:58 -0400 (EDT) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.13.7/8.13.1/Submit) id k7TGOr59025732 for freebsd-hackers@freebsd.org; Tue, 29 Aug 2006 12:24:53 -0400 (EDT) (envelope-from bv) Date: Tue, 29 Aug 2006 12:24:53 -0400 From: Bill Vermillion To: freebsd-hackers@freebsd.org Message-ID: <20060829162452.GA88586@wjv.com> References: <20060829120052.0B1E416A5A0@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060829120052.0B1E416A5A0@hub.freebsd.org> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, SPF_HELO_PASS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on bilver.wjv.com Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bv@wjv.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 16:25:02 -0000 On Tue, Aug 29, 2006 at 12:00 freebsd-hackers-request@freebsd.org saw "Error reading FAT table? Try SKINNY table?" And promptly said: > Date: Mon, 28 Aug 2006 18:18:58 +0200 (CEST) > From: Oliver Fromme > Subject: Re: A handy utility (at least for me) > Rick C. Petty wrote: > > Mario Lobo wrote: > > > My /usr/ports directory was occuping 24 gigs, of which 20 > > > was just from the 'work' directories ! > You should type "make clean" more often. ;-) And to ensure that 'make clean' in the /usr/ports directory runs much faster, be sure to add NOCLEANDEPENDS=YES in your /etc/make.conf. After you run that on the entire tree besure to comment it out so that when you run make clean inside a port you clean all the dependancies too. Bill -- Bill Vermillion - bv @ wjv . com From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 18:31:17 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94E7016A4DA for ; Tue, 29 Aug 2006 18:31:17 +0000 (UTC) (envelope-from jared@puck.nether.net) Received: from puck.nether.net (puck.nether.net [204.42.254.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C09243D70 for ; Tue, 29 Aug 2006 18:31:10 +0000 (GMT) (envelope-from jared@puck.nether.net) Received: from puck.nether.net (puck.nether.net [204.42.254.5]) by puck.nether.net (8.13.7/8.12.9) with ESMTP id k7TIVAE7094395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 29 Aug 2006 14:31:10 -0400 (EDT) (envelope-from jared@puck.nether.net) Received: (from jared@localhost) by puck.nether.net (8.13.7/8.12.9/Submit) id k7TIVAkA094393 for freebsd-hackers@freebsd.org; Tue, 29 Aug 2006 14:31:10 -0400 (EDT) (envelope-from jared) Date: Tue, 29 Aug 2006 14:31:10 -0400 From: Jared Mauch To: freebsd-hackers@freebsd.org Message-ID: <20060829183110.GA94288@puck.nether.net> References: <20060824023316.GB80963@puck.nether.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060824023316.GB80963@puck.nether.net> User-Agent: Mutt/1.5.12-2006-07-14 Subject: Re: 6.1-current 20060823 ath0 stuck beacon; resetting (bmiss count 4) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 18:31:17 -0000 no responses here, any better idea where to go with my problem? - jared On Wed, Aug 23, 2006 at 10:33:16PM -0400, Jared Mauch wrote: > -- Jared Mauch | pgp key available via finger from jared@puck.nether.net clue++; | http://puck.nether.net/~jared/ My statements are only mine. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 18:37:25 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D48FE16A4DE for ; Tue, 29 Aug 2006 18:37:25 +0000 (UTC) (envelope-from jared@puck.nether.net) Received: from puck.nether.net (puck.nether.net [204.42.254.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7358F43D46 for ; Tue, 29 Aug 2006 18:37:25 +0000 (GMT) (envelope-from jared@puck.nether.net) Received: from puck.nether.net (puck.nether.net [204.42.254.5]) by puck.nether.net (8.13.7/8.12.9) with ESMTP id k7TIbNg4095281 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 29 Aug 2006 14:37:23 -0400 (EDT) (envelope-from jared@puck.nether.net) Received: (from jared@localhost) by puck.nether.net (8.13.7/8.12.9/Submit) id k7TIbMXp095280; Tue, 29 Aug 2006 14:37:22 -0400 (EDT) (envelope-from jared) Date: Tue, 29 Aug 2006 14:37:22 -0400 From: Jared Mauch To: Mike Meyer Message-ID: <20060829183722.GB94288@puck.nether.net> References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17648.59470.572563.377998@bhuda.mired.org> User-Agent: Mutt/1.5.12-2006-07-14 Cc: hackers@freebsd.org, Dirk Engling Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 18:37:25 -0000 On Sat, Aug 26, 2006 at 08:33:18PM -0400, Mike Meyer wrote: > In <44F0E38F.5030809@erdgeist.org>, Dirk Engling typed: > Why are you running cron inside the jails at all? Are you letting your > users run it? If not, can you disable it, and instead run scripts from > your real crontab that do the appropriate thigns in each jail? The way I use jails is i have big-beefy-hardware in colo and 3-5 virtual "machines" where they get root, etc.. access and it looks almost like a real host (with a few obvious differences). Works nicely as backups are done via rsync on the main host for the most part to a remote site and essentially provides a live image (outside of some issues with databases and such) on a remote host to restart the jails should the main hardware have some catastrophic failure. May not be the full initial intention, but i've found things like adjkerntz possibly annoying to have enabled in these setups by default.. but my list of stuff to turn off/on is fairly set so i don't have a lot of problems. - jared -- Jared Mauch | pgp key available via finger from jared@puck.nether.net clue++; | http://puck.nether.net/~jared/ My statements are only mine. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 20:08:07 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DBD416A4DD for ; Tue, 29 Aug 2006 20:08:07 +0000 (UTC) (envelope-from alive@dienub.org) Received: from pfepb.post.tele.dk (pfepb.post.tele.dk [195.41.46.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E17543D5C for ; Tue, 29 Aug 2006 20:08:05 +0000 (GMT) (envelope-from alive@dienub.org) Received: from m00h.dienub.org (dienub.org [83.88.67.155]) by pfepb.post.tele.dk (Postfix) with ESMTP id 3F3EBA5007B for ; Tue, 29 Aug 2006 22:08:02 +0200 (CEST) Received: from [192.168.0.2] (unknown [192.168.0.2]) by m00h.dienub.org (Postfix) with ESMTP id C47091CC0B for ; Tue, 29 Aug 2006 22:08:03 +0200 (CEST) Message-ID: <44F49EA2.2060703@dienub.org> Date: Tue, 29 Aug 2006 22:08:02 +0200 From: "Daniel A." User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 References: <44EDC84C.6010505@dienub.org> In-Reply-To: <44EDC84C.6010505@dienub.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: doadump at pcpu.h:165 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 20:08:07 -0000 Daniel A. wrote: > Hi guys, > My server crashes very often and it's very random. So not long ago, I > was suggested that I read the FreeBSD Handbook pages about kernel > debugging, and here is the result: > root@m00h DIENUB $ kgdb kernel.debug /var/crash/vmcore.3 > [GDB will not be able to debug user-mode threads: > /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you > are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-marcel-freebsd". > > Unread portion of the kernel message buffer: > > > Fatal trap 28: machine check trap while in kernel mode > instruction pointer = 0x20:0xc06830b0 > stack pointer = 0x28:0xd446ea7c > frame pointer = 0x28:0xd446ea8c > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 14 (swi1: net) > trap number = 28 > panic: machine check trap > Uptime: 1d4h24m37s > Dumping 511 MB (2 chunks) > chunk 0: 1MB (160 pages) ... ok > chunk 1: 511MB (130800 pages) 495 479 463 447 431 415 399 383 367 351 > 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 > 31 15 > > #0 doadump () at pcpu.h:165 > 165 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); > (kgdb) q > > > As far as I understand, the issue is CPU-related, but that doesn't make > sense, as my network interface cards are constantly giving me watchdog > timeouts. > > root@m00h include $ uname -a > FreeBSD m00h.dienub.org 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Mon May 29 > 20:40:41 CEST 2006 root@m00h.dienub.org:/usr/obj/usr/src/sys/DIENUB > i386 > > Thanks for any help. Also, please CC any replies to me. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" root@m00h DIENUB $ kgdb kernel.debug /var/crash/vmcore.5 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". Unread portion of the kernel message buffer: panic: softdep_setup_inomapdep: found inode Uptime: 3h37m58s Dumping 511 MB (2 chunks) chunk 0: 1MB (160 pages) ... ok chunk 1: 511MB (130800 pages) 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 #0 doadump () at pcpu.h:165 165 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) bt #0 doadump () at pcpu.h:165 #1 0xc064dda5 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:402 #2 0xc064e03c in panic (fmt=0xc08b7de8 "softdep_setup_inomapdep: found inode") at /usr/src/sys/kern/kern_shutdown.c:558 #3 0xc079639b in softdep_setup_inomapdep (bp=0xcd81bb60, ip=0x0, newinum=3639) at /usr/src/sys/ufs/ffs/ffs_softdep.c:1519 #4 0xc0788cea in ffs_nodealloccg (ip=0xc3b36a50, cg=0, ipref=3639, mode=33152) at /usr/src/sys/ufs/ffs/ffs_alloc.c:1762 #5 0xc0787458 in ffs_hashalloc (ip=0xc3b36a50, cg=0, pref=105, size=33152, allocator=0xc0788658 ) at /usr/src/sys/ufs/ffs/ffs_alloc.c:1248 #6 0xc0786b82 in ffs_valloc (pvp=0xc3ad9440, mode=33152, cred=0xc3afbc80, vpp=0xd896d8d4) at /usr/src/sys/ufs/ffs/ffs_alloc.c:932 #7 0xc07ae73f in ufs_makeinode (mode=33152, dvp=0xc3ad9440, vpp=0xd896dbe0, cnp=0xd896dbf4) at /usr/src/sys/ufs/ufs/ufs_vnops.c:2181 #8 0xc07ab89d in ufs_create (ap=0x0) at /usr/src/sys/ufs/ufs/ufs_vnops.c:171 #9 0xc0851f18 in VOP_CREATE_APV (vop=0x0, a=0xd896da64) at vnode_if.c:204 #10 0xc06b0364 in vn_open_cred (ndp=0xd896dbcc, flagp=0xd896dccc, cmode=384, cred=0xc3afbc80, fdidx=5) at vnode_if.h:111 #11 0xc06b01a2 in vn_open (ndp=0x0, flagp=0xd896dccc, cmode=384, fdidx=5) at /usr/src/sys/kern/vfs_vnops.c:91 #12 0xc06a8be6 in kern_open (td=0xc38b4c00, path=0x0, pathseg=UIO_USERSPACE, flags=2562, mode=439) at /usr/src/sys/kern/vfs_syscalls.c:1002 ---Type to continue, or q to quit--- #13 0xc06a8afa in open (td=0xc38b4c00, uap=0xd896dd04) at /usr/src/sys/kern/vfs_syscalls.c:968 #14 0xc084176b in syscall (frame= {tf_fs = 59, tf_es = 59, tf_ds = 59, tf_edi = 439, tf_esi = 134615073, tf_ebp = -1077941720, tf_isp = -661201564, tf_ebx = 4, tf_edx = -1, tf_ecx = 672523528, tf_eax = 5, tf_trapno = 12, tf_err = 2, tf_eip = 672414443, tf_cs = 51, tf_eflags = 514, tf_esp = -1077941764, tf_ss = 59}) at /usr/src/sys/i386/i386/trap.c:981 #15 0xc0830ccf in Xint0x80_syscall () at /usr/src/sys/i386/i386/exception.s:200 #16 0x00000033 in ?? () Previous frame inner to this frame (corrupt stack?) (kgdb) From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 29 22:39:35 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E919916A4DD for ; Tue, 29 Aug 2006 22:39:35 +0000 (UTC) (envelope-from cyberbotx@cyberbotx.com) Received: from samus.cyberbotx.com (c-68-61-58-20.hsd1.mi.comcast.net [68.61.58.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id B18E443D78 for ; Tue, 29 Aug 2006 22:39:29 +0000 (GMT) (envelope-from cyberbotx@cyberbotx.com) Received: from localhost (localhost [127.0.0.1]) by samus.cyberbotx.com (Postfix) with ESMTP id 33CF1C1A6 for ; Tue, 29 Aug 2006 18:39:27 -0400 (EDT) X-Virus-Scanned: amavisd-new at cyberbotx.com Received: from samus.cyberbotx.com ([127.0.0.1]) by localhost (samus.cyberbotx.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a+E9E8LQEtZ9 for ; Tue, 29 Aug 2006 18:37:14 -0400 (EDT) Received: from metroid (unknown [192.168.2.254]) by samus.cyberbotx.com (Postfix) with SMTP id B136EC190 for ; Tue, 29 Aug 2006 18:36:48 -0400 (EDT) Message-ID: <029501c6cbbb$9f01dc60$fe02a8c0@metroid> From: "Naram Qashat" To: References: <20060829120052.0B1E416A5A0@hub.freebsd.org> <20060829162452.GA88586@wjv.com> Date: Tue, 29 Aug 2006 18:36:49 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1807 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 22:39:36 -0000 ----- Original Message ----- From: "Bill Vermillion" To: Sent: Tuesday, August 29, 2006 12:24 PM Subject: Re: A handy utility (at least for me) > On Tue, Aug 29, 2006 at 12:00 freebsd-hackers-request@freebsd.org > saw "Error reading FAT table? Try SKINNY table?" And promptly > said: > > > Date: Mon, 28 Aug 2006 18:18:58 +0200 (CEST) > > From: Oliver Fromme > > Subject: Re: A handy utility (at least for me) > > > Rick C. Petty wrote: > > > > Mario Lobo wrote: > > > > > My /usr/ports directory was occuping 24 gigs, of which 20 > > > > was just from the 'work' directories ! > > > You should type "make clean" more often. ;-) > > And to ensure that 'make clean' in the /usr/ports directory runs > much faster, be sure to add NOCLEANDEPENDS=YES in your > /etc/make.conf. > > After you run that on the entire tree besure to comment it out so > that when you run make clean inside a port you clean all the > dependancies too. You could always just do make NOCLEANDEPENDS=yes clean from /usr/ports and then you wouldn't need to worry about setting it in your /etc/make.conf. > > Bill > > -- > Bill Vermillion - bv @ wjv . com > Naram Qashat _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 30 06:03:07 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 169A616A4DD for ; Wed, 30 Aug 2006 06:03:07 +0000 (UTC) (envelope-from tdamas@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CF8A43D4C for ; Wed, 30 Aug 2006 06:03:06 +0000 (GMT) (envelope-from tdamas@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so125548pye for ; Tue, 29 Aug 2006 23:03:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oGgTlUYJIcMppdHnIkeKLVmRLrOT3J3uTO7HKurNskwmqYqXqAOJSJVuqQ2W0zoavnGUe+aHygUXNlvgHFeS1Kc49TqqRQoTVBdvhmUprPzTzZayNLAwQwtgY813Ukl4jS0oqA7GuH0R/Tu9RQPB0fZqp/USwv/WD5cRNKU93jI= Received: by 10.35.8.13 with SMTP id l13mr254816pyi; Tue, 29 Aug 2006 23:03:06 -0700 (PDT) Received: by 10.35.44.7 with HTTP; Tue, 29 Aug 2006 23:03:05 -0700 (PDT) Message-ID: Date: Wed, 30 Aug 2006 03:03:05 -0300 From: "Thiago Damas" To: rick-freebsd@kiwi-computer.com In-Reply-To: <20060826225350.GA20172@megan.kiwi-computer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200608261919.07106.mlobo@digiart.art.br> <20060826225350.GA20172@megan.kiwi-computer.com> Cc: freebsd-hackers@freebsd.org, Mario Lobo Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 06:03:07 -0000 It can be: cd /usr/ports rm -rf */*/work []s On 8/26/06, Rick C. Petty wrote: > On Sat, Aug 26, 2006 at 07:19:06PM -0300, Mario Lobo wrote: > > > > My /usr/ports directory was occuping 24 gigs, of which 20 was just from the > > 'work' directories ! > > > > Removing them one by one was a pain so I wrote this little utility to wipe > > them off. > > I find that the following command works just fine for me: > > find /usr/ports -type d -name work -prune -print -delete > > =) > > -- Rick C. Petty > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 30 08:27:15 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C99216A4E1 for ; Wed, 30 Aug 2006 08:27:15 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D58C43D78 for ; Wed, 30 Aug 2006 08:27:11 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (zcdsdy@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k7U8R31G060645; Wed, 30 Aug 2006 10:27:09 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k7U8R3Nm060644; Wed, 30 Aug 2006 10:27:03 +0200 (CEST) (envelope-from olli) Date: Wed, 30 Aug 2006 10:27:03 +0200 (CEST) Message-Id: <200608300827.k7U8R3Nm060644@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, tdamas@gmail.com In-Reply-To: X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 30 Aug 2006 10:27:09 +0200 (CEST) Cc: Subject: Re: A handy utility (at least for me) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, tdamas@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 08:27:15 -0000 Thiago Damas wrote: > It can be: > cd /usr/ports > rm -rf */*/work That could overflow your argument verctor if there's a large number of work directories. It's better to use "echo */*/work | xargs rm -rf" if you don't know the size of the pattern expansion in advance, especially in shell scripts. echo is a shell- builtin, so the argument vector limit doesn't apply. xargs is your friend. :-) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "Clear perl code is better than unclear awk code; but NOTHING comes close to unclear perl code" (taken from comp.lang.awk FAQ) From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 30 12:25:37 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 238F216A4E5 for ; Wed, 30 Aug 2006 12:25:37 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26FAD43D55 for ; Wed, 30 Aug 2006 12:25:35 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.13.4/8.13.3) with ESMTP id k7UCPYK9026655 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Aug 2006 16:25:34 +0400 (MSD) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.sick.ru (8.13.4/8.13.1/Submit) id k7UCPX2g026654; Wed, 30 Aug 2006 16:25:33 +0400 (MSD) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.sick.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Wed, 30 Aug 2006 16:25:33 +0400 From: Gleb Smirnoff To: Martin Eugen Message-ID: <20060830122533.GV76666@FreeBSD.org> References: <966ba91e0608180041v3cfd9dcfh80ef89aab5404f48@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <966ba91e0608180041v3cfd9dcfh80ef89aab5404f48@mail.gmail.com> User-Agent: Mutt/1.5.6i Cc: freebsd-hackers@FreeBSD.org Subject: Re: SOCK_DGRAM optimization needed... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 12:25:37 -0000 On Fri, Aug 18, 2006 at 10:41:36AM +0300, Martin Eugen wrote: M> I have a simple application, that deals with lots of dgram sockets (UDP). M> Thousands of them. Basically, its purpose is to M> maintain pairs of sockets and when data is received on one of the sockets it M> peeks through it (doing some simple M> statistic calculations) and then forwards it to the other socket. M> Because of the hudge number of reads and writes (probably about a 10 packets M> per second per socket pair) it generates a significant load M> on the system, that I would like to minimize. I'm currently evaluating if it M> would be possible to add simple 'routing' functionality in the socket layer M> in the kernel, because frankly I'm not able to think of anything else. As Robert said you can try to put this into kernel. That is, you can write down a netgraph node, that does the routing. Then connect thousands of ng_ksocket(4) to it. If netgraph(4) survives such a big graph (I hope so), you will get quite fast forwarding. You should also implement a fast ng_findhook method for your 'routing' node, so that it won't cycle through the thousand of hooks. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 30 14:03:47 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A97DF16A4DD for ; Wed, 30 Aug 2006 14:03:47 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp-3.dlr.de (smtp-3.dlr.de [195.37.61.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31B5443D79 for ; Wed, 30 Aug 2006 14:03:42 +0000 (GMT) (envelope-from Hartmut.Brandt@dlr.de) Received: from beagle.kn.op.dlr.de ([129.247.173.6]) by smtp-3.dlr.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Wed, 30 Aug 2006 16:03:40 +0200 Date: Wed, 30 Aug 2006 16:03:40 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt_h@beagle.kn.op.dlr.de To: hackers@freebsd.org Message-ID: <20060830155708.J37315@beagle.kn.op.dlr.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-OriginalArrivalTime: 30 Aug 2006 14:03:41.0018 (UTC) FILETIME=[18F15BA0:01C6CC3D] Cc: Subject: pam_krb5 problems X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harti Brandt List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 14:03:47 -0000 Hi all, has anyone successfully configured pam_krb5? It seems that the ticket verification that is in the code does not work as intended: I have a host key in my keytab, but reading it for verification fails, because pam_krb5 constructs the principal name host/opkndn_beagle@INTRA.DLR.DE while the keytab contains just opkndn_beagle@INTRA.DLR.DE. When I try to add the host/... principal to the keytab, kinit -k doesn't work anymore. Another problem is finding the realm for the host. I have to explicitely add the mapping for the host to the realm to krb5.conf. I have a _kerberos TXT record in DNS, but the library fails to DNS-search for _kerberos or _kerberos.kn.op.dlr.de, but searches for _kerberos.opkndn_beagle.. (note the '.' at the end) which seem just wrong. What do I wrong here? harti From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 30 14:17:22 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAF0716A4DA; Wed, 30 Aug 2006 14:17:22 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41B7A43D45; Wed, 30 Aug 2006 14:17:22 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 4ABAC2089; Wed, 30 Aug 2006 16:17:18 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id 3E62C2087; Wed, 30 Aug 2006 16:17:18 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 1001) id 7E9CFB84E; Wed, 30 Aug 2006 16:17:24 +0200 (CEST) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Harti Brandt References: <20060830155708.J37315@beagle.kn.op.dlr.de> Date: Wed, 30 Aug 2006 16:17:24 +0200 In-Reply-To: <20060830155708.J37315@beagle.kn.op.dlr.de> (Harti Brandt's message of "Wed, 30 Aug 2006 16:03:40 +0200 (CEST)") Message-ID: <86r6yyfguj.fsf@dwp.des.no> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: pam_krb5 problems X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 14:17:22 -0000 Harti Brandt writes: > has anyone successfully configured pam_krb5? I've tested it, but only in a minimal setup. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 30 20:54:51 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4948D16A4DE; Wed, 30 Aug 2006 20:54:51 +0000 (UTC) (envelope-from simon@zaphod.nitro.dk) Received: from mx.nitro.dk (zarniwoop.nitro.dk [83.92.207.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEEEA43D60; Wed, 30 Aug 2006 20:54:50 +0000 (GMT) (envelope-from simon@zaphod.nitro.dk) Received: from zaphod.nitro.dk (unknown [192.168.3.39]) by mx.nitro.dk (Postfix) with ESMTP id 3819C32E4B4; Wed, 30 Aug 2006 20:54:49 +0000 (UTC) Received: by zaphod.nitro.dk (Postfix, from userid 3000) id 2999A1141D; Wed, 30 Aug 2006 22:54:49 +0200 (CEST) Date: Wed, 30 Aug 2006 22:54:49 +0200 From: "Simon L. Nielsen" To: Harti Brandt Message-ID: <20060830205448.GB1010@zaphod.nitro.dk> References: <20060830155708.J37315@beagle.kn.op.dlr.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060830155708.J37315@beagle.kn.op.dlr.de> User-Agent: Mutt/1.5.11 Cc: hackers@freebsd.org Subject: Re: pam_krb5 problems X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 20:54:51 -0000 On 2006.08.30 16:03:40 +0200, Harti Brandt wrote: > has anyone successfully configured pam_krb5? It seems that the ticket Hey, It's being used in the FreeBSD.org cluster, but I never looked at how it's setup. For the parts I have messed with it "just works"... -- Simon L. Nielsen From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 31 03:22:29 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0493016A4DE for ; Thu, 31 Aug 2006 03:22:29 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA06843D46 for ; Thu, 31 Aug 2006 03:22:28 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 895E11A4D8B; Wed, 30 Aug 2006 20:22:28 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id A467B516B8; Wed, 30 Aug 2006 23:22:27 -0400 (EDT) Date: Wed, 30 Aug 2006 23:22:27 -0400 From: Kris Kennaway To: Mike Meyer Message-ID: <20060831032227.GA91582@xor.obsecurity.org> References: <17651.37337.346614.609322@bhuda.mired.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3MwIy2ne0vdjdPXF" Content-Disposition: inline In-Reply-To: <17651.37337.346614.609322@bhuda.mired.org> User-Agent: Mutt/1.4.2.2i Cc: hackers@freebsd.org Subject: Re: Speaking of trivial tools X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 03:22:29 -0000 --3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 28, 2006 at 09:01:13PM -0400, Mike Meyer wrote: > I realized today that this one was possible. I suspect it would be > useful to lots of people working on ports, as well as for the sysadmin > stuff I do with it. I'm just not sure where it should goes. >=20 > -------------------- checkdeps.sh > #!/bin/sh >=20 > TMPFILE=3D/tmp/checkdeps.$$ >=20 > pkg_info -r $1 | sed -n 's/Dependency: //p' | sort -u > $TMPFILE >=20 > ldd $(pkg_info -L $1) 2>/dev/null | \ > sed -e '/^\//d' -e 's/.*=3D> //' -e 's/(.*)//' | \ > sort -u | \ > xargs -n 1 pkg_info -W | \ > sed 's/.* //' | \ > grep -v $1 | \ > sort -u | \ > comm -23 - $TMPFILE >=20 > rm $TMPFILE > -------------------- >=20 > Hand it a package name as an argument, and it'll print out the names > of any packages providing libraries used by binaries in the package > given as an argument that aren't listed as a dependency for that > package. I fed it my complete list of packages, and it turned up some > interesting things - like a package that had a dependency on a newer > version of itself(!). >=20 > This is just a QAD hack. It certainly got a lot of rough edges yet. See also the sysutils/libchk port. It's also great for finding stale leftover files from e.g. earlier versions of the port that had a broken pkg-plist, ports that were not updated correctly, etc. Kris --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE9lXyWry0BWjoQKURAnvSAKCVE5OtEFIYz0XeL+vFgGtKrLrKrQCgvA2K jnaRK2mOVhlgPPeWGPQbV5M= =zp/Q -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF-- From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 31 05:08:21 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A80716A4E6 for ; Thu, 31 Aug 2006 05:08:21 +0000 (UTC) (envelope-from adrian_brooks@hotmail.com) Received: from bay0-omc3-s15.bay0.hotmail.com (bay0-omc3-s15.bay0.hotmail.com [65.54.246.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 015B543D4C for ; Thu, 31 Aug 2006 05:08:20 +0000 (GMT) (envelope-from adrian_brooks@hotmail.com) Received: from hotmail.com ([207.46.11.115]) by bay0-omc3-s15.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 30 Aug 2006 22:08:20 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 30 Aug 2006 22:08:20 -0700 Message-ID: Received: from 207.46.11.123 by by123fd.bay123.hotmail.msn.com with HTTP; Thu, 31 Aug 2006 05:08:17 GMT X-Originating-IP: [70.91.188.92] X-Originating-Email: [adrian_brooks@hotmail.com] X-Sender: adrian_brooks@hotmail.com From: "Adrian Brooks" To: freebsd-hackers@freebsd.org Date: Thu, 31 Aug 2006 01:08:17 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 31 Aug 2006 05:08:20.0295 (UTC) FILETIME=[79E9BD70:01C6CCBB] Subject: Another SimpleDrive problem also... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 05:08:21 -0000 Hi guys, I hate to open up an already closed can of worms, but I am having a similar problem with my SimpleDrive also, except that instead of the problem being such that I can't mount it, instead, when I plug the device into my server, it detects it and reports it as a umass0 device, but nothing else is reported. In otherwords, it is not being assigned to a da0 device or anything of that nature, thus preventing me from being able to mount it. I'm using FreeBSD 5.4 instead of 4.x. Any suggestions would really help out a ton. Thanks in advance. :) --Adrian From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 31 05:34:10 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E6F116A4DD for ; Thu, 31 Aug 2006 05:34:10 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from cydem.org (S0106000103ce4c9c.vc.shawcable.net [24.87.27.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AE8643D49 for ; Thu, 31 Aug 2006 05:34:09 +0000 (GMT) (envelope-from soralx@cydem.org) Received: from soralx.cydem.org (unknown [192.168.0.249]) by cydem.org (Postfix/FreeBSD) with ESMTP id 58A77908AE for ; Wed, 30 Aug 2006 22:34:08 -0700 (PDT) From: soralx@cydem.org To: freebsd-hackers@freebsd.org Date: Wed, 30 Aug 2006 22:34:08 -0700 User-Agent: KMail/1.9.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608302234.08403.soralx@cydem.org> Subject: Re: Another SimpleDrive problem also... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 05:34:10 -0000 > it detects it and reports it as a umass0 device, but nothing else is > reported. In otherwords, it is not being assigned to a da0 device or > anything of that nature, thus preventing me from being able to mount it. > > I'm using FreeBSD 5.4 instead of 4.x. Any suggestions would really help out > a ton. Try cvsupp'ing /usr/src/sys/dev/usb/* to 5.5-RELEASE, and then replace those if_*.c files that don't compile with their old (5.4-R) versions. If you want, I can roll you a tarball of dev/usb/ tree that worked for me (~1Mb). [SorAlx] ridin' VN1500-B2 From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 31 16:19:34 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C128316A4DF for ; Thu, 31 Aug 2006 16:19:34 +0000 (UTC) (envelope-from sam@errno.com) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11A1343D72 for ; Thu, 31 Aug 2006 16:19:34 +0000 (GMT) (envelope-from sam@errno.com) Received: from [10.0.0.248] (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id k7VGJWvj024639 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 31 Aug 2006 09:19:33 -0700 (PDT) (envelope-from sam@errno.com) Message-ID: <44F70C14.1030508@errno.com> Date: Thu, 31 Aug 2006 09:19:32 -0700 From: Sam Leffler User-Agent: Thunderbird 1.5.0.4 (X11/20060724) MIME-Version: 1.0 To: Jared Mauch References: <20060824023316.GB80963@puck.nether.net> <20060829183110.GA94288@puck.nether.net> In-Reply-To: <20060829183110.GA94288@puck.nether.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: 6.1-current 20060823 ath0 stuck beacon; resetting (bmiss count 4) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 16:19:34 -0000 Jared Mauch wrote: > no responses here, any better idea where to go with my problem? I just returned from holiday and will try to reproduce the problem. Sam From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 31 18:25:11 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CCC516A4E1 for ; Thu, 31 Aug 2006 18:25:11 +0000 (UTC) (envelope-from adrian_brooks@hotmail.com) Received: from bay0-omc2-s5.bay0.hotmail.com (bay0-omc2-s5.bay0.hotmail.com [65.54.246.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1E9A43D8A for ; Thu, 31 Aug 2006 18:24:52 +0000 (GMT) (envelope-from adrian_brooks@hotmail.com) Received: from hotmail.com ([207.46.11.100]) by bay0-omc2-s5.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 31 Aug 2006 11:24:52 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 31 Aug 2006 11:24:51 -0700 Message-ID: Received: from 207.46.11.123 by by123fd.bay123.hotmail.msn.com with HTTP; Thu, 31 Aug 2006 18:24:46 GMT X-Originating-IP: [70.91.188.92] X-Originating-Email: [adrian_brooks@hotmail.com] X-Sender: adrian_brooks@hotmail.com From: "Adrian Brooks" To: freebsd-hackers@freebsd.org Date: Thu, 31 Aug 2006 14:24:46 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 31 Aug 2006 18:24:51.0220 (UTC) FILETIME=[BF862D40:01C6CD2A] Subject: Re: Another SimpleDrive problem also... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 18:25:11 -0000 >Try cvsupp'ing /usr/src/sys/dev/usb/* to 5.5-RELEASE, and then replace >those >if_*.c files that don't compile with their old (5.4-R) versions. If you >want, >I can roll you a tarball of dev/usb/ tree that worked for me (~1Mb). Thanks for the reply. I have to admit that I'm a bit green when it comes to doing stuff like what you suggested. I don't really know how to do any of that CVS stuff and embarrassingly have to admit that I would probably find some way to really mess my system up trying to mix and match c files. I am quite sorry for not being more knowledgable in such things, but I kinda got forced into all this and am learning on the fly. So, maybe that tarball and a few instructions on precisely what I should do would be of extreme assistance to me. Thanks so much for your help and patience with me. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 31 20:06:10 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7706416A4DA for ; Thu, 31 Aug 2006 20:06:10 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id 47CDD43D78 for ; Thu, 31 Aug 2006 20:06:04 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 1338 invoked by uid 1001); 31 Aug 2006 20:05:48 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Thu, 31 Aug 2006 16:05:48 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17655.16668.417010.244096@bhuda.mired.org> Date: Thu, 31 Aug 2006 16:05:48 -0400 To: hackers@freebsd.org X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) Cc: Subject: openvpn removing default route X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 20:06:10 -0000 I recently upgraded a system from 5.5/i386 to 6.1/amd64. I'm running the same version of openvpn with the exact same config (bridged via tap) - except now, for some reason, when the vpn shuts down, the default route is removed as well. I'm started digging through the sources to figure out why, and realized there's it could have changed in the if_bridge device, the em driver, the tap driver, or the software connecting them. That's enough different places that I thought I'd ask to see if anyone here new what was causing this - or even had suggestions that might narrow down the search a bit. Thanks, http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 31 20:12:14 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11A2416A4DE for ; Thu, 31 Aug 2006 20:12:14 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F92343D5E for ; Thu, 31 Aug 2006 20:12:11 +0000 (GMT) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net ([12.207.12.9]) by sccmmhc92.asp.att.net (sccmmhc92) with ESMTP id <20060831201205m92000u8fpe>; Thu, 31 Aug 2006 20:12:06 +0000 Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.13.6/8.13.6) with ESMTP id k7VKC2Vu037610; Thu, 31 Aug 2006 15:12:02 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.13.6/8.13.6/Submit) id k7VKC1va037609; Thu, 31 Aug 2006 15:12:01 -0500 (CDT) (envelope-from brooks) Date: Thu, 31 Aug 2006 15:11:57 -0500 From: Brooks Davis To: Mike Meyer Message-ID: <20060831201157.GA37412@lor.one-eyed-alien.net> References: <17655.16668.417010.244096@bhuda.mired.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: <17655.16668.417010.244096@bhuda.mired.org> User-Agent: Mutt/1.5.11 Cc: hackers@freebsd.org Subject: Re: openvpn removing default route X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Aug 2006 20:12:14 -0000 --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 31, 2006 at 04:05:48PM -0400, Mike Meyer wrote: > I recently upgraded a system from 5.5/i386 to 6.1/amd64. I'm running > the same version of openvpn with the exact same config (bridged via > tap) - except now, for some reason, when the vpn shuts down, the > default route is removed as well. >=20 > I'm started digging through the sources to figure out why, and > realized there's it could have changed in the if_bridge device, the em > driver, the tap driver, or the software connecting them. That's enough > different places that I thought I'd ask to see if anyone here new what > was causing this - or even had suggestions that might narrow down the > search a bit. There was a change on July 24th which had the unfortunate effect of deleting all routes when ever an interface was removed. A fix was MFCd on August 22nd. I'd guess this is what you are seeing. -- Brooks --WIyZ46R2i8wDzkSu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE90KMXY6L6fI4GtQRApgeAJ94EUsj24Jcycs7A+jngoNIVBnJuwCglp+y /z22eAn0Jf2pK/SwiXfRCLo= =S4KO -----END PGP SIGNATURE----- --WIyZ46R2i8wDzkSu-- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 06:57:33 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54E9A16A4DD for ; Sun, 27 Aug 2006 06:57:33 +0000 (UTC) (envelope-from perl@ipchains.ru) Received: from www.ebash.ru (ebash.ru [212.158.162.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0BF243D45 for ; Sun, 27 Aug 2006 06:57:32 +0000 (GMT) (envelope-from perl@ipchains.ru) Received: from [83.237.248.247] (helo=[192.168.1.40]) by www.ebash.ru with esmtpa (Exim 4.62) (envelope-from ) id 1GHEdm-000Be4-0K; Sun, 27 Aug 2006 11:01:06 +0400 Message-ID: <44F1424E.5000906@ipchains.ru> Date: Sun, 27 Aug 2006 10:57:18 +0400 From: "Oleg D." User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Dirk Engling References: <44F0E38F.5030809@erdgeist.org> <17648.59470.572563.377998@bhuda.mired.org> <20060827052733.F16322@erdgeist.org> In-Reply-To: <20060827052733.F16322@erdgeist.org> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 01 Sep 2006 13:05:40 +0000 Cc: hackers@freebsd.org, Mike Meyer Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 06:57:33 -0000 Dirk Engling wrote: > > On Sat, 26 Aug 2006, Mike Meyer wrote: > >> Except some of the things run from cron want to send mail all on their >> own, so fixing cron won't solve your problem. >> >> Why are you running cron inside the jails at all? Are you letting your >> users run it? If not, can you disable it, and instead run scripts from >> your real crontab that do the appropriate thigns in each jail? > > It's not me, it's the OS running cron to do its periodic checks, per > default. But Daniel Gerzo already pointed out, how to solve that. > > Still: FreeBSD's /etc/ assumes and provides a working mail subsystem in > its default configuration. That exposes sendmail to the publicly visible > IP address. Shutting the mail sub system off causes trouble. > > I hope, that describes my motivation to bring up the topic. > > erdgeist 0. Is it possible to fix your MTA config to make it ``deliver'' for ``root'' or ``postmaster'' to /dev/null? 1. Is it possible to make changes in /etc/crontab for all jails on machine? And place the same *blank* /etc/crontab for new jails that are going to be created as a template? -- Oleg D. -- don't believe every word people use to say, they might be wrong. an undefined problem has infinitive number of solutions. From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 06:12:50 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2291216A4DD for ; Mon, 28 Aug 2006 06:12:50 +0000 (UTC) (envelope-from m.ehinger@ltur.de) Received: from postx.gateway-inter.net (postx.gateway-inter.net [213.144.19.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id D17CB43D4C for ; Mon, 28 Aug 2006 06:12:49 +0000 (GMT) (envelope-from m.ehinger@ltur.de) To: freebsd-hackers@freebsd.org From: m.ehinger@ltur.de MIME-Version: 1.0 Message-ID: Date: Mon, 28 Aug 2006 08:13:18 +0200 Content-type: text/plain; charset=US-ASCII X-Mailman-Approved-At: Fri, 01 Sep 2006 13:06:34 +0000 Subject: dev vs. sysctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 06:12:50 -0000 Hello, i just want to know which one is faster? Which has the lowest overhead? I want to return 8 bytes (tow integer values) of data about 50 times a second. Thanks in advance Maik From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 28 06:29:14 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C0A716A4DE for ; Mon, 28 Aug 2006 06:29:14 +0000 (UTC) (envelope-from m.ehinger@ltur.de) Received: from postx.gateway-inter.net (postx.gateway-inter.net [213.144.19.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 411DE43D49 for ; Mon, 28 Aug 2006 06:29:14 +0000 (GMT) (envelope-from m.ehinger@ltur.de) In-Reply-To: <200608242346.k7ONkHa4093431@ambrisko.com> To: Doug Ambrisko From: m.ehinger@ltur.de MIME-Version: 1.0 Message-ID: Date: Mon, 28 Aug 2006 08:29:42 +0200 Content-type: text/plain; charset=US-ASCII X-Mailman-Approved-At: Fri, 01 Sep 2006 13:07:01 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: get DMI information in kernel X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Aug 2006 06:29:14 -0000 Doug Ambrisko schrieb am 25.08.2006 01:46:17: > You can look at the ipmi(4) driver. It gets the IPMI HW info via SMBIOS. > There is also and smbios driver as well. I tried to load the smbios driver but i got an "Unable to allocate memory resource" error. I now have written my own SMBIOS parser. Thanks Maik From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 30 13:44:50 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C49D16A4DF; Wed, 30 Aug 2006 13:44:50 +0000 (UTC) (envelope-from babkin@verizon.net) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2052143D6D; Wed, 30 Aug 2006 13:44:46 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms074.mailsrvcs.net ([192.168.1.3]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J4T004W3CU0EMJD@vms040.mailsrvcs.net>; Wed, 30 Aug 2006 08:44:24 -0500 (CDT) Received: from 198.190.8.100 ([198.190.8.100]) by vms074.mailsrvcs.net (Verizon Webmail) with HTTP; Wed, 30 Aug 2006 08:44:23 -0500 (CDT) Date: Wed, 30 Aug 2006 08:44:23 -0500 (CDT) From: Sergey Babkin X-Originating-IP: [198.190.8.100] To: Gleb Smirnoff , Martin Eugen Message-id: <18678818.48281156945464270.JavaMail.root@vms074.mailsrvcs.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Mailman-Approved-At: Fri, 01 Sep 2006 13:08:10 +0000 Cc: freebsd-hackers@FreeBSD.org Subject: Re: Re: SOCK_DGRAM optimization needed... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: babkin@users.sf.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2006 13:44:50 -0000 >From: Gleb Smirnoff >On Fri, Aug 18, 2006 at 10:41:36AM +0300, Martin Eugen wrote: >M> I have a simple application, that deals with lots of dgram sockets (UDP). >M> Thousands of them. Basically, its purpose is to >M> maintain pairs of sockets and when data is received on one of the sockets it >M> peeks through it (doing some simple >M> statistic calculations) and then forwards it to the other socket. >M> Because of the hudge number of reads and writes (probably about a 10 packets >M> per second per socket pair) it generates a significant load >M> on the system, that I would like to minimize. I'm currently evaluating if it >M> would be possible to add simple 'routing' functionality in the socket layer >M> in the kernel, because frankly I'm not able to think of anything else. > >As Robert said you can try to put this into kernel. That is, you can >write down a netgraph node, that does the routing. Then connect thousands >of ng_ksocket(4) to it. > >If netgraph(4) survives such a big graph (I hope so), you will get quite >fast forwarding. You should also implement a fast ng_findhook method I think it doesn't have to be a big graph. Just make your module sit under IP and look inside all the packets coming up. If the packet matches one it's looking for, update the stats, change the port number and send it up to the IP node. Otherwise just send it to the IP node. With this approach you won't even really need the changing of port numbers if all you do is the stats, just make the "real" app listen on the same ports as where the packets are sent to. BTW, some many years ago I wrote a STREAMS generic IP traffic accounting module that worked like this. -SB From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 1 21:08:55 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6062016A4E2 for ; Fri, 1 Sep 2006 21:08:55 +0000 (UTC) (envelope-from george@m5p.com) Received: from mailhost.m5p.com (209-162-215-52.dq1sn.easystreet.com [209.162.215.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id C70F143D7B for ; Fri, 1 Sep 2006 21:08:51 +0000 (GMT) (envelope-from george@m5p.com) Received: from m5p.com (ssh.m5p.com [IPv6:2001:418:3fd::fb]) by mailhost.m5p.com (8.13.7/8.13.7) with ESMTP id k81L8n9t068675 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=OK) for ; Fri, 1 Sep 2006 14:08:49 -0700 (PDT) Received: (from george@localhost) by m5p.com (8.13.7/8.13.7/Submit) id k81L8nKZ019777; Fri, 1 Sep 2006 14:08:49 -0700 (PDT) Date: Fri, 1 Sep 2006 14:08:49 -0700 (PDT) Message-Id: <200609012108.k81L8nKZ019777@m5p.com> From: george+freebsd@m5p.com To: freebsd-hackers@freebsd.org X-Spam-Score: -2.208 () AWL,BAYES_00,NO_RELAYS X-Scanned-By: MIMEDefang 2.56 on IPv6:2001:418:3fd::f7 Subject: Wiring umass unit numbers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 21:08:55 -0000 I have a USB floppy drive and a USB flash card reader/writer. At various times, neither, one, or both devices are plugged into the computer. Depending upon when each is plugged in, the floppy drive might become /dev/da0 and the flash reader/writer /dev/da1, or vice versa. Is there a way to specify which should be which? -- George Mitchell From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 1 21:12:33 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11AC716A4DA for ; Fri, 1 Sep 2006 21:12:33 +0000 (UTC) (envelope-from tech@nano.net) Received: from mail.smallweb.com (mail.smallweb.com [216.85.125.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34CCD43D55 for ; Fri, 1 Sep 2006 21:12:27 +0000 (GMT) (envelope-from tech@nano.net) Received: from [216.85.125.9] (sixpence.nano.net [216.85.125.9]) by mail.smallweb.com (Rockliffe SMTPRA 5.3.11) with ESMTP id for ; Fri, 1 Sep 2006 15:19:39 -0600 Message-ID: <44F8A238.3080001@nano.net> Date: Fri, 01 Sep 2006 15:12:24 -0600 From: Steve Suhre User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 21:12:33 -0000 Hope it's ok to ask a sendmail question here, I've exhausted the news groups and web.... I'm running sendmail 8.12 and it seems to have a "MAIL FROM" test in it somewhere. Mail "FROM" is not an effective spam defense and I have it locked down otherwise, so I want to shut off the "MAIL FROM" test in sendmail. I have a client who sends out email alerts using the server and uses a random invalid return address for each alert. Sendmail is rejecting the messages based on the From field. I have their server's IP address in the relay-domains file, but it's ignoring that and rejecting the mail anyway. I've tried adding the address to the virtusertable db, aliases, and the access db as "RELAY" as "name+*" , and sendmail still rejects the messages. ANY ideas will be appreciated..... -- Steve Suhre steve@pasta.net 719.439.6052 Cell 719.632.2897 Home 719.634.8161 Work From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 1 21:35:01 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E7B816A4DA for ; Fri, 1 Sep 2006 21:35:01 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail06.syd.optusnet.com.au (mail06.syd.optusnet.com.au [211.29.132.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78CAA43D69 for ; Fri, 1 Sep 2006 21:35:00 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail06.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k81LYuHO006053 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 2 Sep 2006 07:34:56 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k81LYubs009672; Sat, 2 Sep 2006 07:34:56 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k81LYtgQ009671; Sat, 2 Sep 2006 07:34:55 +1000 (EST) (envelope-from peter) Date: Sat, 2 Sep 2006 07:34:55 +1000 From: Peter Jeremy To: Steve Suhre Message-ID: <20060901213455.GC749@turion.vk2pj.dyndns.org> References: <44F8A238.3080001@nano.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RIYY1s2vRbPFwWeW" Content-Disposition: inline In-Reply-To: <44F8A238.3080001@nano.net> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-hackers@freebsd.org Subject: Re: sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 21:35:01 -0000 --RIYY1s2vRbPFwWeW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 2006-Sep-01 15:12:24 -0600, Steve Suhre wrote: >somewhere. Mail "FROM" is not an effective spam defense and I have it Every little bit helps. > so I want to shut off the "MAIL FROM" test in >sendmail. I have a client who sends out email alerts using the server >and uses a random invalid return address for each alert. Sendmail is >rejecting the messages based on the From field. Have you tried: FEATURE(`accept_unresolvable_domains') --=20 Peter Jeremy --RIYY1s2vRbPFwWeW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE+Kd//opHv/APuIcRAhuMAJ9kr7yYSISkiu1NZ2Nr0Y6gd3Am7wCglvMR Zq2b6sNA97x+QSDaWUJAGzc= =uskP -----END PGP SIGNATURE----- --RIYY1s2vRbPFwWeW-- From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 1 21:59:32 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5FF616A4E1 for ; Fri, 1 Sep 2006 21:59:32 +0000 (UTC) (envelope-from tech@nano.net) Received: from mail.smallweb.com (mail.smallweb.com [216.85.125.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48F3543D45 for ; Fri, 1 Sep 2006 21:59:32 +0000 (GMT) (envelope-from tech@nano.net) Received: from [216.85.125.9] (sixpence.nano.net [216.85.125.9]) by mail.smallweb.com (Rockliffe SMTPRA 5.3.11) with ESMTP id for ; Fri, 1 Sep 2006 16:06:44 -0600 Message-ID: <44F8AD3F.9070900@nano.net> Date: Fri, 01 Sep 2006 15:59:27 -0600 From: Steve Suhre User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <44F8A238.3080001@nano.net> <20060901213455.GC749@turion.vk2pj.dyndns.org> In-Reply-To: <20060901213455.GC749@turion.vk2pj.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 21:59:32 -0000 The domain is resolvable. It's a local domain, that's why the server rejects the message. It can see that the username doesn't exist and dumps the connection right away. Here's an example, the mail never gets sent. "woohoo.com" is the local domain: Fri Sep 01 17:00:35 GMT+00:00 2006Opening connection to MailServer Fri Sep 01 17:00:35 GMT+00:00 2006 Sending Mail message Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:HELO napserver.DBTDNS Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response220 mail.domain.com ESMTP Sendmail 8.12.10/8.12.10; Fri, 1 Sep 2006 10:59:12 -0600 (MDT) Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:MAIL FROM: name5612@woohoo.com Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response250 mail.domain.com Hello 123-45-67-150.woohoo.com [123.45.67.150] (may be forged), pleased to meet you Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:RCPT TO: kripton@hoowoo.com Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response553 5.3.0 name5612@woohoo.com... User Unknown Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:DATA Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL before RCPT Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL command Peter Jeremy wrote: >On Fri, 2006-Sep-01 15:12:24 -0600, Steve Suhre wrote: > > >>somewhere. Mail "FROM" is not an effective spam defense and I have it >> >> > >Every little bit helps. > > > >>so I want to shut off the "MAIL FROM" test in >>sendmail. I have a client who sends out email alerts using the server >>and uses a random invalid return address for each alert. Sendmail is >>rejecting the messages based on the From field. >> >> > >Have you tried: >FEATURE(`accept_unresolvable_domains') > > > -- Steve Suhre steve@pasta.net 719.439.6052 Cell 719.632.2897 Home 719.634.8161 Work From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 1 22:09:08 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 840C016A4DA for ; Fri, 1 Sep 2006 22:09:08 +0000 (UTC) (envelope-from ssedov@mbsd.msk.ru) Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DCF443D45 for ; Fri, 1 Sep 2006 22:09:07 +0000 (GMT) (envelope-from ssedov@mbsd.msk.ru) Received: from [213.87.86.61] (helo=fonon.realnet) by com1.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1GJHCC-0005HJ-DT; Sat, 02 Sep 2006 02:09:05 +0400 Received: from localhost (localhost [127.0.0.1]) by fonon.realnet (Postfix) with ESMTP id 2DB6B11483; Sat, 2 Sep 2006 02:08:29 +0400 (MSD) Date: Sat, 2 Sep 2006 02:08:28 +0400 From: Stanislav Sedov To: freebsd-hackers@freebsd.org, george+freebsd@m5p.com Message-ID: <20060902020828.64223ee4@localhost> In-Reply-To: <200609012108.k81L8nKZ019777@m5p.com> References: <200609012108.k81L8nKZ019777@m5p.com> Organization: MBSD labs, Inc. X-Operating-System: FreeBSD X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_P2V5d18+Zbe6Z5GnlFVQBMh; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.6.0 Cc: Subject: Re: Wiring umass unit numbers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 22:09:08 -0000 --Sig_P2V5d18+Zbe6Z5GnlFVQBMh Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On Fri, 1 Sep 2006 14:08:49 -0700 (PDT) george+freebsd@m5p.com mentioned: > I have a USB floppy drive and a USB flash card reader/writer. At > various times, neither, one, or both devices are plugged into the > computer. Depending upon when each is plugged in, the floppy > drive might become /dev/da0 and the flash reader/writer /dev/da1, > or vice versa. Is there a way to specify which should be which? AFAIK, no, but if you just need to have constant device names, you can use labels provided by glabel(8), e.g. if you issue # glabel label -v MYFLASH /dev/da0 when da0 is flash, you'll always have /dev/label/MYFLASH entry whenever you flash is plugged. Unfortunately, this technique can't be used with floppy, for glabel information is stored on the media itself, that is you need to label every floppy separately. Hope that helps. --=20 Stanislav Sedov MBSD labs, Inc. =F2=CF=D3=D3=C9=D1, =ED=CF=D3=CB=D7=C1 http://mbsd.msk.ru -------------------------------------------------------------------- If the facts don't fit the theory, change the facts. -- A. Einstein -------------------------------------------------------------------- PGP fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 --Sig_P2V5d18+Zbe6Z5GnlFVQBMh Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFE+K9cK/VZk+smlYERAjDzAJ9BkxTIbd6pHJPBVCoZtD1zuN4lWACbBh1Q TYgHh+Hkg204uA4g6o89kBs= =fOHD -----END PGP SIGNATURE----- --Sig_P2V5d18+Zbe6Z5GnlFVQBMh-- From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 1 22:23:44 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75F4616A4E0 for ; Fri, 1 Sep 2006 22:23:44 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail03.syd.optusnet.com.au (mail03.syd.optusnet.com.au [211.29.132.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id B197343D6B for ; Fri, 1 Sep 2006 22:23:35 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail03.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k81MNWGY002073 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 2 Sep 2006 08:23:33 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k81MNWo8009857; Sat, 2 Sep 2006 08:23:32 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k81MNWEv009856; Sat, 2 Sep 2006 08:23:32 +1000 (EST) (envelope-from peter) Date: Sat, 2 Sep 2006 08:23:32 +1000 From: Peter Jeremy To: Steve Suhre Message-ID: <20060901222332.GD749@turion.vk2pj.dyndns.org> References: <44F8A238.3080001@nano.net> <20060901213455.GC749@turion.vk2pj.dyndns.org> <44F8AC2E.10604@pasta.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qrgsu6vtpU/OV/zm" Content-Disposition: inline In-Reply-To: <44F8AC2E.10604@pasta.net> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.12-2006-07-14 Cc: freebsd-hackers@freebsd.org Subject: Re: sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 22:23:44 -0000 --Qrgsu6vtpU/OV/zm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 2006-Sep-01 15:54:54 -0600, Steve Suhre wrote: >The domain is resolvable. It's a local domain, that's why the server=20 >rejects the message. It can see that the username doesn't exist and=20 >dumps the connection right away. Here's an example, the mail never gets=20 >sent. "woohoo.com" is the local domain: > >Fri Sep 01 17:00:35 GMT+00:00 2006Opening connection to MailServer >Fri Sep 01 17:00:35 GMT+00:00 2006 Sending Mail message >Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:HELO napserver.DBTDNS >Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response220 mail.domain.com ESMTP S= endmail 8.12.10/8.12.10; Fri, 1 Sep 2006 10:59:12 -0600 (MDT) >Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:MAIL FROM: name5612@woohoo= =2Ecom >Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response250 mail.domain.com Hello 1= 23-45-67-150.woohoo.com [123.45.67.150] (may be forged), pleased to meet you >Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:RCPT TO: kripton@hoowoo.com >Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response553 5.3.0 name5612@woohoo.c= om... User Unknown >Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:DATA >Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL before = RCPT >Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL command I can't reproduce this with sendmail 8.13 (though I'm not sure I'm correctly replicating your environment). I suggest you either UTSL or ask on a sendmail list. --=20 Peter Jeremy --Qrgsu6vtpU/OV/zm Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFE+LLk/opHv/APuIcRAgWEAJ4uoGcqmIs/KWKR/f6fg1qoGyTY1wCfRAz7 DXVKqsKrXtbL803qqV1Rjww= =ly0x -----END PGP SIGNATURE----- --Qrgsu6vtpU/OV/zm-- From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 1 23:12:17 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CDA516A4DD for ; Fri, 1 Sep 2006 23:12:17 +0000 (UTC) (envelope-from tech@nano.net) Received: from mail.smallweb.com (mail.smallweb.com [216.85.125.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DC0743D46 for ; Fri, 1 Sep 2006 23:12:16 +0000 (GMT) (envelope-from tech@nano.net) Received: from [216.85.125.9] (sixpence.nano.net [216.85.125.9]) by mail.smallweb.com (Rockliffe SMTPRA 5.3.11) with ESMTP id ; Fri, 1 Sep 2006 17:19:24 -0600 Message-ID: <44F8BE48.8050200@nano.net> Date: Fri, 01 Sep 2006 17:12:08 -0600 From: Steve Suhre User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Jeremy References: <44F8A238.3080001@nano.net> <20060901213455.GC749@turion.vk2pj.dyndns.org> <44F8AC2E.10604@pasta.net> <20060901222332.GD749@turion.vk2pj.dyndns.org> In-Reply-To: <20060901222332.GD749@turion.vk2pj.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Steve Suhre Subject: Re: sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 23:12:17 -0000 I moved them to another server where "wohoo.com" isn't set up and it's working fine. But I need to figure out why sendmail HAS to check the local server and shut that part off. It's an "issue". Peter Jeremy wrote: >On Fri, 2006-Sep-01 15:54:54 -0600, Steve Suhre wrote: > > >>The domain is resolvable. It's a local domain, that's why the server >>rejects the message. It can see that the username doesn't exist and >>dumps the connection right away. Here's an example, the mail never gets >>sent. "woohoo.com" is the local domain: >> >>Fri Sep 01 17:00:35 GMT+00:00 2006Opening connection to MailServer >>Fri Sep 01 17:00:35 GMT+00:00 2006 Sending Mail message >>Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:HELO napserver.DBTDNS >>Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response220 mail.domain.com ESMTP Sendmail 8.12.10/8.12.10; Fri, 1 Sep 2006 10:59:12 -0600 (MDT) >>Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:MAIL FROM: name5612@woohoo.com >>Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response250 mail.domain.com Hello 123-45-67-150.woohoo.com [123.45.67.150] (may be forged), pleased to meet you >>Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:RCPT TO: kripton@hoowoo.com >>Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response553 5.3.0 name5612@woohoo.com... User Unknown >>Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:DATA >>Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL before RCPT >>Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL command >> >> > >I can't reproduce this with sendmail 8.13 (though I'm not sure I'm >correctly replicating your environment). I suggest you either UTSL or >ask on a sendmail list. > > > -- Steve Suhre steve@pasta.net 719.439.6052 Cell 719.632.2897 Home 719.634.8161 Work From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 1 23:16:20 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43E0116A4DA for ; Fri, 1 Sep 2006 23:16:20 +0000 (UTC) (envelope-from dan@dpcsys.com) Received: from ns.beach.net (ns.beach.net [12.130.64.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9EDE43D45 for ; Fri, 1 Sep 2006 23:16:19 +0000 (GMT) (envelope-from dan@dpcsys.com) Received: from [192.168.1.228] (jeffersonvalley.net [209.137.253.155] (may be forged)) by ns.beach.net (8.13.7/8.13.7) with ESMTP id k81NGGea075434; Fri, 1 Sep 2006 16:16:19 -0700 (PDT) In-Reply-To: <20060901222332.GD749@turion.vk2pj.dyndns.org> References: <44F8A238.3080001@nano.net> <20060901213455.GC749@turion.vk2pj.dyndns.org> <44F8AC2E.10604@pasta.net> <20060901222332.GD749@turion.vk2pj.dyndns.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <89202C6E-DA1B-46F9-890E-98DAB58EDC51@dpcsys.com> Content-Transfer-Encoding: 7bit From: Dan Busarow Date: Fri, 1 Sep 2006 17:16:10 -0600 To: Steve Suhre X-Mailer: Apple Mail (2.752.2) Cc: freebsd-hackers@freebsd.org Subject: Re: sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 23:16:20 -0000 On Sep 1, 2006, at 4:23 PM, Peter Jeremy wrote: > On Fri, 2006-Sep-01 15:54:54 -0600, Steve Suhre wrote: >> The domain is resolvable. It's a local domain, that's why the server >> rejects the message. It can see that the username doesn't exist and >> dumps the connection right away. Here's an example, the mail never >> gets >> sent. "woohoo.com" is the local domain: >> >> Fri Sep 01 17:00:35 GMT+00:00 2006Opening connection to MailServer >> Fri Sep 01 17:00:35 GMT+00:00 2006 Sending Mail message >> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:HELO napserver.DBTDNS >> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response220 mail.domain.com >> ESMTP Sendmail 8.12.10/8.12.10; Fri, 1 Sep 2006 10:59:12 -0600 (MDT) >> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:MAIL FROM: >> name5612@woohoo.com >> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response250 mail.domain.com >> Hello 123-45-67-150.woohoo.com [123.45.67.150] (may be forged), >> pleased to meet you >> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:RCPT TO: >> kripton@hoowoo.com >> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response553 5.3.0 >> name5612@woohoo.com... User Unknown >> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:DATA >> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL >> before RCPT >> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL >> command > > I can't reproduce this with sendmail 8.13 (though I'm not sure I'm > correctly replicating your environment). I suggest you either UTSL or > ask on a sendmail list. I was able to duplicate it. It seems to kick when when the sender domain is in your virtusertable with entries like a@woohoo.com a b@woohoo.com b @woohoo.com error:nouser User Unknown If the domain does not have the error condition, i.e. lets the address fall through as a local user, then sendmail does not complain. With the error condition you'll see behaviour just as described. This is part of check_mail which you *do not* want to disable. So you'll need to either change your virtusertable to use a catchall @woohoo.com nobody or remove the bare @woohoo.com from the virtusertable and let the address fall through as a local user. Dan From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 1 21:08:28 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F56716A4DA for ; Fri, 1 Sep 2006 21:08:28 +0000 (UTC) (envelope-from steve@pasta.net) Received: from mail.smallweb.com (mail.smallweb.com [216.85.125.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97BDD43D58 for ; Fri, 1 Sep 2006 21:08:26 +0000 (GMT) (envelope-from steve@pasta.net) Received: from [216.85.125.9] (sixpence.nano.net [216.85.125.9]) by mail.smallweb.com (Rockliffe SMTPRA 5.3.11) with ESMTP id for ; Fri, 1 Sep 2006 15:15:37 -0600 Message-ID: <44F8A145.6070307@pasta.net> Date: Fri, 01 Sep 2006 15:08:21 -0600 From: Steve Suhre User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 01 Sep 2006 23:57:41 +0000 Subject: sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 21:08:28 -0000 Hope it's ok to ask a sendmail question here, I've exhausted the news groups and web.... I'm running sendmail 8.12 and it seems to have a "MAIL FROM" test in it somewhere. Mail "FROM" is not an effective spam defense and I have it locked down otherwise, so I want to shut off the "MAIL FROM" test in sendmail. I have a client who sends out email alerts using the server and uses a random invalid return address for each alert. Sendmail is rejecting the messages based on the From field. I have their server's IP address in the relay-domains file, but it's ignoring that and rejecting the mail anyway. I've tried adding the address to the virtusertable db, aliases, and the access db as "RELAY" as "name+*" , and sendmail still rejects the messages. ANY ideas will be appreciated..... -- Steve Suhre steve@pasta.net 719.439.6052 Cell 719.632.2897 Home 719.634.8161 Work From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 1 21:55:05 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8974416A4DD for ; Fri, 1 Sep 2006 21:55:05 +0000 (UTC) (envelope-from steve@pasta.net) Received: from mail.smallweb.com (mail.smallweb.com [216.85.125.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2CFB43D45 for ; Fri, 1 Sep 2006 21:55:04 +0000 (GMT) (envelope-from steve@pasta.net) Received: from [216.85.125.9] (sixpence.nano.net [216.85.125.9]) by mail.smallweb.com (Rockliffe SMTPRA 5.3.11) with ESMTP id ; Fri, 1 Sep 2006 16:02:12 -0600 Message-ID: <44F8AC2E.10604@pasta.net> Date: Fri, 01 Sep 2006 15:54:54 -0600 From: Steve Suhre User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Jeremy References: <44F8A238.3080001@nano.net> <20060901213455.GC749@turion.vk2pj.dyndns.org> In-Reply-To: <20060901213455.GC749@turion.vk2pj.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 01 Sep 2006 23:57:49 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Sep 2006 21:55:05 -0000 The domain is resolvable. It's a local domain, that's why the server rejects the message. It can see that the username doesn't exist and dumps the connection right away. Here's an example, the mail never gets sent. "woohoo.com" is the local domain: Fri Sep 01 17:00:35 GMT+00:00 2006Opening connection to MailServer Fri Sep 01 17:00:35 GMT+00:00 2006 Sending Mail message Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:HELO napserver.DBTDNS Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response220 mail.domain.com ESMTP Sendmail 8.12.10/8.12.10; Fri, 1 Sep 2006 10:59:12 -0600 (MDT) Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:MAIL FROM: name5612@woohoo.com Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response250 mail.domain.com Hello 123-45-67-150.woohoo.com [123.45.67.150] (may be forged), pleased to meet you Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:RCPT TO: kripton@hoowoo.com Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response553 5.3.0 name5612@woohoo.com... User Unknown Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:DATA Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL before RCPT Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL command Peter Jeremy wrote: >On Fri, 2006-Sep-01 15:12:24 -0600, Steve Suhre wrote: > > >>somewhere. Mail "FROM" is not an effective spam defense and I have it >> >> > >Every little bit helps. > > > >>so I want to shut off the "MAIL FROM" test in >>sendmail. I have a client who sends out email alerts using the server >>and uses a random invalid return address for each alert. Sendmail is >>rejecting the messages based on the From field. >> >> > >Have you tried: >FEATURE(`accept_unresolvable_domains') > > > -- Steve Suhre steve@pasta.net 719.439.6052 Cell 719.632.2897 Home 719.634.8161 Work From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 2 00:10:03 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2977A16A4DA for ; Sat, 2 Sep 2006 00:10:03 +0000 (UTC) (envelope-from tech@nano.net) Received: from mail.smallweb.com (mail.smallweb.com [216.85.125.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D4E843D45 for ; Sat, 2 Sep 2006 00:10:02 +0000 (GMT) (envelope-from tech@nano.net) Received: from [216.85.125.9] (sixpence.nano.net [216.85.125.9]) by mail.smallweb.com (Rockliffe SMTPRA 5.3.11) with ESMTP id ; Fri, 1 Sep 2006 18:17:14 -0600 Message-ID: <44F8CBD3.4090908@nano.net> Date: Fri, 01 Sep 2006 18:09:55 -0600 From: Steve Suhre User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Busarow References: <44F8A238.3080001@nano.net> <20060901213455.GC749@turion.vk2pj.dyndns.org> <44F8AC2E.10604@pasta.net> <20060901222332.GD749@turion.vk2pj.dyndns.org> <89202C6E-DA1B-46F9-890E-98DAB58EDC51@dpcsys.com> In-Reply-To: <89202C6E-DA1B-46F9-890E-98DAB58EDC51@dpcsys.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Steve Suhre Subject: Re: sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2006 00:10:03 -0000 Thanks Dan. I did try putting "name+*@woohoo.com" to catch all of the "name123@woohoo.com" addresses, but it didn't seem to help. I'll try your suggestions. Dan Busarow wrote: > > On Sep 1, 2006, at 4:23 PM, Peter Jeremy wrote: > >> On Fri, 2006-Sep-01 15:54:54 -0600, Steve Suhre wrote: >> >>> The domain is resolvable. It's a local domain, that's why the server >>> rejects the message. It can see that the username doesn't exist and >>> dumps the connection right away. Here's an example, the mail never gets >>> sent. "woohoo.com" is the local domain: >>> >>> Fri Sep 01 17:00:35 GMT+00:00 2006Opening connection to MailServer >>> Fri Sep 01 17:00:35 GMT+00:00 2006 Sending Mail message >>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:HELO napserver.DBTDNS >>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response220 mail.domain.com >>> ESMTP Sendmail 8.12.10/8.12.10; Fri, 1 Sep 2006 10:59:12 -0600 (MDT) >>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:MAIL FROM: >>> name5612@woohoo.com >>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response250 mail.domain.com >>> Hello 123-45-67-150.woohoo.com [123.45.67.150] (may be forged), >>> pleased to meet you >>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:RCPT TO: >>> kripton@hoowoo.com >>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response553 5.3.0 >>> name5612@woohoo.com... User Unknown >>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP msg sent:DATA >>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL >>> before RCPT >>> Fri Sep 01 17:00:35 GMT+00:00 2006SMTP response503 5.0.0 Need MAIL >>> command >> >> >> I can't reproduce this with sendmail 8.13 (though I'm not sure I'm >> correctly replicating your environment). I suggest you either UTSL or >> ask on a sendmail list. > > > I was able to duplicate it. > > It seems to kick when when the sender domain is in your virtusertable > with entries like > > a@woohoo.com a > b@woohoo.com b > @woohoo.com error:nouser User Unknown > > If the domain does not have the error condition, i.e. lets the address > fall through as a local user, then sendmail does not complain. With > the error condition you'll see behaviour just as described. > > This is part of check_mail which you *do not* want to disable. So > you'll need to either change your virtusertable to use a catchall > > @woohoo.com nobody > > or remove the bare @woohoo.com from the virtusertable and let the > address fall through as a local user. > > Dan > > > > > > -- Steve Suhre steve@pasta.net 719.439.6052 Cell 719.632.2897 Home 719.634.8161 Work From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 2 02:29:32 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5991616A4DE; Sat, 2 Sep 2006 02:29:32 +0000 (UTC) (envelope-from sobomax@sippysoft.com) Received: from sippysoft.com (gk.360sip.com [72.236.70.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id D27F743D49; Sat, 2 Sep 2006 02:29:31 +0000 (GMT) (envelope-from sobomax@sippysoft.com) Received: from [192.168.0.49] ([204.244.149.125]) (authenticated bits=0) by sippysoft.com (8.13.6/8.13.6) with ESMTP id k822TSbx004957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 1 Sep 2006 19:29:30 -0700 (PDT) (envelope-from sobomax@sippysoft.com) Message-ID: <44F8EC7F.5090605@sippysoft.com> Date: Fri, 01 Sep 2006 19:29:19 -0700 From: Maxim Sobolev Organization: Sippy Software User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 02 Sep 2006 03:47:54 +0000 Cc: "current@freebsd.org" Subject: Proper (no) accounting for the disabled HTT cores X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2006 02:29:32 -0000 Hi, Currently, FreeBSD by default disables hyper-threading "cores", by not scheduling any threads to it. However, it still counts those cores as "active but permanently idle" when calculating system-wide CPUs statistics. It is incorrect, since it skews statistics quite a bit and creates real problems for certain types of applications (monitoring applications for example), by making them believe that the system does have enough idle resources, while in fact it does not. I think the proper way to handle disabled cores is to not account for them in any way. Please find the patch attached, which fixes the problem. Any comments or suggestions are welcome. -Maxim Index: local_apic.c =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/local_apic.c,v retrieving revision 1.28 diff -d -u -r1.28 local_apic.c --- local_apic.c 12 Jul 2006 21:22:43 -0000 1.28 +++ local_apic.c 2 Sep 2006 00:42:32 -0000 @@ -615,6 +615,16 @@ /* Send EOI first thing. */ lapic_eoi(); + /* + * Don't do any accounting for the disabled HTT cores, since it + * will provide misleading numbers for the userland. + * + * No locking is necessary here, since even if we loose the race + * when hlt_cpus_mask changes it is not a big deal, really. + */ + if ((hlt_cpus_mask & (1 << PCPU_GET(cpuid))) != 0) + return; + /* Look up our local APIC structure for the tick counters. */ la = &lapics[PCPU_GET(apic_id)]; (*la->la_timer_count)++; From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 2 03:49:19 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5720516A4E2 for ; Sat, 2 Sep 2006 03:49:19 +0000 (UTC) (envelope-from curious.manu@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id E11BF43D4C for ; Sat, 2 Sep 2006 03:49:14 +0000 (GMT) (envelope-from curious.manu@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so1521514pye for ; Fri, 01 Sep 2006 20:49:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=lEKD7uajntLedNSllyRZgWXN/w/5r/UeGx3ny4sK4Ygtw0xsiGnSigM8aplTr0cjlq5GImTvh0MUeiE8CvEoCAtWcTcSg1AbWgznuMLlIBqr7XwK69TDwLVeNFkgGhV3VPDVGwog/7kVHqtq/0zAB6h/SSUSjl5kzRG8bqa2kIc= Received: by 10.35.46.6 with SMTP id y6mr4490588pyj; Fri, 01 Sep 2006 20:49:14 -0700 (PDT) Received: by 10.35.122.18 with HTTP; Fri, 1 Sep 2006 20:49:09 -0700 (PDT) Message-ID: <7a8ff1360609012049w549cc33dlb1e0fece513b20f0@mail.gmail.com> Date: Sat, 2 Sep 2006 12:49:09 +0900 From: "Manu Curious" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD 6.0 freezes after root mount failure at boot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2006 03:49:19 -0000 Hi All, While booting with 6.0, Root mount fails at boot up and It asks for manual root mount. But my box freezes so i can't instruct anything to the box. So two problems here 1. root mount failure and 2. Box hang I digged the first problem and it turns put that VOP_LOOKUP returns ENOENT 2 (in namei with LOOKUP flag) while trying to mount the correct device : /dev/ad4s4a : ufs Whereas my back up kernel runs fine except TTY1 hangs at times after login or later but rest terminals runnning fine. Any clues anybody. Thanks in advance, Manu From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 2 06:21:43 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A40C16A4DD; Sat, 2 Sep 2006 06:21:43 +0000 (UTC) (envelope-from ssouhlal@FreeBSD.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2320243D45; Sat, 2 Sep 2006 06:21:43 +0000 (GMT) (envelope-from ssouhlal@FreeBSD.org) Received: from [192.168.250.2] (217-162-175-152.dclient.hispeed.ch [217.162.175.152]) by elvis.mu.org (Postfix) with ESMTP id 3D16C1A4D8C; Fri, 1 Sep 2006 23:21:42 -0700 (PDT) Message-ID: <44F922BD.5060108@FreeBSD.org> Date: Sat, 02 Sep 2006 08:20:45 +0200 From: Suleiman Souhlal User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051204) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Maxim Sobolev References: <44F8EC7F.5090605@sippysoft.com> In-Reply-To: <44F8EC7F.5090605@sippysoft.com> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org, "current@freebsd.org" Subject: Re: Proper (no) accounting for the disabled HTT cores X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2006 06:21:43 -0000 Maxim Sobolev wrote: > Hi, > > Currently, FreeBSD by default disables hyper-threading "cores", by not > scheduling any threads to it. However, it still counts those cores as > "active but permanently idle" when calculating system-wide CPUs > statistics. It is incorrect, since it skews statistics quite a bit and > creates real problems for certain types of applications (monitoring > applications for example), by making them believe that the system does > have enough idle resources, while in fact it does not. > > I think the proper way to handle disabled cores is to not account for > them in any way. Please find the patch attached, which fixes the > problem. Any comments or suggestions are welcome. > > -Maxim > > Index: local_apic.c > =================================================================== > RCS file: /home/ncvs/src/sys/i386/i386/local_apic.c,v > retrieving revision 1.28 > diff -d -u -r1.28 local_apic.c > --- local_apic.c 12 Jul 2006 21:22:43 -0000 1.28 > +++ local_apic.c 2 Sep 2006 00:42:32 -0000 > @@ -615,6 +615,16 @@ > /* Send EOI first thing. */ > lapic_eoi(); > > + /* > + * Don't do any accounting for the disabled HTT cores, since it > + * will provide misleading numbers for the userland. > + * > + * No locking is necessary here, since even if we loose the race > + * when hlt_cpus_mask changes it is not a big deal, really. > + */ > + if ((hlt_cpus_mask & (1 << PCPU_GET(cpuid))) != 0) > + return; > + > /* Look up our local APIC structure for the tick counters. */ > la = &lapics[PCPU_GET(apic_id)]; > (*la->la_timer_count)++; You probably also want this for amd64. Also, wouldn't it be better to completely disable the LAPIC timer on the hyperthreaded cpus? -- Suleiman