Next Previous Contents

10. To NFS sto Linux 2.2

Ka8ws grafw to HowTo, h parousa ekdosh toy pyrhna toy Linux einai h 2.2.12 , kai h xrhsh NFS s' aythn mporei na ginei ligo aggareia. Mporei kai oxi.

Den jerw ti 8a ginei me to NFS sto Linux 2.4 .

To neo spoydaio pragma me to Linux 2.2 einai h yposthrijh enos nfs server demon poy brisketai mesa ston pyrhna, kai onomazetai knfsd. Aytos o tropos ylopoihshs toy nfsd exei merika pleonekthmata, to kyriotero twn opoiwn einai h taxuthta. Enas H/Y me Linux 2.2 me ton knfsd einai enas ajiosebastos nfs server. Wstoso, panta mporeite na xrhsimopoihsete ton palio nfsd me to Linux 2.2, kai yparxoyn epishs merika pleonekthmata s' ayth th xrhsh, to kyriotero twn opoiwn einai h aplothta.

An xrhsimopoieite source pyrhna h binary paketo, ftiagmena apo kapoia etairia san px thn RedHat (ekdosh 6.0 kai meta), thn SuSE (ekdosh 6.1 kai meta, nomizw), h kapoion allon epaggelmatia kataskeyasth dianomwn, pi8anotata exoyn symperilabei plhrh leitoyrgikothta "knfsd" ston pyrhna toys. Kai den xreiazetai na problhmatizeste, stis perissoteres periptwseis 8a doylecei. Mexris otoy na sas er8ei na kanete compile enan pyrhna monoi sas. An xrhsimopoieite kapoion apo toys dia8esimoys pyrhnes 2.2 toy Linux (toylaxiston mexri kai ton 2.2.12), o knfsd 8a stamathsei na doyleuei.

Gia na ta kataferete monoi sas na jeperasete to empodio, xreiazeste na breite to paketo knfsd toy H. J. Lu. Ayto einai mia syllogh patches kai aparaithtwn utilities gia ton pyrhna 2.2, poy o Lu epimeleitai ston eleu8ero xrono toy. Mporeite na th breite apo ton plhsiestero mirror gia toys pyrhnes toy Linux, me to kyriws site na einai to : ftp.kernel.org:/pub/linux/devel/gcc/. Ta parapanw den ta grafw gia "laikh katanalwsh". An ayto to paketo sas mperdecei, mhn prospa8eite na kanete compile ton pyrhna monoi sas. Perimenete mexri na bgei ena sxetiko paketo apo ton agaphmeno sas dianomea toy Linux (px RedHat, SuSE, klp).

Epishs, mh moy stelnete e-mails me erwthseis gi' ayto to 8ema. Den mporw na sas boh8hsw. Den exw dia8esimoys servers na trexoyne knfsd. An breite sfalmata h paraleiceis sthn parousa tekmhriwsh, parakalw gracte moy, kai 8a dior8wsw ayto to HOWTO kai 8a to janadwsw sto anagnwstiko koino.

Ejakoloy8eite na diabazete; Ok. O H. J. Lu stelnei tis nees ekdoseis toy paketoy toy sth mailing list gia ton pyrhna toy Linux. Epishs, ekei stelnontai kai alla 8emata sxetika me to NFS se pyrhnes 2.2 . Diabaste ta.

Yparxei ena ajioshmeiwto xarakthristiko toy paketoy toy knfsd : Anakoinwnei oti yposthrizei thn ekdosh 3 toy NFS. Wstoso, den thn yposthrizei. Mporeite na dwsete mia parametro, gia na stamathsete aythn thn anakoinwsh, h na dwsete "vers=2" sth lista epilogwn mount twn clients.

10.1 O client

O client einai sxetika aplos. Gia kalo locking, prepei na kanoyme compile ton statd (apo to paketo toy knfsd), na ton egkatasthsoyme, kai na ton ekkinhsoyme apo ta scripts ekkinhshs. Kante akribws etsi. Gia na doylecei o statd, xreiazetai ena directory me onoma /var/lib/nfs, diaforetika stamataei xwris kanena mhnyma la8oys, ara prin ton trejoyme, prepei na ftiajoyme to sygkekrimeno dir.

Otan jekinhsei o statd na trexei, mporeite na xrhsimopoihsete to programma testlk (sto tools/locktest), gia na dokimasete an doyleuei to locking enos arxeioy s' ena NFS filesystem. Logika, doyleuei. An deite mhnyma No locks available, o statd den doyleuei.

Sthn pragmatikothta, mporeite n' apofugete teleiws to locking (oxi pws synistw kati tetoio), dinontas "nolock" sth lista epilogwn toy mount.

Sumfwna me osa gnwrizw, ayta einai ola osa xreiazontai, gia na doylecei enas client.

Ean exete Sparc h Alpha NFS server, 8a diapistwsete oti o nfs client toy Linux 2.2 einai teleiws xalia. O ry8mos metadoshs dedomenwn apo kai pros ton server einai toso eleeinos, poy den mporeite na fantasteite. Einai polu xeiroteros ap' o,ti sto Linux 2.0 . Polu. Alla, fysika, yparxei kai h 8erapeia ths katastashs ayths : H seira pyrhnwn 2.2 toy Alan Cox (poy einai ligaki pio peiramatikoi apo toys normal pyrhnes 2.2 toy Linus) exei ena patch gia anebasma ths apodoshs toy Linux 2.2 me toys Alpha kai Sparc servers. An 8elete na xrhsimopoihsete toys pyrhnes 2.2 toy Alan Cox, prepei na parakoloy8eite th mailing list gia toys pyrhnes toy Linux. Kai an to kanete ayto, hdh 8a jerete pou mporei na bre8ei to sygkekrimeno patch : To home site toy einai to http://www.uio.no/~trondmy/src/, se periptwsh poy 8elete na dokimasete na to balete se dia8esimo pyrhna 2.2 . Ayto to patch pi8anotata den 8a perilambanetai oute sto Linux 2.4, epeidh apaitei para polles allages ston pyrhna, gia na ginei apodekto ston paronta kuklo anaptyjhs. Na perimenete to Linux 2.5 .

To trondmy epishs dia8etei patches poy kanoyn to Linux na xrhsimopoiei thn ekdosh 3 toy NFS, ki epishs 8a sas dwsei th dynatothta na xrhsimopoieite to tcp gia metafora arxeiwn, anti toy UDP. O NFS v. 3 einai polu kalos gia megala diktya, h diktya opoy h apwleia paketwn den einai mhdenikh, h oi xronoi anamonhs einai megaloi.

O logos poy prepei na parakoloy8eite th mailing list gia toys pyrhnes toy Linux, prokeimenoy na xrhsimopoihsete ayta ta patches, einai oti merikes fores yparxoyn asxhma bugs mesa toys. Bugs poy dialuoyn ta arxeia sas. Synepws, parakalw na prosexete.

10.2 O server

O nfs server demon toy Linux 2.2 kai twn metagenesterwn onomazetai "knfsd", kai 8elei ponhres ry8miseis. Lypamai, alla aytes prepei h na tis breite monoi sas, h na meinete proskollhmenoi se o,ti bgazoyn h SuSE, h RedHat, kai oi ypoloipoi, san paketa toy pyrhna 2.2 . Wstoso, kai me to Linux 2.2 mporeite panta na xrhsimopoihsete ton palio nfsd. Einai argos, alla eukolos na ton ry8miseis.


Next Previous Contents