Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Make your divX with a cluster of machines WITH EASE
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
fxlamare
n00b
n00b


Joined: 11 Dec 2002
Posts: 36
Location: LILLE, France

PostPosted: Fri Mar 14, 2003 10:25 pm    Post subject: Make your divX with a cluster of machines WITH EASE Reply with quote

Hi everyone !

I'm setting up a system based on ltsp (www.ltsp.org) and dvdrip (http://www.exit1.org/dvdrip ) to allow the making of a divX to be done with several machines.

i already did some prototypes servers, and it works rather well, but i have to clarify the server' setup procedure :roll:

to precise things, the idea is to boot machines from the network (U don't have to install linux on them). Assume those machines are the NODES of our cluster. think of rather fast machines, at least PIII800 MHz. For best results, nodes shouldn't have too different CPUs : you won't have any improvment if you make a cluster with a Pentium II 300 based node and an athlon XP 2200+ based one !!!

the big advantage of this trick is that when everything is setup (ok that's not easy to achieve and quite long at the moment !) you simply need an etherboot floppy (or a PXE capable NIC) to boot nodes. You can add as many nodes as you want. OK the network may become quite busy, i'll make tests to know the bandwidth used by a node...

the BIG problem is that the system provided with the ltsp's project has just the necessary to afford nodes to connect to an X server. It's nearly impossible to add packages to their system (as for version 3 of the project) and I must add dvdrip and ssh for my cluster to work...(see dvdrip's cluster-mode requirements for details)

Anyway, I achieved to prepare a prototype, simply by replacing the ltsp's 'root system' by a stage3-i686-gentoo-based system, into which I include LTSP's boot scripts and binaries.

then I use portage as usual in this system (chrooted environment) to compile all the needed packages.

the most time-consuming step is the ltsp boot scripts analysis, and the adaptation of the gentoo's tree to comply with an read only file system, exported via NFS....

but it works...

protocols to setup
dhcp | tftp | NIS | NFS | SSH

NFS exported directory are the root FS, /home and a /dvd directory containing the ripped DVD (.vob files)

when all is setup up :
I boot nodes with etherboot images (www.rom-o-matic.net) in runlevel 3
I start dvdrip on the master server
I set the project properties and add it to the cluster daemon
I add my nodes
I launch the process...

i must make further tests before I publish results...
if you have any comment on this.. or idea??

and sorry for my average english...

F.X. LAMARE
LILLE, France : 133 miles north of PARIS
and... don't ask me how i got this idea...
Back to top
View user's profile Send private message
Evangelion
Veteran
Veteran


Joined: 31 May 2002
Posts: 1087
Location: Helsinki, Finland

PostPosted: Sat Mar 15, 2003 12:29 pm    Post subject: Reply with quote

Shouldn't this go to "Documentation, tips & Tricks" ;)?

About the network-booting... How exactly do you do it? To my knowledge, you have three choices with LTSP:

-boot-floppy
-NIC with boot-ROM
-HD

I'm interested in thin-clients, but I need a good way to boot the machines. HD is not OK (drives up the cost and I want a thin-client with no moving parts), as is floppy (same reasons as with HD's), so I have the NIC-option left. But don't you need NIC's with custom boot-ROM in order to work with LTSP? What would be the best way to make the clients boot from the server?
_________________
My tech-blog | My other blog
Back to top
View user's profile Send private message
Matje
l33t
l33t


Joined: 29 Oct 2002
Posts: 619
Location: Hasselt, Belgium

PostPosted: Sat Mar 15, 2003 2:23 pm    Post subject: Reply with quote

I did (sorta) the same thing to create my thin-game-clients for lanparty's, it uses a 100 Mb switch and it can cope with all servers (4 - 5 or more ;-)) running at the same time quite happily. I started experimenting with ltsp but it evolved to what you got, I only use the initrd (which I modified) and the patch for the kernel of the ltsp-package. Furthermore I had to update a lot of init-scripts to cope with some problems...
_________________
Life is like a box of chocolates... Before you know it, it's empty...
Back to top
View user's profile Send private message
Visnu
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2003
Posts: 93

PostPosted: Sat Mar 15, 2003 7:54 pm    Post subject: Reply with quote

Hmmm, if you could do this to make DivX, would you be able to setup multiple machines to compile the same packages? Imagine how quickly 3-4 machines could emerge kde or gnome.
Back to top
View user's profile Send private message
noff
Guru
Guru


Joined: 11 Nov 2002
Posts: 388
Location: College Park, Maryland

PostPosted: Sun Mar 16, 2003 2:39 am    Post subject: Reply with quote

Visnu wrote:
Hmmm, if you could do this to make DivX, would you be able to setup multiple machines to compile the same packages? Imagine how quickly 3-4 machines could emerge kde or gnome.


Just use distcc.
_________________
What Larry was saying is that if you make it too easy for programmers, then poor programmers will be able to do things best left to good programmers, and will inevitably do them poorly. Everyone will suffer in the long term as a result." - Tom Chance
Back to top
View user's profile Send private message
fxlamare
n00b
n00b


Joined: 11 Dec 2002
Posts: 36
Location: LILLE, France

PostPosted: Sun Mar 16, 2003 12:54 pm    Post subject: Reply with quote

Evangelion wrote:
I have the NIC-option left. But don't you need NIC's with custom boot-ROM in order to work with LTSP? What would be the best way to make the clients boot from the server?


Quick response : No

The best way to achieve network boot + ltsp + NICs is to use PXE capable NICs. Then, you setup a DHCP server with some special options.

For example : assume you have a RTL8139-based-PXE-capable NIC.
Go to rom-o-matic.net, and get an etherboot image for this card.
In the ROM output format, choose "PXE loadable Image" and get the rom.
You put this ROM into your tftp server's publication folder (usually /tftpboot/pxe if you have a normal LTSP installation).

The LTSP package gives a DHCP configuration sample file with the right options. Adapt them to suit your needs.
Back to top
View user's profile Send private message
Evangelion
Veteran
Veteran


Joined: 31 May 2002
Posts: 1087
Location: Helsinki, Finland

PostPosted: Sun Mar 16, 2003 3:51 pm    Post subject: Reply with quote

fxlamare wrote:
Evangelion wrote:
I have the NIC-option left. But don't you need NIC's with custom boot-ROM in order to work with LTSP? What would be the best way to make the clients boot from the server?


Quick response : No

The best way to achieve network boot + ltsp + NICs is to use PXE capable NICs. Then, you setup a DHCP server with some special options.

For example : assume you have a RTL8139-based-PXE-capable NIC.
Go to rom-o-matic.net, and get an etherboot image for this card.
In the ROM output format, choose "PXE loadable Image" and get the rom.
You put this ROM into your tftp server's publication folder (usually /tftpboot/pxe if you have a normal LTSP installation).

The LTSP package gives a DHCP configuration sample file with the right options. Adapt them to suit your needs.


Sir, I salute you :)! Thanks for the info, it's just the thing I have been looking for!
_________________
My tech-blog | My other blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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