NFS » Historique » Version 18
Patrice Nadeau, 2018-04-15 14:54
| 1 | 18 | Patrice Nadeau | # 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 | 18 | Patrice Nadeau | ## Serveur |
| 12 | 1 | Patrice Nadeau | |
| 13 | 18 | Patrice Nadeau | ### Installation |
| 14 | 1 | Patrice Nadeau | |
| 15 | 2 | Patrice Nadeau | Les « packages » _libdaemon_ et _avahi_ doivent être présents. |
| 16 | |||
| 17 | 18 | Patrice Nadeau | ```bash |
| 18 | 17 | Patrice Nadeau | zypper install nfs-kernel-server yast2-nfs-server |
| 19 | 18 | Patrice Nadeau | ``` |
| 20 | 1 | Patrice Nadeau | |
| 21 | 18 | Patrice Nadeau | ### Démarrage |
| 22 | 1 | Patrice Nadeau | |
| 23 | 18 | Patrice Nadeau | ```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 | 18 | Patrice Nadeau | ``` |
| 29 | 1 | Patrice Nadeau | |
| 30 | 18 | Patrice Nadeau | ### Pare-feu |
| 31 | 1 | Patrice Nadeau | |
| 32 | 18 | Patrice Nadeau | ```bash |
| 33 | 1 | Patrice Nadeau | yast firewall services add service=service:nfs-kernel-server zone=EXT |
| 34 | 18 | Patrice Nadeau | ``` |
| 35 | 1 | Patrice Nadeau | |
| 36 | 18 | Patrice Nadeau | ### Configuration |
| 37 | 2 | Patrice Nadeau | |
| 38 | 18 | Patrice Nadeau | #### CLI(Command Line Interface) |
| 39 | 1 | Patrice Nadeau | |
| 40 | Le fichier _/etc/exports_ contient les noms des répertoires à rendre disponibles. |
||
| 41 | |||
| 42 | Les explications de configuration sont fournis par |
||
| 43 | 18 | Patrice Nadeau | |
| 44 | ```bash |
||
| 45 | 1 | Patrice Nadeau | man 5 exports |
| 46 | 18 | Patrice Nadeau | ``` |
| 47 | 1 | Patrice Nadeau | |
| 48 | 2 | Patrice Nadeau | Une fois modifié, relire le fichier avec |
| 49 | 18 | Patrice Nadeau | |
| 50 | ```bash |
||
| 51 | 2 | Patrice Nadeau | exportfs -a |
| 52 | 18 | Patrice Nadeau | ``` |
| 53 | 1 | Patrice Nadeau | |
| 54 | 18 | Patrice Nadeau | #### GUI(Graphical User interface) |
| 55 | 8 | Patrice Nadeau | |
| 56 | 1 | Patrice Nadeau | Via le module _nfs server_ de YaST (*yast nfs_server*) |
| 57 | 8 | Patrice Nadeau | |
| 58 | 18 | Patrice Nadeau | ## Client |
| 59 | 4 | Patrice Nadeau | |
| 60 | 18 | Patrice Nadeau | ### Installation |
| 61 | 1 | Patrice Nadeau | |
| 62 | 18 | Patrice Nadeau | ```bash |
| 63 | 1 | Patrice Nadeau | zypper install nfs-client |
| 64 | 18 | Patrice Nadeau | ``` |
| 65 | 1 | Patrice Nadeau | |
| 66 | 18 | Patrice Nadeau | ### Utilisation |
| 67 | 8 | Patrice Nadeau | |
| 68 | 18 | Patrice Nadeau | #### CLI(Command Line Interface) |
| 69 | 8 | Patrice Nadeau | |
| 70 | Voir #22 |
||
| 71 | |||
| 72 | 18 | Patrice Nadeau | #### GUI(Graphical User interface) |
| 73 | 12 | Patrice Nadeau | |
| 74 | 1 | Patrice Nadeau | Via le module _NFS client_ de YaST (*yast nfs*) |