Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a small grid of computers that form an analysis cluster. One master node with internet on eth0, and a couple of private static IP workers connected to a switch. The master is also connected to the private network on eth1. All currently run Ubuntu 12.04 server. I am new to clusters in general and not much of a system admin, but I found that remotely updating the workers would be a problem. Since I'm just testing, all boxes are some old desktops that I assume differ too much to be able to clone worker images and install those.

Instead, I have thought out that one could run on the master

apt-get update

And transfer the package lists to the workers. Then let each worker run

apt-get upgrade -qq --print-uris | cut -d\' -f 2

to generate a list of packages, download them on the master, then transfer packages to the workers and installing them using

dpkg -i package_name

Although I wouldn't mind if someone pointed out I'm doing it wrong here, it is the first step that I have questions about. Where do the package lists go when downloaded? If I keep identical sources.list files will the right package lists be downloaded for the individual workers?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

If you can spare the disk space, build an archive mirror with debmirror on an internet-connected machine, then move it to the non-connected network.

You'll need about 70GB of space for a full mirror of Precise (12.04) only.

A full ubuntu mirror (all versions, releases, CDs etc) is about 700GB.

You'll need to do some other stuff too, but there's really good documentation on the ubuntu site.

share|improve this answer
    
Excellent, this makes more sense than my method. Thanks! –  glormph Nov 13 '13 at 16:22
1  
maybe use apt-proxy can help in this particular case, (instead of create a full mirror) help.ubuntu.com/community/AptProxy –  CronosNull Nov 15 '13 at 19:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.