Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Multiple boxes, one rsync!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
SalsaDoom
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2003
Posts: 105
Location: Saskatoon, Saskatchewan

PostPosted: Mon Jun 23, 2003 4:55 am    Post subject: Multiple boxes, one rsync! Reply with quote

In order to reduce load on gentoo servers... and because it would be cool, and because it is possible to do... I want to setup one of the many gentoo computers in my house (I have uh, 3, soon to be 4) to grab the latest portage and have the rest of the computers recieve their sync's from that box.

Only problem is, I'm not entirely sure how to do this. I remember seeing a howto on how to setup an rsync mirror, and I figure thats what i'm probably looking for, although I can't seem to find it now. Anyone done anything similar?

--SD (SalsaDoom@jabber.org)
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Mon Jun 23, 2003 5:04 am    Post subject: Reply with quote

I believe you may have seen it in the last gwn. The howto is here. I just did it a couple days ago myself. Setting up the rsync mirror is pretty simple. I went with nfs for the distfiles. Seems like the simplest way to go for only a few machines.
Back to top
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Mon Jun 23, 2003 5:32 am    Post subject: Reply with quote

The easy way is: mount /usr/portage via nfs. For this, in the "server" do:
Code:
# emerge nfs-utils
# nano /etc/exports

/usr/portage 192.168.1.0/24(rw,no_root_squash,sync)

# rc-update add nfs default

You need to recompile the kernel for your server and clients and add support for nfs.

On your clients do:
Code:
# emerge nfs-utils
# nano /etc/fstab

192.168.1.1:/usr/portage /usr/portage nfs tcp,rw,hard,intr 0 0

# rc-update add netmount default


Then you just emerge sync on the server and your workstations get synched automagicaly :-)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum