Projet

Général

Profil

Tâche #27877

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

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

Ajouté par Emmanuel GARETTE il y a environ 5 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Début:
11/04/2019
Echéance:
% réalisé:

100%

Restant à faire (heures):
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.


Demandes liées

Dupliqué par eole-nfs - Proposition Scénario #23813: diagnose en erreur Fermé

Révisions associées

Révision 5ceb4120 (diff)
Ajouté par Joël Cuissinat il y a environ 4 ans

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

Ref: #27877

Révision e2d26b8a (diff)
Ajouté par Joël Cuissinat il y a environ 4 ans

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

Ref: #27877

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

Révision 3a48b5b6 (diff)
Ajouté par Joël Cuissinat il y a environ 4 ans

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

Ref: #27877

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

Révision d92fcfa8 (diff)
Ajouté par Joël Cuissinat il y a environ 4 ans

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

Ref: #27877

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

Révision eb19d388 (diff)
Ajouté par Joël Cuissinat il y a environ 4 ans

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

Ref: #27877

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

Historique

#1 Mis à jour par Laurent Flori il y a environ 5 ans

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 Mis à jour par Joël Cuissinat il y a environ 4 ans

  • Tâche parente mis à #29652

#3 Mis à jour par Joël Cuissinat il y a environ 4 ans

  • Statut changé de Nouveau à En cours

#4 Mis à jour par Joël Cuissinat il y a environ 4 ans

  • Assigné à mis à Joël Cuissinat

#5 Mis à jour par Joël Cuissinat il y a environ 4 ans

Prêt pour EOLE >= 2.6.2

#6 Mis à jour par Joël Cuissinat il y a environ 4 ans

  • Statut changé de En cours à Résolu
  • % réalisé changé de 0 à 100

#7 Mis à jour par Daniel Dehennin il y a environ 4 ans

  • 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 Mis à jour par Daniel Dehennin il y a environ 4 ans

  • Statut changé de Résolu à Fermé
  • Restant à faire (heures) mis à 0.0

#9 Mis à jour par Joël Cuissinat il y a plus de 2 ans

Formats disponibles : Atom PDF