Translated message

A translation of this page exists in English.

rpc.nfsd が "unable to resolve ANYADDR:nfs: Servname not supported for ai_socktype" と "unable to set any sockets for nfsd" エラーで失敗する

Solution In Progress - Updated -

Issue

  • nfs-server を起動すると失敗します。
  • nfs-server を起動できません。
  • nfs-server.service のサービスステータスには、rpc.nfsd の起動に失敗していることが示されています。
  • システムログとサービスステータスには、rpc.nfsd の次のエラーが表示されます。

    * nfs-server.service - NFS server and services
    Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Wed 2024-06-12 14:06:10 UTC; 16min ago
    Process: 12115 ExecStopPost=/usr/sbin/exportfs -f (code=exited, status=0/SUCCESS)
    Process: 12114 ExecStopPost=/usr/sbin/exportfs -au (code=exited, status=0/SUCCESS)
    Process: 12112 ExecStart=/usr/sbin/rpc.nfsd (code=exited, status=1/FAILURE)                                  <---
    Process: 12110 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
    Main PID: 12112 (code=exited, status=1/FAILURE)
    
    <Month> <Day> <Time> <hostname> systemd[1]: Starting NFS server and services...
    <Month> <Day> <Time> <hostname> rpc.nfsd[12112]: rpc.nfsd: unable to resolve ANYADDR:nfs: Servname not supported for ai_socktype
    <Month> <Day> <Time> <hostname> rpc.nfsd[12112]: rpc.nfsd: unable to set any sockets for nfsd                                                            
    <Month> <Day> <Time> <hostname> systemd[1]: nfs-server.service: Main process exited, code=exited, status=1/FAILURE
    <Month> <Day> <Time> <hostname> systemd[1]: nfs-server.service: Failed with result 'exit-code'.
    <Month> <Day> <Time> <hostname> systemd[1]: Stopped NFS server and services.
    

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • nfs-server.service
  • rpc.nfsd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content