GlusterFs 启动报错,调试方法和处理

吐槽: 很久没写博文了,此次是忍不住了。。yum装个glusterfs,测个东西。
可是启动一直报错,搜了下网上的方法,一股脑全是更换文件目录的。懒得吐槽了centos

背景描述:

  • 系统 centos7.2
  • glusterfs: yum

问题描述

简单来讲,报错就是systemctl的报错,而后在systemd上配置DEBUG是不出现内容的,也尝试进行各个目录权限的修改等等,都无效。
报错:socket

● glusterd.service - GlusterFS, a clustered file-system server
   Loaded: loaded (/usr/lib/systemd/system/glusterd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since 三 2021-01-20 17:32:14 CST; 6s ago
     Docs: man:glusterd(8)
  Process: 11625 ExecStart=/usr/sbin/glusterd -p /var/run/glusterd.pid --log-level $LOG_LEVEL $GLUSTERD_OPTIONS (code=exited, status=1/FAILURE)

1月 20 17:32:14 host-172-18-21-102 systemd[1]: Starting GlusterFS, a clustered file-system server...
1月 20 17:32:14 host-172-18-21-102 systemd[1]: glusterd.service: control process exited, code=exited status=1
1月 20 17:32:14 host-172-18-21-102 systemd[1]: Failed to start GlusterFS, a clustered file-system server.
1月 20 17:32:14 host-172-18-21-102 systemd[1]: Unit glusterd.service entered failed state.
1月 20 17:32:14 host-172-18-21-102 systemd[1]: glusterd.service failed.

处理方法

*   首先从/usr/lib/systemd/system/glusterd.service中获取启动的命令: /usr/sbin/glusterd -p /var/run/glusterd.pid  --log-level ......
*   手动执行上述命令,发现无返回,echo $?为1,异常退出;
*   而后 /usr/sbin/glusterd --help获取添加日志路径;
*   得出命令: /usr/sbin/glusterd -f /etc/glusterfs/glusterd.vol  -p /var/run/glusterd.pid --log-level DEBUG --log-file /var/log/gluster.log
*   执行后发现DEBUG信息

DEBUG信息

[2021-01-20 09:21:54.530026] I [glusterfsd.c:2594:daemonize] 0-glusterfs: Pid of current running process is 2642
[2021-01-20 09:21:54.530087] D [logging.c:1718:__gf_log_inject_timer_event] 0-logging-infra: Starting timer now. Timeout = 120, current buf size = 5
[2021-01-20 09:21:54.530870] D [MSGID: 0] [glusterfsd.c:810:get_volfp] 0-glusterfsd: loading volume file /etc/glusterfs/glusterd.vol
[2021-01-20 09:21:54.532893] I [MSGID: 106478] [glusterd.c:1426:init] 0-management: Maximum allowed open file descriptors set to 65536
[2021-01-20 09:21:54.532938] I [MSGID: 106479] [glusterd.c:1482:init] 0-management: Using /var/lib/glusterd as working directory
[2021-01-20 09:21:54.532954] I [MSGID: 106479] [glusterd.c:1488:init] 0-management: Using /var/run/gluster as pid file working directory
[2021-01-20 09:21:54.533039] D [MSGID: 0] [glusterd.c:458:glusterd_rpcsvc_options_build] 0-glusterd: listen-backlog value: 1024
[2021-01-20 09:21:54.533106] D [rpcsvc.c:2827:rpcsvc_init] 0-rpc-service: RPC service inited.
[2021-01-20 09:21:54.533395] D [rpcsvc.c:2338:rpcsvc_program_register] 0-rpc-service: New program registered: GF-DUMP, Num: 123451501, Ver: 1, Port: 0
[2021-01-20 09:21:54.533450] D [rpc-transport.c:296:rpc_transport_load] 0-rpc-transport: attempt to load file /usr/lib64/glusterfs/7.9/rpc-transport/socket.so
[2021-01-20 09:21:54.537170] E [rpc-transport.c:300:rpc_transport_load] 0-rpc-transport: /usr/lib64/glusterfs/7.9/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-01-20 09:21:54.537194] W [rpc-transport.c:304:rpc_transport_load] 0-rpc-transport: volume 'socket.management': transport-type 'socket' is not valid or not found on this machine
[2021-01-20 09:21:54.537209] W [rpcsvc.c:1981:rpcsvc_create_listener] 0-rpc-service: cannot create listener, initing the transport failed
[2021-01-20 09:21:54.537220] E [MSGID: 106244] [glusterd.c:1774:init] 0-management: creation of listener failed
[2021-01-20 09:21:54.537236] E [MSGID: 101019] [xlator.c:629:xlator_init] 0-management: Initialization of volume 'management' failed, review your volfile again
[2021-01-20 09:21:54.537249] E [MSGID: 101066] [graph.c:425:glusterfs_graph_init] 0-management: initializing translator failed
[2021-01-20 09:21:54.537261] E [MSGID: 101176] [graph.c:779:glusterfs_graph_activate] 0-graph: init failed
[2021-01-20 09:21:54.537344] D [logging.c:1690:gf_log_flush_extra_msgs] 0-logging-infra: Log buffer size reduced. About to flush 5 extra log messages
[2021-01-20 09:21:54.537377] D [logging.c:1693:gf_log_flush_extra_msgs] 0-logging-infra: Just flushed 5 extra log messages
[2021-01-20 09:21:54.537644] W [glusterfsd.c:1596:cleanup_and_exit] (-->/usr/sbin/glusterd(glusterfs_volumes_init+0xfd) [0x7f54107bf19d] -->/usr/sbin/glusterd(glusterfs_process_volfp+0x21d) [0x7f54107bf08d] -->/usr/sbin/glusterd(cleanup_and_exit+0x6b) [0x7f54107be48b] ) 0-: received signum (-1), shutting down

从信息中发现“E [rpc-transport.c:300:rpc_transport_load] 0-rpc-transport: /usr/lib64/glusterfs/7.9/rpc-transport/socket.so: symbol SSL_CTX_get0_param, version libssl.so.10 not defined in file libssl.so.10 with link time reference”
猜了下可能和ssl有关,为了图省事,直接yum -y install openssl-develide

启动成功
相关文章
相关标签/搜索