GlusterFs 启动报错

1、报错信息

  启动glusterfs文件系统报错,根据网上的排错,基本都是删除glusterfs的数据目录,然并卵。
报错如下:

[root@k8s-node2 ~]# systemctl status glusterd.service
● glusterd.service - GlusterFS, a clustered file-system server
   Loaded: loaded (/usr/lib/systemd/system/glusterd.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2021-05-15 15:39:08 CST; 4s ago
     Docs: man:glusterd(8)
  Process: 3059 ExecStart=/usr/sbin/glusterd -p /var/run/glusterd.pid --log-level $LOG_LEVEL $GLUSTERD_OPTIONS (code=exited, status=1/FAILURE)

May 15 15:39:08 k8s-node2 systemd[1]: Starting GlusterFS, a clustered file-system server...
May 15 15:39:08 k8s-node2 systemd[1]: glusterd.service: control process exited, code=exited status=1
May 15 15:39:08 k8s-node2 systemd[1]: Failed to start GlusterFS, a clustered file-system server.
May 15 15:39:08 k8s-node2 systemd[1]: Unit glusterd.service entered failed state.
May 15 15:39:08 k8s-node2 systemd[1]: glusterd.service failed.

   测试集群配置两个节点,其中一个使用的是centos7.9版本的,启动成功,但是使用centos7.2的就启动失败。删除软件重新安装也不好使。

2、排查与调试

  使用debug调试

# /usr/sbin/glusterd -f /etc/glusterfs/glusterd.vol  -p /var/run/glusterd.pid --log-level DEBUG --log-file /var/log/gluster.log

通过从日志当中检索到如下异常:

[2021-05-15 07:44:35.585021 +0000] E [rpc-transport.c:282:rpc_transport_load] 0-rpc-transport: /usr/lib64/glusterfs/9.1/rpc-transport/socket.so: symbol SSL_CTX_get0_param, version libssl.so.10 not defined in file libssl.so.10 with link time reference
[2021-05-15 07:44:35.585030 +0000] W [rpc-transport.c:286:rpc_transport_load] 0-rpc-transport: volume 'socket.management': transport-type 'socket' is not valid or not found on this machine
[2021-05-15 07:44:35.585033 +0000] W [rpcsvc.c:1987:rpcsvc_create_listener] 0-rpc-service: cannot create listener, initing the transport failed
[2021-05-15 07:44:35.585037 +0000] E [MSGID: 106244] [glusterd.c:1842:init] 0-management: creation of listener failed
[2021-05-15 07:44:35.585044 +0000] E [MSGID: 101019] [xlator.c:643:xlator_init] 0-management: Initialization of volume failed. review your volfile again. [{name=management}]
[2021-05-15 07:44:35.585048 +0000] E [MSGID: 101066] [graph.c:425:glusterfs_graph_init] 0-management: initializing translator failed
[2021-05-15 07:44:35.585054 +0000] E [MSGID: 101176] [graph.c:777:glusterfs_graph_activate] 0-graph: init failed

3、解决

# yum -y install openssl-devel

借鉴:

https://blog.51cto.com/407711169/2599194

posted @ 2021-05-15 15:52  北漂-boy  阅读(1025)  评论(0编辑  收藏  举报