tech:draft-nfsv4-sous-debian
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:draft-nfsv4-sous-debian [2025/10/03 01:17] – Jean-Baptiste | tech:draft-nfsv4-sous-debian [2026/01/12 15:32] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 14: | Ligne 14: | ||
| * http:// | * http:// | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| Ligne 31: | Ligne 32: | ||
| En NFSv4 contrairement aux versions précédentes seul le port TCP 2049 suffit | En NFSv4 contrairement aux versions précédentes seul le port TCP 2049 suffit | ||
| + | |||
| == Sur le serveur | == Sur le serveur | ||
| Ligne 56: | Ligne 58: | ||
| </ | </ | ||
| - | <code ini / | + | '' |
| + | <code ini> | ||
| NEED_STATD=no | NEED_STATD=no | ||
| STATDOPTS= | STATDOPTS= | ||
| Ligne 65: | Ligne 68: | ||
| </ | </ | ||
| - | <code ini / | + | '' |
| + | <code ini> | ||
| # / | # / | ||
| # man rpc.mountd | # man rpc.mountd | ||
| Ligne 73: | Ligne 77: | ||
| - | <code - / | + | '' |
| + | <code -> | ||
| # Example for NFSv4: | # Example for NFSv4: | ||
| # / | # / | ||
| # / | # / | ||
| # | # | ||
| - | / | + | / |
| / | / | ||
| </ | </ | ||
| Ligne 99: | Ligne 104: | ||
| Notes : pour une base de donnée Postgres sur le serveur il faut absolument mettre l' | Notes : pour une base de donnée Postgres sur le serveur il faut absolument mettre l' | ||
| + | |||
| + | |||
| + | The only firm requirement for using NFS with PostgreSQL is that the file system is mounted using the hard option. With the hard option, processes can “hang” indefinitely if there are network problems, so this configuration will require a careful monitoring setup. The soft option will interrupt system calls in case of network problems, but PostgreSQL will not repeat system calls interrupted in this way, so any such interruption will result in an I/O error being reported. | ||
| + | |||
| + | It is not necessary to use the sync mount option. The behavior of the async option is sufficient, since PostgreSQL issues fsync calls at appropriate times to flush the write caches. (This is analogous to how it works on a local file system.) However, it is strongly recommended to use the sync export option on the NFS server on systems where it exists (mainly Linux). Otherwise, an fsync or equivalent on the NFS client is not actually guaranteed to reach permanent storage on the server, which could cause corruption similar to running with the parameter fsync off. The defaults of these mount and export options differ between vendors and versions, so it is recommended to check and perhaps specify them explicitly in any case to avoid any ambiguity. | ||
| + | |||
| + | Source: https:// | ||
| Ligne 122: | Ligne 134: | ||
| </ | </ | ||
| - | <code ini / | + | '' |
| + | <code ini> | ||
| NEED_STATD=no | NEED_STATD=no | ||
| STATDOPTS= | STATDOPTS= | ||
| Ligne 130: | Ligne 143: | ||
| </ | </ | ||
| - | <code - / | + | '' |
| + | <code -> | ||
| 192.168.1.10:/ | 192.168.1.10:/ | ||
| </ | </ | ||
| Ligne 162: | Ligne 176: | ||
| Voir / | Voir / | ||
| + | |||
| + | |||
| + | === Disable rpcbind on NFS server (RedHat) | ||
| + | |||
| + | Source : https:// | ||
| + | |||
| + | <code bash> | ||
| + | systemctl mask --now rpc-statd.service rpcbind.service rpcbind.socket | ||
| + | systemctl restart nfs-server | ||
| + | </ | ||
| + | |||
| === Obtenir des info sur le montage / quelle version de NFS | === Obtenir des info sur le montage / quelle version de NFS | ||
| Ligne 168: | Ligne 193: | ||
| nfsstat -m | nfsstat -m | ||
| </ | </ | ||
| + | |||
| === Client Autofs | === Client Autofs | ||
| - | <code - / | + | '' |
| + | <code -> | ||
| / | / | ||
| </ | </ | ||
| - | <code - / | + | '' |
| + | <code -> | ||
| partage | partage | ||
| </ | </ | ||
| + | |||
| === Démonter une partition NFS en erreur | === Démonter une partition NFS en erreur | ||
| Ligne 184: | Ligne 213: | ||
| umount -lf /mnt/nfs | umount -lf /mnt/nfs | ||
| </ | </ | ||
| + | |||
| === Liste des partages | === Liste des partages | ||
| Ligne 238: | Ligne 268: | ||
| </ | </ | ||
| + | |||
| + | == Err nfs-server.service is masked (RedHat) | ||
| + | |||
| + | <code -> | ||
| + | # systemctl enable --now nfs-server.service | ||
| + | Failed to enable unit: Unit file / | ||
| + | # ls -l / | ||
| + | lrwxrwxrwx. 1 root root 9 Apr 24 2024 / | ||
| + | # rm / | ||
| + | rm: remove symbolic link '/ | ||
| + | # systemctl enable --now nfs-server.service | ||
| + | Created symlink / | ||
| + | Job for nfs-server.service canceled. | ||
| + | </ | ||
tech/draft-nfsv4-sous-debian.1759447069.txt.gz · Dernière modification : de Jean-Baptiste
