From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DsApX-0000tq-SM for garchives@archives.gentoo.org; Tue, 12 Jul 2005 02:49:08 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6C2lUct016702; Tue, 12 Jul 2005 02:47:30 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [134.68.220.30]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6C2gkrp008406 for ; Tue, 12 Jul 2005 02:42:46 GMT Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by smtp.gentoo.org with esmtp (Exim 4.43) id 1DsAk8-0002gy-7U for gentoo-user@lists.gentoo.org; Tue, 12 Jul 2005 02:43:32 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DsAjh-0007hS-6w for gentoo-user@gentoo.org; Tue, 12 Jul 2005 04:43:05 +0200 Received: from www.buffer.net ([24.73.161.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Jul 2005 04:43:05 +0200 Received: from wireless by www.buffer.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Jul 2005 04:43:05 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: James Subject: [gentoo-user] Re: rsync internal mirror configuration Date: Tue, 12 Jul 2005 02:42:42 +0000 (UTC) Message-ID: References: <001501c58647$908432b0$5f01010a@jnetlab.lcl> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 24.73.161.102 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517) Sender: news X-Archives-Salt: d2ab89d0-5cce-4f3c-9f41-e5870edb7406 X-Archives-Hash: 60cf5119a04cd1d52849d8777dcda756 Dave Nebinger joat.com> writes: > This has some implications: Ok, let's take it from the begining. A. I followed step 4 in this document: http://www.gentoo.org/doc/en/rsync.xml?style=printable I was able to 'emerge sync' up a local client on the rsync server successfully,so that part is done. Here are my client entries in /etc/make.conf: GENTOO_MIRRORS="192.168.2.9" SYNC="rsync://192.168.2.9/gentoo-portage" Test, per this document was successful, So now I can manually rsync up one system and then emerge sync all of the local gentoo clients manuallyor via cron (with crontab entries). > 1. the /usr/portage directory is not updated by this process. > You still need to emerge --sync the local system. This is QED > by a cron task. OK on the local rsync server I added this to automate the daily task of rsync(ing) # Rsync entries # 30 1 * * * root emerge sync Spartan but hopefully sufficent. I have (3) other documents to follow (this should be one doc) B) http://gentoo-wiki.com/HOWTO_Local_Rsync_Mirror. C) http://gentoo-wiki.com/Http_proxy D) http://gentoo-wiki.com/HOWTO_Download_Cache_for_LAN-Http-Replicator (B) tells me how to edit the /etc/rsyncd.conf file and the /etc/rsync/rsyncd.motd file. Also I did these: etc/init.d/rsyncd start rc-update add rsyncd default This mod was already made to each client's /etc/make.conf file: SYNC="rsync://192.168.2.9/gentoo-portage > 2. This only syncs up the /usr/portage tree but does not help reduce > the number of distfiles downloads. > Look at http://gentoo-wiki.com/Http_proxy OK, now I use document (C) to create the proxy entry on each client: Editing File: /etc/env.d/99local to look like this http_proxy="192.168.2.9:8080" instead of this http_proxy="proxy.server.com:8080" I check it on the client by issuing "echo $http_proxy" which give the correct results: 192.168.2.9:8080 So far so good??? > and http://gentoo-wiki.com/HOWTO_Download_Cache_for_ > LAN-Http-Replicator for > instructions there. By using the http-replicator you only will be > downloading distfiles/patch files once. OK here's where I use doc (D). http-replicator is masked so I # echo "net-proxy/http-replicator" >> /etc/portage/package.keywords # emerge http-replicator Which worked fine. Then I added this line to the clients and the rsync(distfile) server: http_proxy="http://192.168.2.9:8080" per the doc (D). On the server I ran: 'repcacheman --user portage --dir /var/cache/http-replicator' Then http-replicator start at boot: rc-update add http-replicator default and last run this daily on the server to keep it current? emerge -uDva world && repcacheman Anything I missed? The last part of doc (D) is a little fuzzy, especially the part about deleting duplicate and deleting the distfile directory. ??? Surely parts of all (4) documents belong in one master howto? > 3. There is no additional disk space requirements for the rsync mirror; > you're serving up your existing /usr/portage directory so it's not like you > wouldn't have those files around anyway. > Yea, well I'll keep a close eye on this. I have the server set up, and one client to update manually off of the server, It all goes well, I'll add more systems, and automate via cron the system that stay up 24 hours a day. Is there a script to update workstation systems, automatically, say 10 minutes after booting? How best to do this? James -- gentoo-user@gentoo.org mailing list