Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
local LAN-install on for a set of identical machines
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Fri Apr 05, 2013 1:09 pm    Post subject: local LAN-install on for a set of identical machines Reply with quote

We have a roomful of identical machines -- the same proc, etc -- and we'd like to perform gentoo installation on all the machines simultaneously. What we need is some article that describes this process, or some similar process. We've searched the web, theyn are saying "Samba or NFS installation". So that means we install gentoo on server, and then install again using that server?

Thanks.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Fri Apr 05, 2013 6:03 pm    Post subject: Reply with quote

Sigma Kappa,

Heres a thumbnail sketch ...

Choose one machine as master and the others as slaves.

Get them all as far as networking working, a stage3 tarball installed and into the chroot.
Install distcc on each machine.

In the slaves, configure and start distccd, so all the slaves are listening to the master.

On the master, do a normal Gentoo handbook install except.
Be sure to set
Code:
buildpkg distcc
in FEATURES.
Set MAKEOPS="-jX" where X is the total number of CPU cores in all the slaves.

With these settings the master will keep binary copies of every package built, which you can later share with the slaves
The master becomes a BINHOST.
All the slaves take part is the build process as distcc sends jobs over the network to be compiled on the slaves. The master node should not do any building, it always has to run the linker and it may have to run all the configures too, so it still has plenty to do.

Read up about distcc, rsync, NFS and BINHOSTS.

When you have an install you like, you can share it with the other nodes in several ways.
Set up the slaves to point the the master as a BINHOST then use emerge -K to install exactly what you installed on the master. At this time they will need access to the identical portage tree as on the master. They can sync to the master or it can be shared over NFS.

All machines can be both masters and slaves but thats a detail that obscures the above explaination, so I have used one master and lots of slaves.

This isn't quite the question you asked. Here all the machines contribute to a single install, which you then distribute. This single install is put together with a view to later distribution.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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