GlusterFs 啓動報錯,調試方法和處理

吐槽: 好久沒寫博文了,這次是忍不住了。。yum裝個glusterfs,測個東西。
但是啓動一直報錯,搜了下網上的方法,一股腦全是更換文件目錄的。懶得吐槽了

背景描述:

  • 系統 centos7.2
  • glusterfs: yum

問題描述

簡單來說,報錯就是systemctl的報錯,然後在systemd上配置DEBUG是不出現內容的,也嘗試進行各個目錄權限的修改等等,都無效。
報錯:

● 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-devel

啓動成功
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章