3

I am using glusterfs on several Ubuntu servers: two of them are running glusterfs servers in replication mode.

Without any clear error, the glusterfs partition became stale and the system shows this error when I try to access the stale partition:

Transport endpoint is not connected

Also, when running ls -l on the parent folder I get:

d????????? ? ?      ?          ?                ? myfolder

I tried all types of commands that I can find to umount this partition, but I could not get it done:

umount -l /path/to/mount/point
umount -f /path/to/mount/point

Also, using fuser command to show processes accessing this folder did not work. Unload the fuse kernel module can not be done as it is clear from the kernel config that fuse is built into the kernel and not a loadable module. I found this line in /boot/config-2.6.32-24-server

CONFIG_FUSE_FS=y

I have been left with two options:

  1. Reboot the system.
  2. Create another mount point like myfolder2 and mount this again using sudo glusterfs -f /etc/glustefs/glusterfs.vol /path/to/folder2.

Of course, I have chosen to go with option 2.

Anyone faced such an issue before?

Anyone has a better solution for such a case?

Khaled
  • 36,533
  • 8
  • 72
  • 99

2 Answers2

2

Try stopping the glusterfs service, first on the second node, then on the first node. For Ubuntu, the command is:

sudo/etc/init.d/glusterfs stop

Alternatively, remove the glusterfs service from startup on both machines and reboot both. The partitions shouldn't mount on boot then, as glusterfs does this job.

2

This works to resolve the 'Transport endpoint is not connected' error with gluster

sudo umount /mnt
sudo fusermount -uz /mnt
sudo mount /mnt
Tanner
  • 143
  • 8
  • Some have suggested using `fusermount` but although GlusterFS is an example of a *F*ile*s*ystem in *user*space, `sudo fusermount -uz /mnt` is *not* neccessary at all. (`-u` for unmount and `-z` for lazy) You can try it, it won't hurt. But in my case, fusermount was not installed. Simply `sudu su -` to become root, then `umount mnt` – user2219975 Nov 10 '17 at 12:59
  • @user2219975 I most definitely tried that. If it were so simple, I would have put that as my answer. Not all situations are equal. – Tanner Nov 13 '17 at 16:06