NFS » Historique » Version 17
  Patrice Nadeau, 2016-06-18 15:10 
  
| 1 | 13 | Patrice Nadeau | h1. NFS  | 
|---|---|---|---|
| 2 | 1 | Patrice Nadeau | |
| 3 | 13 | Patrice Nadeau | NFS(Network File System) est une solution d’accès de fichier sur un serveur central.  | 
| 4 | La solution est en deux partie, une serveur et l'autre client.  | 
||
| 5 | 8 | Patrice Nadeau | |
| 6 | 6 | Patrice Nadeau | ----  | 
| 7 | |||
| 8 | 5 | Patrice Nadeau | |
| 9 | 1 | Patrice Nadeau | {{toc}} | 
| 10 | |||
| 11 | 13 | Patrice Nadeau | h2. Serveur  | 
| 12 | 1 | Patrice Nadeau | |
| 13 | 13 | Patrice Nadeau | h3. Installation  | 
| 14 | 1 | Patrice Nadeau | |
| 15 | 2 | Patrice Nadeau | Les « packages » _libdaemon_ et _avahi_ doivent être présents.  | 
| 16 | |||
| 17 | 1 | Patrice Nadeau | <pre><code class="bash">  | 
| 18 | 17 | Patrice Nadeau | zypper install nfs-kernel-server yast2-nfs-server  | 
| 19 | 1 | Patrice Nadeau | </code></pre>  | 
| 20 | |||
| 21 | 13 | Patrice Nadeau | h3. Démarrage  | 
| 22 | 1 | Patrice Nadeau | |
| 23 | <pre><code class="bash">  | 
||
| 24 | 14 | Patrice Nadeau | systemctl enable rpcbind.service  | 
| 25 | systemctl start rpcbind.service  | 
||
| 26 | 1 | Patrice Nadeau | systemctl enable nfsserver.service  | 
| 27 | systemctl start nfsserver.service  | 
||
| 28 | </code></pre>  | 
||
| 29 | |||
| 30 | 13 | Patrice Nadeau | h3. Pare-feu  | 
| 31 | 4 | Patrice Nadeau | |
| 32 | 15 | Patrice Nadeau | <pre><code class="bash">  | 
| 33 | yast firewall services add service=service:nfs-kernel-server zone=EXT  | 
||
| 34 | </code></pre>  | 
||
| 35 | 2 | Patrice Nadeau | |
| 36 | 13 | Patrice Nadeau | h3. Configuration  | 
| 37 | 8 | Patrice Nadeau | |
| 38 | 13 | Patrice Nadeau | h4. CLI(Command Line Interface)  | 
| 39 | 2 | Patrice Nadeau | |
| 40 | 1 | Patrice Nadeau | Le fichier _/etc/exports_ contient les noms des répertoires à rendre disponibles.  | 
| 41 | 2 | Patrice Nadeau | |
| 42 | Les explications de configuration sont fournis par  | 
||
| 43 | 1 | Patrice Nadeau | <pre><code class="bash">  | 
| 44 | 2 | Patrice Nadeau | man 5 exports  | 
| 45 | 1 | Patrice Nadeau | </code></pre>  | 
| 46 | 2 | Patrice Nadeau | |
| 47 | Une fois modifié, relire le fichier avec  | 
||
| 48 | <pre><code class="bash">  | 
||
| 49 | exportfs -a  | 
||
| 50 | 1 | Patrice Nadeau | </code></pre>  | 
| 51 | |||
| 52 | 13 | Patrice Nadeau | h4. GUI(Graphical User interface)  | 
| 53 | 8 | Patrice Nadeau | |
| 54 | 1 | Patrice Nadeau | Via le module _nfs server_ de YaST (*yast nfs_server*)  | 
| 55 | 8 | Patrice Nadeau | |
| 56 | 13 | Patrice Nadeau | h2. Client  | 
| 57 | 4 | Patrice Nadeau | |
| 58 | 13 | Patrice Nadeau | h3. Installation  | 
| 59 | 1 | Patrice Nadeau | |
| 60 | <pre><code class="bash">  | 
||
| 61 | zypper install nfs-client  | 
||
| 62 | 4 | Patrice Nadeau | </code></pre>  | 
| 63 | 1 | Patrice Nadeau | |
| 64 | 13 | Patrice Nadeau | h3. Utilisation  | 
| 65 | 8 | Patrice Nadeau | |
| 66 | 13 | Patrice Nadeau | h4. CLI(Command Line Interface)  | 
| 67 | 8 | Patrice Nadeau | |
| 68 | Voir #22  | 
||
| 69 | |||
| 70 | 13 | Patrice Nadeau | h4. GUI(Graphical User interface)  | 
| 71 | 12 | Patrice Nadeau | |
| 72 | 1 | Patrice Nadeau | Via le module _NFS client_ de YaST (*yast nfs*)  |