在通过客户端,挂载GFS的卷时,提示如下错误:

[root@k8s-node1 /]# mount -t glusterfs k8s-master01:glusterfs_volume /data

Mount failed. Check the log file  for more details.

在客户端的日志中 /var/log/glusterfs/data.log,发现如下提示:

Glusterfs 0-fuse: first lookup on root failed (Transport endpoint is not connected)_客户端


逐意识到,在客户端的Host文件中,未有绑定GFS集群的信息,新增即可

Glusterfs 0-fuse: first lookup on root failed (Transport endpoint is not connected)_客户端_02


重新挂载:mount -t glusterfs k8s-master01:glusterfs_volume /data 即可