1. 程式人生 > >nfs 客戶端啟動報錯rpc.mountd: svc_tli_create: could not open connection for tcp6

nfs 客戶端啟動報錯rpc.mountd: svc_tli_create: could not open connection for tcp6

toa code sem lds family 根據 libs ots sta

# /etc/init.d/nfs start
Starting NFS services:                                     [  OK  ]
Starting NFS mountd: rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection 
for tcp6 rpc.mountd: svc_tli_create: could not open connection for udp6 rpc.mountd: svc_tli_create: could not open connection for tcp6 [FAILED] Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused) rpc.nfsd: address family inet6 not supported by protocol TCP rpc.nfsd: unable to
set any sockets for nfsd [FAILED]

根據啟動提示可以獲知,inet6地址族不被支持,原因是當前主機沒有加載ipv6的模塊,可以重新加載一遍ipv6模塊解決這個問題。

由於我的系統不需要ipv6的支持,所以還可以通過下面的操作,取消NFS的ipv6調用。

# cat /etc/netconfig 
#
# The network configuration file. This file is currently only used in
# conjunction with the TI-RPC code in the libtirpc library.
#
# Entries consist of:
#
#       <network_id> <semantics> <flags> <protofamily> <protoname> #               <device> <nametoaddr_libs>
#
# The <device> and <nametoaddr_libs> fields are always empty in this
# implementation.
#
udp        tpi_clts      v     inet     udp     -       -
tcp        tpi_cots_ord  v     inet     tcp     -       -
udp6       tpi_clts      v     inet6    udp     -       -
tcp6       tpi_cots_ord  v     inet6    tcp     -       -
rawip      tpi_raw       -     inet      -      -       -
local      tpi_cots_ord  -     loopback  -      -       -
unix       tpi_cots_ord  -     loopback  -      -       -
註掉:udp6,tcp6後重啟nfs

還是報錯:

# /etc/init.d/nfs start
Starting NFS services:                                     [  OK  ]
Starting NFS mountd:                                       [FAILED]
Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
rpc.nfsd: unable to set any sockets for nfsd
                                                           [FAILED]

還沒啟動rpcbin

# /etc/init.d/rpc
rpcbind     rpcgssd     rpcidmapd   rpcsvcgssd  
[[email protected] /]# /etc/init.d/rpcbind start
Starting rpcbind:                                          [  OK  ]
# /etc/init.d/nfs start
Starting NFS services:                                     [  OK  ]
Starting NFS mountd:                                       [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting RPC idmapd:                                       [  OK  ]

nfs 客戶端啟動報錯rpc.mountd: svc_tli_create: could not open connection for tcp6