Next Previous Contents

3. Ry8miseis ston server

3.1 Kanontas compile stoys pyrhnes

Pi8anotata h yposthrijh toy RARP mesa ston pyrhna toy server na einai mia kalh idea. Prepei na thn symperilabete, an einai na bootarete xwris parametroys pyrhna. Apo thn allh pleyra, den prokeitai na sas boh8hsei, an o client den brisketai sto idio ypodiktyo (subnet) me ton server.

O pyrhnas gia ton ws xreiazetai to akoloy8o elaxisto sunolo dynatothtwn compiled mesa toy :

An o ws 8a bootarei xwris parametroys toy pyrhna, prepei epishs na 8esete to root device ws 0:255. Kante to ayto dhmioyrgwntas ena ceutiko (dummy) arxeio device, dinontas : mknod /dev/nfsroot b 0 255. Afou ftiajete ayto to arxeio, mporeite na 8esete to root device toy image toy pyrhna, me : rdev <kernel-image> /dev/nfsroot.

3.2 Dhmioyrgia toy root filesystem

Antigrafontas to filesystem

Proeidopoihsh : An kai aytes edw oi odhgies pi8anotata 8a doylecoyn sto diko sas susthma, den einai ka8oloy aytonohtes gia opoiodhpote periballon. Gia kaluteroys tropoys na sthsete ena root filesystem gia toys clients, diabaste to NFS-Root-Client mini howto toy Ofer Maor <ofer@hadar.co.il>.

Afou apofasisete pou 8a balete to root tree, dhmioyrghste to me (px) : mkdir -p <directory> kai : tar cClf / - | tar xpCf <directory> -.

An bootarete ton pyrhna sas xwris LILO, tote to rootdir prepei na einai : /tftpboot/<IP-address>. An den sas aresei, mporeite na to allajete apo mesa apo to epanw-epanw Makefile sta sources toy pyrhna. Yajte gia mia grammh san ayth : NFS_ROOT = -DNFS_ROOT="\"/tftpboot/%s\"" An allajete ayth thn grammh, prepei na janakanete compile ton pyrhna.

Allages sto root filesystem

Twra afaireste ta axrhsta arxeia, kai elegjte ta scripts toy /etc/rc.d . Merika shmantika shmeia :

Kanontas export to filesystem

Kante export to root dir pros ton ws. Diabaste thn entolh : exports(5). Pi8anotata 8a prepei na epanekkinhsete to nfsd/mountd meta ap' ayth thn allagh. Me to RedHat ayto ginetai eukola, dinontas : /etc/rc.d/init.d/nfs stop ; /etc/rc.d/init.d/nfs start .

Ru8mish toy RARP

Ry8miste to RARP kapoy epanw sto diktyo. An bootarete xwris parametro nfsroot, o server toy RARP prepei na einai kai o server toy NFS . (Synh8ws einai.) Gia na to epituxete ayto, prepei na trejete enan pyrhna me yposthrijh RARP .

Gia na to kanete, dwste (kai egkatasthste to kapoy mesa sto /etc/rc.d toy server!) :

/sbin/rarp -s <ip-addr> <hardware-addr>

opoy :

ip-addr

einai h dieu8ynsh IP toy ws, kai

hardware-addr

einai h dieu8ynsh Ethernet ths kartas diktuoy toy ws.

paradeigma : /sbin/rarp -s 131.131.90.200 00:00:c0:47:10:12

Mporeite epishs na xrhsimopoihsete ena symboliko onoma anti ths dieu8ynshs IP, oso o server einai ikanos na briskei th dieu8ynsh ayth. (Me cajimo sto /etc/hosts , h sto DNS .)

Ru8mish toy BOOTP

Gia th ru8mish toy BOOTP prepei na dior8wsete to /etc/bootptab. Parakalw, symboyleyteite tis man selides bootpd(8) kai bootptab(5) .

Briskontas tis hardware diey8unseis twn kartwn

Den jerw poia einai h hardware dieu8ynsh! Pws thn briskw;


Next Previous Contents