Contenu | Rechercher | Menus

Annonce

L'équipe des administrateurs et modérateurs du forum vous invite à prendre connaissance des nouvelles règles.
En cas de besoin, vous pouvez intervenir dans cette discussion.

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 16/10/2018, à 16:34

webangel

Mise à jour NAS 16.04 LTS vers 18.04 LTS problèmes NFS

Bonjour,

J'ai deux serveurs NAS l'un sous ubuntu 16.04 LTS (srvnas2t) le partage NFS fonctionne parfaitement, et l'autre NAS sous ubuntu 18.04 LTS
(srvnas3t) dont le partage n'est pas accessible depuis mon ODROID-C2 sous Libreelec.
Avant la mise à jour de srvnas3t le partage via NFS fonctionnait à merveille en 16.04 LTS.
Du coup j'ai chercher d'ou pouvait provenir ce dysfonctionnement:

jeff@SRVNAS3T:/etc$ sudo service nfs-kernel-server status
● nfs-server.service - NFS server and services
   Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
   Active: active (exited) since Tue 2018-10-16 15:43:19 CEST; 1h 27min ago
  Process: 8439 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
  Process: 8438 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
  Process: 8437 ExecStop=/usr/sbin/rpc.nfsd 0 (code=exited, status=0/SUCCESS)
  Process: 8405 ExecReload=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
  Process: 8470 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
  Process: 8469 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
 Main PID: 8470 (code=exited, status=0/SUCCESS)
 

Jusque là pas de soucis

 jeff@SRVNAS3T:/etc$ journalctl -b | grep nfs
oct. 15 23:03:43 SRVNAS3T kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
oct. 15 23:03:40 SRVNAS3T blkmapd[369]: open pipe file /run/rpc_pipefs/nfs/blocklayout failed: No such file or directory
oct. 15 23:04:07 SRVNAS3T exportfs[1226]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 15 23:04:07 SRVNAS3T exportfs[1226]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 15 23:04:07 SRVNAS3T exportfs[1226]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 15 23:04:07 SRVNAS3T exportfs[1226]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 15 23:04:07 SRVNAS3T exportfs[1226]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 15 23:04:07 SRVNAS3T exportfs[1226]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 15 23:04:07 SRVNAS3T nfsdcltrack[1246]: Failed to init database: -13
oct. 15 23:04:08 SRVNAS3T kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
oct. 15 23:36:25 SRVNAS3T sudo[4537]:     jeff : TTY=pts/0 ; PWD=/NAS/video ; USER=root ; COMMAND=/usr/sbin/service nfs-restart
oct. 15 23:36:42 SRVNAS3T sudo[4549]:     jeff : TTY=pts/0 ; PWD=/NAS/video ; USER=root ; COMMAND=/usr/sbin/service nfs-common
oct. 15 23:37:10 SRVNAS3T sudo[5209]:     jeff : TTY=pts/0 ; PWD=/NAS/video ; USER=root ; COMMAND=/usr/sbin/service nfs-common restart
oct. 15 23:37:23 SRVNAS3T sudo[5215]:     jeff : TTY=pts/0 ; PWD=/NAS/video ; USER=root ; COMMAND=/usr/sbin/service nfs-common start
oct. 15 23:37:45 SRVNAS3T sudo[5895]:     jeff : TTY=pts/0 ; PWD=/NAS/video ; USER=root ; COMMAND=/usr/sbin/service --status nfs
oct. 16 00:12:03 SRVNAS3T sudo[6776]:     jeff : TTY=pts/0 ; PWD=/NAS/video ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server status
oct. 16 00:29:05 SRVNAS3T sudo[6805]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/journalctl -b --grep=nfs
oct. 16 00:31:21 SRVNAS3T sudo[6808]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server status
oct. 16 00:33:36 SRVNAS3T sudo[6818]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server status
oct. 16 00:34:00 SRVNAS3T sudo[6825]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server restart
oct. 16 00:34:00 SRVNAS3T exportfs[6834]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 00:34:00 SRVNAS3T exportfs[6834]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 00:34:00 SRVNAS3T exportfs[6834]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 00:34:00 SRVNAS3T exportfs[6834]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 00:34:00 SRVNAS3T exportfs[6834]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 00:34:00 SRVNAS3T kernel: nfsd: last server has exited, flushing export cache
oct. 16 00:34:01 SRVNAS3T nfsdcltrack[6838]: Failed to init database: -13
oct. 16 00:34:01 SRVNAS3T kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
oct. 16 00:34:03 SRVNAS3T sudo[6847]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server status
oct. 16 00:42:40 SRVNAS3T sudo[6871]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/bin/apt-get install nfs-utils
oct. 16 00:43:27 SRVNAS3T sudo[6878]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server status
oct. 16 00:47:27 SRVNAS3T sudo[6918]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server restart
oct. 16 00:47:27 SRVNAS3T exportfs[6927]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 00:47:27 SRVNAS3T exportfs[6927]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 00:47:27 SRVNAS3T exportfs[6927]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 00:47:27 SRVNAS3T exportfs[6927]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 00:47:27 SRVNAS3T exportfs[6927]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 00:47:27 SRVNAS3T kernel: nfsd: last server has exited, flushing export cache
oct. 16 00:47:27 SRVNAS3T nfsdcltrack[6931]: Failed to init database: -13
oct. 16 00:47:27 SRVNAS3T kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
oct. 16 01:19:10 SRVNAS3T polkitd(authority=local)[1139]: Operator of unix-process:7076:812100 successfully authenticated as unix-user:jeff to gain ONE-SHOT authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.108 [/bin/systemctl --no-pager --job-mode=ignore-dependencies restart nfs-kernel-server.service] (owned by unix-user:jeff)
oct. 16 01:19:10 SRVNAS3T exportfs[7089]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 01:19:10 SRVNAS3T exportfs[7089]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 01:19:10 SRVNAS3T exportfs[7089]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 01:19:10 SRVNAS3T exportfs[7089]:   NOTE: this default has changed since nfs-utils version 1.0.x
oct. 16 01:19:10 SRVNAS3T kernel: nfsd: last server has exited, flushing export cache
oct. 16 01:19:10 SRVNAS3T nfsdcltrack[7093]: Failed to init database: -13
oct. 16 01:19:10 SRVNAS3T kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
oct. 16 01:22:08 SRVNAS3T polkitd(authority=local)[1139]: Operator of unix-process:7174:831222 successfully authenticated as unix-user:jeff to gain ONE-SHOT authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.123 [/bin/systemctl --no-pager --job-mode=ignore-dependencies restart nfs-kernel-server.service] (owned by unix-user:jeff)
oct. 16 01:22:08 SRVNAS3T kernel: nfsd: last server has exited, flushing export cache
oct. 16 01:22:08 SRVNAS3T nfsdcltrack[7189]: Failed to init database: -13
oct. 16 01:22:08 SRVNAS3T kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
oct. 16 14:04:21 SRVNAS3T sudo[8103]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/journalctl -b --grep=nfsjournalctl -b --grep=nfs
oct. 16 14:04:46 SRVNAS3T sudo[8107]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/journalctl -b --grep=nfs
oct. 16 14:05:12 SRVNAS3T sudo[8110]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/journalctl --grep=nfs
oct. 16 14:05:16 SRVNAS3T sudo[8112]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/bin/journalctl -b --grep=nfs
oct. 16 14:27:14 SRVNAS3T sudo[8155]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-server restart
oct. 16 14:27:14 SRVNAS3T kernel: nfsd: last server has exited, flushing export cache
oct. 16 14:27:14 SRVNAS3T nfsdcltrack[8168]: Failed to init database: -13
oct. 16 14:27:14 SRVNAS3T kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
oct. 16 15:42:10 SRVNAS3T polkitd(authority=local)[1139]: Operator of unix-process:8372:5990829 successfully authenticated as unix-user:jeff to gain ONE-SHOT authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.146 [systemctl --job-mode=ignore-dependencies reload nfs-kernel-server.service] (owned by unix-user:jeff)
oct. 16 15:42:21 SRVNAS3T polkitd(authority=local)[1139]: Operator of unix-process:8387:5992699 FAILED to authenticate to gain authorization for action org.freedesktop.systemd1.manage-units for system-bus-name::1.152 [systemctl --job-mode=ignore-dependencies reload nfs-kernel-server.service] (owned by unix-user:jeff)
oct. 16 15:42:35 SRVNAS3T sudo[8398]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server reload
oct. 16 15:43:12 SRVNAS3T sudo[8408]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server stop
oct. 16 15:43:13 SRVNAS3T kernel: nfsd: last server has exited, flushing export cache
oct. 16 15:43:18 SRVNAS3T sudo[8440]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server start
oct. 16 15:43:19 SRVNAS3T nfsdcltrack[8472]: Failed to init database: -13
oct. 16 15:43:19 SRVNAS3T kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
oct. 16 15:44:49 SRVNAS3T sudo[8488]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server status
oct. 16 15:52:25 SRVNAS3T nfsdcltrack[8501]: Missing command name
oct. 16 15:52:29 SRVNAS3T sudo[8502]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server status
oct. 16 15:53:51 SRVNAS3T nfsdcltrack[8510]: Unable to prune capability 0 from bounding set: Operation not permitted
oct. 16 16:29:24 SRVNAS3T sudo[8557]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server status
oct. 16 17:10:57 SRVNAS3T sudo[8604]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server status
oct. 16 17:11:10 SRVNAS3T sudo[8610]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server status

Dans le journal je vois l'erreur suivante:

 oct. 16 15:43:18 SRVNAS3T sudo[8440]:     jeff : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/sbin/service nfs-kernel-server start
oct. 16 15:43:19 SRVNAS3T nfsdcltrack[8472]: Failed to init database: -13

je suis aller à la pèche aux informations et j'ai trouver ceci:
http://manpages.ubuntu.com/manpages/bio … ack.8.html
Comment puis-je faire pour corriger cette dernière erreur?
Sinon si cela n'est pas possible comment faire pour revenir en version NFSv3 à la place de NFSv4 sur le NAS?
merci d'avance pour vos éclaircissements smile
@++

Dernière modification par webangel (Le 16/10/2018, à 16:49)

Hors ligne

#2 Le 18/10/2018, à 09:58

Amine2019

Re : Mise à jour NAS 16.04 LTS vers 18.04 LTS problèmes NFS

Bonjour à tous
Récemment j'ai acheter un un NAS QNAP ts-451+ et je voulais créer un hébergeur  des sites  quelles sont les étapes pour y arriver merci de votre aide.
@+++

Hors ligne