Project

General

Profile

Tâche #27877

Scénario #29652: Traitement express MEN (10-12)

eole-nfs ne devrait pas faire d'erreur au diagnose

Added by Emmanuel GARETTE 12 months ago. Updated 22 days ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
04/11/2019
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

Lorsque je fais un diagnose sur un serveur ou eole-nfs est installé j'ai :

nfs-idmapd.service loaded failed

Si on regarde le status :

# systemctl status nfs-idmapd.service
● nfs-idmapd.service - NFSv4 ID-name mapping service
   Loaded: loaded (/lib/systemd/system/nfs-idmapd.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2019-04-09 16:05:21 CEST; 2 days ago
  Process: 31291 ExecStart=/usr/sbin/rpc.idmapd $RPCIDMAPDARGS (code=exited, status=1/FAILURE)

avril 09 16:05:21 mse-p-bdd-a1 systemd[1]: Starting NFSv4 ID-name mapping service...
avril 09 16:05:21 mse-p-bdd-a1 rpc.idmapd[31300]: main: open(/var/lib/nfs/rpc_pipefs/nfs): No such file or directory
avril 09 16:05:21 mse-p-bdd-a1 systemd[1]: nfs-idmapd.service: Control process exited, code=exited status=1
avril 09 16:05:21 mse-p-bdd-a1 systemd[1]: nfs-idmapd.service: Failed with result 'exit-code'.
avril 09 16:05:21 mse-p-bdd-a1 systemd[1]: Failed to start NFSv4 ID-name mapping service.

Si le service n'est pas nécessaire il faudrait désactiver le service et "reset-failed" le service.

Associated revisions

Revision 5ceb4120 (diff)
Added by Joël Cuissinat 29 days ago

Declare /var/lib/nfs/rpc_pipefs/nfs dir in package

Ref: #27877

Revision e2d26b8a (diff)
Added by Joël Cuissinat 29 days ago

Declare /var/lib/nfs/rpc_pipefs/nfs dir in package

Ref: #27877

Cherry-picked from eole-nfs:5ceb4120 for EOLE 2.7.0

Revision 3a48b5b6 (diff)
Added by Joël Cuissinat 29 days ago

Declare /var/lib/nfs/rpc_pipefs/nfs dir in package

Ref: #27877

Cherry-picked from eole-nfs:5ceb4120 for EOLE 2.7.1

Revision d92fcfa8 (diff)
Added by Joël Cuissinat 29 days ago

Declare /var/lib/nfs/rpc_pipefs/nfs dir in package

Ref: #27877

Cherry-picked from eole-nfs:5ceb4120 for EOLE 2.7.2

Revision eb19d388 (diff)
Added by Joël Cuissinat 29 days ago

Declare /var/lib/nfs/rpc_pipefs/nfs dir in package

Ref: #27877

Cherry-picked from eole-nfs:5ceb4120 for EOLE 2.8

History

#1 Updated by Laurent Flori 12 months ago

Le service ne démarre pas parce qu'il manque un répertoire:

mkdir -p /var/lib/nfs/rpc_pipefs/nfs

Dans la page de manuel de rpc.idmapd on trouve ça:
Note that on more recent kernels only the NFSv4 server uses . The NFSv4 client instead uses nfsidmap(8), and only falls back to rpc.idmapd if there was a problem running the nfsidmap(8) program. 

C'est donc surtout pour la compatibilité avec les anciens clients.

L'erreur se produit aussi en 2.6.2

Le service est a priori bien configuré dans le fichier /etc/idmapd.conf

Solution 1: Créer le répertoire
Solution 2: désactiver et "reset-failed" du service.

#2 Updated by Joël Cuissinat about 1 month ago

  • Parent task set to #29652

#3 Updated by Joël Cuissinat 29 days ago

  • Status changed from Nouveau to En cours

#4 Updated by Joël Cuissinat 29 days ago

  • Assigned To set to Joël Cuissinat

#5 Updated by Joël Cuissinat 29 days ago

Prêt pour EOLE >= 2.6.2

#6 Updated by Joël Cuissinat 29 days ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#7 Updated by Daniel Dehennin 22 days ago

  • Sur un Scribe 2.7.2, après #27752
    root@scribe:~# systemctl status nfs-idmapd.service
    ● nfs-idmapd.service - NFSv4 ID-name mapping service
       Loaded: loaded (/lib/systemd/system/nfs-idmapd.service; static; vendor preset: enabled)
       Active: active (running) since Wed 2020-03-11 10:43:41 CET; 55min ago
      Process: 14181 ExecStart=/usr/sbin/rpc.idmapd $RPCIDMAPDARGS (code=exited, status=0/SUCCESS)
     Main PID: 14192 (rpc.idmapd)
        Tasks: 1 (limit: 4915)
       CGroup: /system.slice/nfs-idmapd.service
               └─14192 /usr/sbin/rpc.idmapd
    
    mars 11 10:43:41 scribe systemd[1]: Starting NFSv4 ID-name mapping service...
    mars 11 10:43:41 scribe systemd[1]: Started NFSv4 ID-name mapping service.
    
  • Sur un aca.scribe-2.6.2-instance-default
    • installation du paquet eole-nfs
    • paramétrage CreoleSet adresses_ip_clients_nfs 192.168.230.30
    • reconfiguration du serveur
    • diagnose ⮕ pas d’erreur
      root@scribe:~# systemctl status nfs-idmapd.service
      ● nfs-idmapd.service - NFSv4 ID-name mapping service
         Loaded: loaded (/lib/systemd/system/nfs-idmapd.service; static; vendor preset: enabled)
         Active: active (running) since mer. 2020-03-11 11:46:56 CET; 2min 0s ago
        Process: 8774 ExecStart=/usr/sbin/rpc.idmapd $RPCIDMAPDARGS (code=exited, status=0/SUCCESS)
       Main PID: 8780 (rpc.idmapd)
         CGroup: /system.slice/nfs-idmapd.service
                 └─8780 /usr/sbin/rpc.idmapd
      
      mars 11 11:46:56 scribe systemd[1]: Starting NFSv4 ID-name mapping service...
      mars 11 11:46:56 scribe systemd[1]: Started NFSv4 ID-name mapping service.
      

#8 Updated by Daniel Dehennin 22 days ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Also available in: Atom PDF