From owner-freebsd-questions@FreeBSD.ORG Tue Nov 14 23:24:58 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EC5A16A403 for ; Tue, 14 Nov 2006 23:24:58 +0000 (UTC) (envelope-from grog@lemis.com) Received: from ext-gw.lemis.com (ext-gw.lemis.com [150.101.14.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF35343D70 for ; Tue, 14 Nov 2006 23:24:57 +0000 (GMT) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by ext-gw.lemis.com (Postfix) with ESMTP id 922341332E5; Wed, 15 Nov 2006 09:54:56 +1030 (CST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 7B83B9BEFA; Wed, 15 Nov 2006 09:54:56 +1030 (CST) Date: Wed, 15 Nov 2006 09:54:56 +1030 From: Greg 'groggy' Lehey To: "Christopher M. Hobbs" Message-ID: <20061114232456.GB5408@wantadilla.lemis.com> References: <20061109144600.GA71721@siloamsprings.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cmJC7u66zC7hs+87" Content-Disposition: inline In-Reply-To: <20061109144600.GA71721@siloamsprings.com> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 VoIP: sip:0871270137@sip.internode.on.net WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: freebsd-questions@freebsd.org Subject: Re: multiple ports trees X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2006 23:24:58 -0000 --cmJC7u66zC7hs+87 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thursday, 9 November 2006 at 8:46:00 -0600, Christopher M. Hobbs wrote: > Hello, list! > > I've got about six production servers and a couple of workstations > running FreeBSD 6.1-STABLE and 6.2-PRERELEASE. Some of these machines > are sitting in DMZ, the others are internal. Currently, each of them > has their own ports tree. > > How terrible of an idea would it be to take one of the production > servers that isn't really doing a whole lot of work, and make it's > /usr/ports available over NFS to the other machines? Am I headed in a > bad direction here? This is what I do. It's not completely without its problems, though: - Some programs, notably GNU autotools, get upset if you run across NFS. I've worked around this problem by copying the tree where necessary; it's not as bad as it seems. - The ports collection stores build information in the work directory. For example: $ ls -lart work3 -rw-r--r-- 1 root wheel 0 Nov 14 13:29 .patch_done.mythtv._usr_local -rw-r--r-- 1 root wheel 0 Nov 14 13:29 .extract_done.mythtv._usr_local -rw-r--r-- 1 root wheel 0 Nov 14 13:44 .configure_done.mythtv._usr_local -rw-r--r-- 1 root wheel 0 Nov 14 15:56 .build_done.mythtv._usr_local drwxr-xr-x 3 root wheel 512 Nov 14 15:56 . drwxr-xr-x 7 grog lemis 512 Nov 14 17:14 .. drwxr-xr-x 13 root wheel 1024 Nov 14 21:56 mythtv-0.20 If you build a package on one system, and then try on another, the Ports Collection will find these files and assume that there is nothing to do. You need to do a 'make clean' first to get it to do the process again, including dependency checks, on the new machine. > Also, what about user accounts between machines? With NFS you typically have the same user ID on all related machines. > I got to thinking that because some of the servers have the same > user accounts, would it be possible to share a password file or home > directories? Yes, again with some caveats. The biggest ones are configuration files in the home directory that contain references to the system you're working on. My biggest problem is the .emacs file: it refers to packages that I have installed on some systems only. > Should I build another box strictly for this purpose? I get by quite happily with a separate tree on one of my existing systems. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers. --cmJC7u66zC7hs+87 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFFWlBIIubykFB6QiMRAuiIAJ4uGRvTUnZsS5GOyUp8xJyma+bubgCfTkSL xi8R1zamcjrVvunz5ShWu5g= =Cu2V -----END PGP SIGNATURE----- --cmJC7u66zC7hs+87--