rpc.nfsd が "unable to resolve ANYADDR:nfs: Servname not supported for ai_socktype" と "unable to set any sockets for nfsd" エラーで失敗する
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.