[Gluster-users] Problems with gluster and autofs

Christopher Nelson cnelson at hp.com
Tue May 11 21:37:41 UTC 2010


There appears to be a race condition or a cycle with autofs and gluster 
3.0.4.

When gluster tries to stat the mount point in fuse-bridge.c, it hangs.  
When I comment out the code in lines: 3389-3415 it hangs on the call to 
mount() in fuse-lib/mount.c:538.

This is true whether or not --ghost is specified.

Has this problem been resolved?  Is there a patch somewhere?

--- gdb output after commenting out lines in fuse-bridge.c  ---

(gdb) attach 3785
Attaching to process 3785
Reading symbols from /usr/local/sbin/glusterfsd...done.
Reading symbols from /usr/local/lib/libglusterfs.so.0...done.
Loaded symbols for /usr/local/lib/libglusterfs.so.0
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libpthread.so.0...(no debugging symbols 
found)...done.
[Thread debugging using libthread_db enabled]
[New Thread 0x7f77668a1710 (LWP 3786)]
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from 
/usr/local/lib/glusterfs/3.0.4/xlator/protocol/client.so...done.
Loaded symbols for /usr/local/lib/glusterfs/3.0.4/xlator/protocol/client.so
Reading symbols from 
/usr/local/lib/glusterfs/3.0.4/xlator/performance/write-behind.so...done.
Loaded symbols for 
/usr/local/lib/glusterfs/3.0.4/xlator/performance/write-behind.so
Reading symbols from 
/usr/local/lib/glusterfs/3.0.4/xlator/performance/read-ahead.so...done.
Loaded symbols for 
/usr/local/lib/glusterfs/3.0.4/xlator/performance/read-ahead.so
Reading symbols from 
/usr/local/lib/glusterfs/3.0.4/xlator/performance/io-cache.so...done.
Loaded symbols for 
/usr/local/lib/glusterfs/3.0.4/xlator/performance/io-cache.so
Reading symbols from 
/usr/local/lib/glusterfs/3.0.4/xlator/performance/quick-read.so...done.
Loaded symbols for 
/usr/local/lib/glusterfs/3.0.4/xlator/performance/quick-read.so
Reading symbols from 
/usr/local/lib/glusterfs/3.0.4/xlator/performance/stat-prefetch.so...done.
Loaded symbols for 
/usr/local/lib/glusterfs/3.0.4/xlator/performance/stat-prefetch.so
Reading symbols from 
/usr/local/lib/glusterfs/3.0.4/xlator/mount/fuse.so...done.
Loaded symbols for /usr/local/lib/glusterfs/3.0.4/xlator/mount/fuse.so
0x00007f7768005e2a in mount () from /lib/libc.so.6
(gdb) bt
#0  0x00007f7768005e2a in mount () from /lib/libc.so.6
#1  0x00007f77668b2af4 in fuse_mount_sys (mountpoint=0x1020140 
"/mnt/lan/nas",
     fsname=0x101e260 "/etc/glusterfs/nas-client.vol",
     mnt_param=0x7f77668b3558 
"allow_other,default_permissions,max_read=131072")
     at ../../../../contrib/fuse-lib/mount.c:538
#2  gf_fuse_mount (mountpoint=0x1020140 "/mnt/lan/nas", fsname=0x101e260 
"/etc/glusterfs/nas-client.vol",
     mnt_param=0x7f77668b3558 
"allow_other,default_permissions,max_read=131072")
     at ../../../../contrib/fuse-lib/mount.c:597
#3  0x00007f77668a53e8 in init (this_xl=0x1027e20) at fuse-bridge.c:3462
#4  0x00007f77686d75db in xlator_init (xl=0x1027e20) at xlator.c:941
#5  0x00007f77686d7671 in xlator_init_rec (xl=0x1027e20) at xlator.c:834
#6  xlator_tree_init (xl=0x1027e20) at xlator.c:872
#7  0x000000000040384c in _xlator_graph_init (graph=0x1027e20, 
fuse=16908608) at glusterfsd.c:589
#8  glusterfs_graph_init (graph=0x1027e20, fuse=16908608) at 
glusterfsd.c:664
#9  0x00000000004044cf in main (argc=<value optimized out>, argv=<value 
optimized out>)
     at glusterfsd.c:1392
(gdb)







More information about the Gluster-users mailing list