Next Previous Contents

2. Basikes arxes

Ka8ws hdh eipame, oi clients moirazontai oloklhro to root-fs me ton server. Alla, fysika, oi clients mporoun mono na to diabasoyn : Aytos einai o tropos leitoyrgias toy sygkekrimenoy systhmatos.

2.1 Ta pragmata den einai toso apla

Dystyxws, ta pragmata den einai toso apla. Yparxoyn kanadyo problhmata, poy prepei na jeperasoyme s' ayto to aplo sxhma.

Ka8e ws xreiazetai to (me dynatothta eggrafhs) diko toy antigrafo enos ari8mou apo katalogoys.

Sto synh8ismeno sthsimo, to Linux prepei na mporei na gracei stoys ejhs katalogoys :

  1. /dev
  2. /var
  3. /tmp

Yparxoyn 3 luseis gi' ayto, apo tis opoies h mia 8a doylecei mono sto /dev :

  1. fortwnoyme ena ramdisk kai to gemizoyme me untarring enos tarball, h antigrafontas ena protypo (template) katalogo.
  2. dhmioyrgoume ena dir gia ka8e ws epanw ston server, kai to fortwnoyme rw epanw sto nfs.
  3. Ston kernel 2.2, to devfs mporei na xrhsimopoih8ei anti toy /dev . Ayto einai ena virtual filesystem, san to /proc toy /dev.

Opws blepete, yparxoyn kamposoi tropoi gia na ly8ei ayto to problhma. Gia to ypoloipo meros aytou toy howto, kratame tis akoloy8es epiloges :

Mporei n' anagkastoume na dwsoyme dikaiwma eggrafhs sto /home

Den einai pragmatiko problhma, afou se ka8e sthsimo client/server se *nix systhmata to /home fortwnetai rw apo ton server. 'Ara, 8a kanoyme akribws ayto! ;)

Pws briskei enas ws to ip toy, wste na epikoinwnhsei me ton server;

Eytyxws gia mas, ayto to problhma exei hdh ly8ei, kai o pyrhnas toy Linux yposthrizei duo tropoys aytomatoy ka8orismou ths dieu8ynshs ip :

  1. RARP
  2. Bootp

To rarp einai eykolotero sth ru8mish, to bootp einai to pio eyelikto. Mia poy oi perissoteres bootroms (ROMs ekkinhshs apo karta diktuoy) yposthrizoyn mono to bootp, ayto kai 8a xrhsimopoihsoyme.

Ti ginetai me tis ry8miseis gia ka8e ws

Sto RedHat, ta perissotera arxeia ry8misewn poy ejartwntai apo ton sygkekrimeno H/Y, briskontai hdh sto /etc/sysconfig . Emeis 8a metakinhsoyme monaxa osa den briskontai ekei, kai 8a baloyme symlinks. Meta, 8a fortwsoyme ena jexwristo /etc/sysconfig gia ka8e ws. Ki ayto einai to mono meros twn ry8misewn, poy ejartatai apo th distribution : Se alles distributions, mporeite apla na ftiajete ena directory ry8misewn, na metakinhsete ola ta mh diamoirazomena arxeia ry8misewn ekei, kai na dhmioyrghsete symlinks. Epishs, to /etc/rc.d/rc3.d (h ta paromoia twn ypoloipwn distributions) mporei na xreiastei na diaforopoih8oun ston server, ap' o,ti einai stoys workstations. Ypo8etontas oti oloi oi ws trexoyne tis idies services sto runlevel 3, 8a ftiajoyme jexwrista runlevels 3 gia toys workstations kai ton server :

  1. kataskeyh toy /etc/rc.d/rc3.ws kai toy /etc/rc.d/rc3.server
  2. kanoyme to /etc/rc.d/rc3.d symlink pros to /etc/sysconfig/rc3.d
  3. kanoyme to /etc/sysconfig/rc3.d symlink pros to katallhlo /etc/rc.d/rc3.xxx
  4. antika8istoume to S99local sto rc3.ws m' ena link pros to /etc/sysconfig/rc.local , wste ka8e ws na exei to diko toy rc.local

Diafora problhmata

Yparxoyn akomh kapoia problhmata :

  1. To /etc/rc.d/rc.sysinit xreiazetai to /var, ara to /var prepei na fortw8ei h na dhmioyrgh8ei prin trejei to /etc/rc.d/rc.sysinit . Epishs, kalo 8a htan to gia ka8e ws /etc/sysconfig na fortw8ei prin trejoyn opoiadhpote initscripts.
  2. Prepei na mporoume na gracoyme sto /etc/mtab :

Next Previous Contents