linux - lstat() blocks for 15 minutes -
my linux (fedora) machine becomes unresponsive 15 minutes when open/save file. investigated , it's related windows mounted directory in /mnt. can reproduce simple 'ls -al /mnt'. subsequent ls commands return quickly. after period of time same problem shows , i'm forced take 15 minute break...
strace , ltrace both point lstat():
# strace 13:37:22 lstat("/mnt/todo-dino", 0x211ce40) = -1 ehostdown (host down) 13:52:24 open("/usr/share/locale/en_us.utf-8/lc_messages/coreutils.mo", o_rdonly) = -1 enoent (no such file or directory) # ltrace 13:37:22 __lxstat(1, "/mnt/todo-dino", 0x01e1ee40) = -1 13:52:24 dcgettext(0, 0x4120ce, 5, 0, 0x1e24850) mnt$ ls -al ls: cannot access todo-dino: host down total 40 d????????? ? ? ? ? ? todo-dino
the windows machine mount in above /mnt/todo-dino not down reported. in down, 15 mins quite long wait...
after 15 minute period directory shows expected:
mnt$ ls -al drwxrwxrwx 2 root root 12288 feb 4 12:36 todo-dino
fstab has:
//192.168.1.1/todo /mnt/todo-dino cifs username=xxx,password=xxx,file_mode=0777,dir_mode=0777,auto,users 0 0
any idea how cure issue? magic 15 minute delay?
thanks.
i didn't bottom of issue @ least there's simple cure. similar suggested on similar thread, cron-ed listing of /mnt every 5 mins. may cares? no forced 15 minutes breaks when using machine!
* * * * /bin/ls -al /mnt > /dev/null 2>&1 5 * * * * /bin/ls -al /mnt > /dev/null 2>&1 ...
Comments
Post a Comment