From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 396401384AE for ; Sun, 20 Sep 2015 08:08:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 17BA121C03D; Sun, 20 Sep 2015 08:07:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C5C09E08B8 for ; Sun, 20 Sep 2015 08:07:51 +0000 (UTC) Received: from localhost (unknown [46.148.228.38]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: bircoph) by smtp.gentoo.org (Postfix) with ESMTPSA id 3630B3407D0 for ; Sun, 20 Sep 2015 08:07:48 +0000 (UTC) Date: Sun, 20 Sep 2015 11:07:32 +0300 From: Andrew Savchenko To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Distfiles cache setup Message-Id: <20150920110732.951842a74005d44d18270ec1@gentoo.org> In-Reply-To: <55FCB0CF.30107@gmail.com> References: <55FC43A3.1050005@gmail.com> <20150918211532.6945fc67@digimed.co.uk> <55FCB0CF.30107@gmail.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.20; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA512"; boundary="Signature=_Sun__20_Sep_2015_11_07_32_+0300_7qIvLIqoThzWniCy" X-Archives-Salt: 7c41a482-83c3-4765-b004-424d1a893f77 X-Archives-Hash: 21c09c97326d2e9c06bbfdcf214f2448 --Signature=_Sun__20_Sep_2015_11_07_32_+0300_7qIvLIqoThzWniCy Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 18 Sep 2015 17:48:15 -0700 Daniel Frey wrote: > On 09/18/2015 01:15 PM, Neil Bothwick wrote: > > How tight is space? eclean-dist only removes distfiles for packages that > > are no longer in the tree. So you can run it on one system and keep > > $DISTDIR reasonably trimmed. If you use the --package-names option, it > > will do as you suggest and only keep files needed by the machine running > > the command. > >=20 >=20 > Thanks for the replies. >=20 > I regularly run eclean-dist on the mythtv frontends as I still have 32GB > SSDs on a couple of them. These are pretty lean as all file shares & > mythtv recordings are on the server that is running 24/7. >=20 > I figured eclean-dist would wipe out everything that wasn't needed by > the machine it was run on, but if all it does is clean stuff that isn't > in the tree any longer that would work too. This is controllable: - eclean-dist cleans what is in the tree no longer and not installed in the system; - eclean-dist -d cleans everything not installed in the system. One can also restrict cleaning by file date (e.g. don't touch files newer than) or by file size; fetch-protected files may be spared as well. See eclean-dist --help for more details. =20 > The server I'd be running it on has ample space. Which is why I was > debating over the http-replicator (thanks for the suggestion Peter!) and > just exporting the damn distfiles directory. >=20 > I think I'm going to try exporting it first and see if it does what I > want first, if it works I'll leave it. :-) We have a cluster of identical machines. Exporting over NFS works just fine, though we exported not only /usr/portage, but /usr/local/portage, /var/lib/layman and /var/cache/edb/dep as well (we use sqlite backed for portage). Best regards, Andrew Savchenko --Signature=_Sun__20_Sep_2015_11_07_32_+0300_7qIvLIqoThzWniCy Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJV/mlEAAoJEPZTWjO6HuSNFWQQAJbu3vLCAfkNvU7dEmZ4Z5OZ qRaGsxq7o1kGyqqOixchqpX7AovkLnp4Jnp57XYj8Mno/fna5qCf9YIO9kN/dS3N cN0sIQjxlopFglKOh/2Iow+/z07OwYK86ZciYK/iUs81oyU6rsjEUuuaJUuXjBMf M0NXuAh+3o2nzIP30FYO3+aT/miJrp4iZU+gfx97oVsCdw71VEKeMvTMeN8fEfdK FRm1GN40XA33iSLV0MzNI1nwJfype3KfBSp8fTnY8WMqJqHB/4A302dR+CcFDWWK Gx0seXugLRHHUZ5oeVU3PjrKZ3c+lL/QYFTKJCezO5jPRoyDhmveIxn4xXJgunLy nnT5jMW5kyRNaqREB12JvBdbw0Z31GjHhC3eMZtw0O6IpRKvLQns/b3wEbwBwTWe ajNxEjc+y5FNPudOui3MPaywqOsdaMaa7S4qP6qehMdg+Kii1+VRWaDdmbomScf0 NPAoE4C9cUn5G9uZcx64oK11qKSCzgKlFxsy6/6yVWSibH6VouGmfoQzxnOAKNAf /w+YoeK7iSGv9MT36fUqvTBc5Z6O8eddK0FIifTmGMqmUqOXYfAPkHdJ0gJcZLAs T8nXMzLYbIMr+BRRTsCEX3Sf8wP8EErNflml8H6Pz10/TXfdEOtdzkJYYFWpYuQP +o5ETjHqQm6SeDxEuQiR =+vqv -----END PGP SIGNATURE----- --Signature=_Sun__20_Sep_2015_11_07_32_+0300_7qIvLIqoThzWniCy--