Glusterfs 排错

  1. 出现诸如rpc服务不可用导致glusterfs不可使用 报错的情况
Dec  9 10:36:32 node3 systemd: Cannot add dependency job for unit loopback_gluster.service, ignoring: Unit not found.
Dec  9 10:36:32 node3 systemd: rpcbind.socket failed to listen on sockets: Address family not supported by protocol
Dec  9 10:36:32 node3 systemd: Failed to listen on RPCbind Server Activation Socket.
Dec  9 10:36:32 node3 systemd: Dependency failed for RPC bind service.
Dec  9 10:36:32 node3 systemd: Dependency failed for GlusterFS, a clustered file-system server.
Dec  9 10:36:32 node3 systemd: Job glusterd.service/start failed with result 'dependency'.
Dec  9 10:36:32 node3 systemd: Job rpcbind.service/start failed with result 'dependency'.
Dec  9 10:38:01 node3 systemd: Cannot add dependency job for unit loopback_gluster.service, ignoring: Unit not found.
Dec  9 10:38:01 node3 systemd: rpcbind.socket failed to listen on sockets: Address family not supported by protocol
Dec  9 10:38:01 node3 systemd: Failed to listen on RPCbind Server Activation Socket.
Dec  9 10:38:01 node3 systemd: Dependency failed for RPC bind service.
Dec  9 10:38:01 node3 systemd: Job rpcbind.service/start failed with result 'dependency'.
解决方案
修改:vim   /etc/systemd/system/sockets.target.wants/rpcbind.socket
注释掉【Socket】字段中关于ipv6的相关支持:[Unit]
Description=RPCbind Server Activation Socket
[Socket] ListenStream=/var/run/rpcbind.sock
# RPC netconfig can't handle ipv6/ipv4 dual sockets
BindIPv6Only=ipv6-only
ListenStream=0.0.0.0:111
ListenDatagram=0.0.0.0:111
#ListenStream=[::]:111
#ListenDatagram=[::]:111

[Install] WantedBy=sockets.target


此条目发表在Glusterfs, Servuce分类目录,贴了, , 标签。将固定链接加入收藏夹。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注