From owner-freebsd-questions@FreeBSD.ORG Thu Oct 4 15:08:34 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 502911065672 for ; Thu, 4 Oct 2012 15:08:34 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id 1C20D8FC0A for ; Thu, 4 Oct 2012 15:08:33 +0000 (UTC) Received: from 24-181-237-39.dhcp.oxfr.ma.charter.com ([24.181.237.39] helo=Gregory-Larkins-iMac.local) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1TJn2E-0001dh-RC; Thu, 04 Oct 2012 11:08:33 -0400 Received: from Gregory-Larkins-iMac.local (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by Gregory-Larkins-iMac.local (Postfix) with ESMTPS id 6330816D3CC0; Thu, 4 Oct 2012 11:08:21 -0400 (EDT) Message-ID: <506DA664.5010707@FreeBSD.org> Date: Thu, 04 Oct 2012 11:08:20 -0400 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: Howard Leadmon References: <031201cda233$f7fd3210$e7f79630$@leadmon.net> <034001cda23a$df12b340$9d3819c0$@leadmon.net> <506D9CD6.40405@FreeBSD.org> <034801cda23c$fe73c5b0$fb5b5110$@leadmon.net> In-Reply-To: <034801cda23c$fe73c5b0$fb5b5110$@leadmon.net> X-Enigmail-Version: 1.4.4 X-SA-Exim-Connect-IP: 24.181.237.39 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_RP_RNBL, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,TVD_RCVD_IP autolearn=no version=3.3.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: freebsd-questions@FreeBSD.org, Trond.Endrestol@fagskolen.gjovik.no Subject: Re: Trouble updating Sources via subversion? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Oct 2012 15:08:34 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/4/12 10:31 AM, Howard Leadmon wrote: >> >> [...] >> >> Hi Howard, >> >> I know this doesn't answer the question about the svn problems >> you've been encountering, but have you considered using portsnap >> to keep your /usr/ports tree up to date? One of it's advantages >> is that you'll save space by not housing the /usr/ports/.svn >> directory created by "svn checkout". >> >> Once portsnap has populated the tree the first time, it's >> super-fast keeping it up to date, and it's easily invoked from a >> nightly cron job. >> >> Hope that helps, Greg >> > In theory that seems like an OK idea, but I figured I would > probably setup a mirror as I update a bunch of servers, so getting > one to house a local copy for the others to sync to seemed like a > decent goal. > > Also, and by all means correct me if I am wrong, but I want to sync > not only with /usr/ports, but also with /usr/src, and /usr/doc, and > I was under the impression that portsnap was only for ports, which > would still leave me holding the bag on the OS sources and such.. > > > --- Howard Leadmon - howard@leadmon.net > Unless you're trying to save bandwidth (and probably not too much anyway), I wouldn't set up a local portsnap mirror. It's very fast to sync from multiple machines. If you need to guarantee that every machine has the exact same /usr/ports, then you can rsync from a designated master to the others. As you mentioned, portsnap is only for the ports tree. For production machines, I use freebsd-update to keep /usr/src up to date, but that's only necessary when new base system patches are released. If you're tracking -STABLE or -CURRENT, then I agree that svn is the right solution. To solve the node conflict problem, here are some suggestions/questions to ponder: - - Check that your system clock is in sync with a good NTP source - - Make absolutely sure that a cron job or some other hidden process is not touching the /usr/ports, /usr/src and /usr/doc directories (mentioned by a previous poster) - - To verify that the directories haven't changed, try running this command immediate after the initial checkout: find /usr/ports/ -type f -print | sort | xargs md5 > /tmp/ports-md5-1.txt Wait a while, then run these commands: find /usr/ports/ -type f -print | sort | xargs md5 > /tmp/ports-md5-2.txt diff /tmp/ports-md5-[12].txt What is the output of the diff command? - - Does this problem show up consistently on more than one of your machines or just a subset? Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Darwin) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBtpmQACgkQ0sRouByUApDWCQCeNdJMNHM8dDbk+5KR4kdTHaaI b+kAoJn5F+w9BI2uWoKgeSvYIzF82etJ =uQPq -----END PGP SIGNATURE-----