﻿{"id":240,"date":"2009-11-29T12:44:17","date_gmt":"2009-11-29T11:44:17","guid":{"rendered":"http:\/\/www.marallo.sk\/?p=240"},"modified":"2009-11-29T14:14:54","modified_gmt":"2009-11-29T13:14:54","slug":"nfs-alebo-pripoj-si-priecinok-zo-vzdialeneho-pocitaca","status":"publish","type":"post","link":"https:\/\/www.marallo.sk\/?p=240","title":{"rendered":"NFS, alebo pripoj si prie\u010dinok zo vzdialen\u00e9ho po\u010d\u00edta\u010da"},"content":{"rendered":"<p><!-- \t\t@page { margin: 2cm } \t\tP { margin-bottom: 0.21cm } --><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"font-family: Nimbus Roman No9 L,serif;\">NFS je sie\u0165ov\u00fd protokol, vytvoren\u00fd v roku 1984 firmou Sun Microsystems na zdielanie s\u00faborov v lok\u00e1lnej sieti. Umo\u017e\u0148uje pripoji\u0165 prie\u010dinok na vzdialenom po\u010d\u00edta\u010di, ako lok\u00e1lny disk pr\u00edkazom mount. V tomto \u010dl\u00e1nku je n\u00e1vod na in\u0161tal\u00e1ciu a konfigur\u00e1ciu NFS servera a klienta v linuxe (Ubuntu).<!--more--><\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"font-family: Nimbus Roman No9 L,serif;\">&#8211;<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"font-family: Nimbus Roman No9 L,serif;\">Za\u010dneme serverom:<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"font-family: Nimbus Roman No9 L,serif;\">Nain\u0161talujeme bal\u00ed\u010dek <span style=\"color: #33cccc;\">nfs-kernel-server<\/span> napr\u00edklad pr\u00edkazom v konzoli:<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #33cccc;\">sudo apt-get install nfs-kernel-server<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"font-family: Nimbus Roman No9 L,serif;\">Prie\u010dinky ktor\u00e9 chceme zdiela\u0165 konfigurujeme v <span style=\"color: #33cccc;\">\/etc\/exports<\/span>. Napr\u00edklad:<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #33cccc;\">\/var\/log *(ro,sync,no_root_squash) <\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #33cccc;\">\/home     *(rw,sync,no_root_squash)<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"font-family: Nimbus Roman No9 L,serif;\">No a spust\u00edme slu\u017ebu NFS:<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #33cccc;\">sudo \/etc\/init.d\/nfs-kernel-start start<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">&#8211;<\/p>\n<p style=\"margin-bottom: 0cm;\">Nastavujeme klientov:<\/p>\n<p style=\"margin-bottom: 0cm;\">Nain\u0161talujeme klienta. V Ubuntu (Debiane) je to bal\u00ed\u010dek <span style=\"color: #33cccc;\">nfs-common<\/span>.<\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #33cccc;\">sudo apt-get install nfs-common<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\">Tento klient podporuje tri verzie NFS protokolu: NFS verzie 2 [RFC1094], NFS verzie 3  [RFC1813] a NFS verzie 4 [RFC3530].<\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">A pripoj\u00edme vzdialen\u00fd prie\u010dinok do lok\u00e1lneho.<\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #33cccc;\">sudo mount 10.0.0.5:\/var\/log \/mnt\/logy<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\"><span style=\"color: #33cccc;\">sudo mount 10.0.0.5:\/home \/mnt\/disk<\/span><\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">Prie\u010dinky \/mnt\/logy, a \/mnt\/disk samozrejme u\u017e existuj\u00fa. T\u00fdmto m\u00e1me vzdialen\u00e9 prie\u010dinky pripojen\u00e9, a m\u00f4\u017eeme s nimi pracova\u0165 ako s lok\u00e1lnymi.<\/p>\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">\n<p style=\"margin-bottom: 0cm;\">&#8211;<\/p>\n<p style=\"margin-bottom: 0cm;\">Pou\u017eit\u00e1 literat\u00fara:<\/p>\n<p style=\"margin-bottom: 0cm;\">nfs manu\u00e1lov\u00e1 str\u00e1nka (man nfs)<\/p>\n<p style=\"margin-bottom: 0cm;\">www str\u00e1nky slobodn\u00fd otvoren\u00fd syst\u00e9m pre \u0161koly (<a href=\"http:\/\/sospreskoly.org\/sietovy-suborovy-system-nfs\" target=\"blank\">http:\/\/sospreskoly.org\/sietovy-suborovy-system-nfs<\/a>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NFS je sie\u0165ov\u00fd protokol, vytvoren\u00fd v roku 1984 firmou Sun Microsystems na zdielanie s\u00faborov v lok\u00e1lnej sieti. Umo\u017e\u0148uje pripoji\u0165 prie\u010dinok na vzdialenom po\u010d\u00edta\u010di, ako lok\u00e1lny disk pr\u00edkazom mount. V tomto \u010dl\u00e1nku je n\u00e1vod na in\u0161tal\u00e1ciu a konfigur\u00e1ciu NFS servera a klienta v linuxe (Ubuntu).<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[9,10,11],"tags":[],"class_list":["post-240","post","type-post","status-publish","format-standard","hentry","category-it","category-linux-it","category-all"],"views":2878,"_links":{"self":[{"href":"https:\/\/www.marallo.sk\/index.php?rest_route=\/wp\/v2\/posts\/240"}],"collection":[{"href":"https:\/\/www.marallo.sk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.marallo.sk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.marallo.sk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.marallo.sk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=240"}],"version-history":[{"count":12,"href":"https:\/\/www.marallo.sk\/index.php?rest_route=\/wp\/v2\/posts\/240\/revisions"}],"predecessor-version":[{"id":252,"href":"https:\/\/www.marallo.sk\/index.php?rest_route=\/wp\/v2\/posts\/240\/revisions\/252"}],"wp:attachment":[{"href":"https:\/\/www.marallo.sk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.marallo.sk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=240"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.marallo.sk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}