1 |
Neil Bothwick wrote: |
2 |
> On Tue, 1 Feb 2011 05:48:32 -0800 (PST), BRM wrote: |
3 |
> |
4 |
> |
5 |
>> If the machine is not fast enough - mine is a PII 233 w/160 MB RAM, |
6 |
>> takes a while do to updates - then you really have to separate out what |
7 |
>> you are hosting from what you are using. Otherwise you end up in the |
8 |
>> situation that you have started one system update (or software |
9 |
>> install), have a build failure for whatever reason, and then can't |
10 |
>> complete the same one due to changes in the local copy of portage. |
11 |
>> |
12 |
> You can still use emerge -sync instead of a home brewed script. In make |
13 |
> conf, set SYNC to localhost, then in your cron job, do |
14 |
> |
15 |
> SYNC="some gentoo rsync mirror" emerge --sync |
16 |
> |
17 |
> |
18 |
>> So, even if your system fell into the first situation - where it is |
19 |
>> fast enough |
20 |
>> - then I would still recommend doing the little extra to run as the |
21 |
>> second situation. It's just far easier to maintain. |
22 |
>> |
23 |
> I've been using a single portage tree to serve a LAN and for use by the |
24 |
> host for years with no hint of any of the problems you suggest. I just |
25 |
> make sure the cron job on the server syncs earlier than the rest of the |
26 |
> LAN and everything is up to date. |
27 |
> |
28 |
> |
29 |
|
30 |
I used to have four computers a good while back. Back then, I synced my |
31 |
main rig then synced the others off it. This was several years ago. I |
32 |
don't use a cron job or anything to do this, just some old fashioned |
33 |
typing. I don't recall ever having trouble with it syncing to my main |
34 |
rig. Did I mention it was a very old Compaq 200MHz CPU machine with a |
35 |
whopping 128MBs of ram? Thing looks like a filing cabinet. |
36 |
|
37 |
To me, it seems the OP is making something complicated when it is just |
38 |
not needed. If you want to use cron jobs, set the main rig to sync a |
39 |
hour before the others would be set to sync against it. If the rig that |
40 |
syncs to Gentoo servers is to slow, set them two hours apart. From my |
41 |
understanding, you get the same tree all the way around. |
42 |
|
43 |
Giving some more thought, I once put /usr/portage on nfs. I sync once |
44 |
and all the systems used the same copy of the tree. The other way |
45 |
worked out to be easier tho. I seem to recall the need for running |
46 |
emerge --metadata too. That took a while on the old Compaq. lol |
47 |
|
48 |
Dale |
49 |
|
50 |
:-) :-) |