DEBUG.WIKI
IPPeak:从目标地区访问网页,住宅代理、SEO 监测、广告验证
阿里云;从建站到云上业务;云服务器 · 数据库 · 对象存储;查看产品 →
搬瓦工;先看线路,再选 VPS;CN2 GIA · 对应线路套餐;查看线路 →

解决 GlusterFS 报错 Transport endpoint is not connected

分析 GlusterFS 客户端访问挂载点报 Transport endpoint is not connected 的网络中断与守护进程崩溃修复步骤。

问题现象

在 Linux 客户端执行 ls /mnt/gluster-volume 或访问文件时系统抛出错误:

ls: cannot open directory '/mnt/gluster-volume': Transport endpoint is not connected

进程被阻塞或 I/O 报错退出。

触发根因

  1. 负责该挂载点的后台 glusterfs 客户端进程(FUSE mount 进程)由于内存不足崩溃退出或被意外杀死。
  2. GlusterFS 服务端节点集群发生网络隔离,导致客户端连接全部超时断开。

解决步骤与操作命令

步骤一:检查客户端挂载进程状态

在客户端执行检查:

ps aux | grep glusterfs

若发现对应挂载目录无存活的 glusterfs 进程,说明 FUSE 挂载点已经僵死。

步骤二:懒卸载(Lazy Unmount)清理坏死挂载点

直接使用普通 umount 可能会提示 target is busy,使用懒卸载参数解开绑定:

sudo umount -l /mnt/gluster-volume

步骤三:检查服务端 Brick 状态并重新挂载

登录 GlusterFS 服务端节点验证卷健康状态:

gluster volume status <volname>

确认所有 Brick 的状态均为 Online。

随后在客户端重新执行挂载:

sudo mount -t glusterfs storage-node1:/<volname> /mnt/gluster-volume

验证确认

验证目录读写与挂载有效性:

df -h /mnt/gluster-volume
touch /mnt/gluster-volume/health_check.tmp && rm /mnt/gluster-volume/health_check.tmp

读写测试通过,不再报 Transport endpoint 错误。