From: Johannes Martin <johannes.martin@it...> - 2011-02-14 08:30:19
I'm experiencing the following problem: If I mount a fuse based file
system (such as glusterfs or sshfs), then bind mount the original
mountpoint somewhere else, then unmount the bind mount using -f, the
fuse client terminates (without unmounting the original mount).
Here's a testcase:
* sshfs server:/path /mountpoint
* mount -o bind /mountpoint /othermountpoint
* umount -f /othermountpoint
* ls /mountpoint
--> ls: cannot access /mountpoint: Transport endpoint is not connected
Is there any way to fix this (other than not using -f).
The problem occurs when a fuse based filesystem is used within an OpenVZ
virtual machine/container (lxc will probably show the same problem).
When the virtual machine is shut down, it runs the regular init scripts.
That includes unmounting all file systems using umount -f.
So to make sure this problem doesn't happen, I would have to fix the
init scripts of all virtual machines and make sure nobody ever uses
umount -f on one of the bind mounts.
ITC Consult GmbH
Tel. 0611 69 66 91 16
Geschäftsführer: Heinz Koenen
HRB 20821, Amtsgericht Wiesbaden, Ust-IdNr. DE 34638180
Ein Unternehmen der DEURAG Deutsche Rechtsschutzversicherung AG