Thread: CIFS Slow to access after boot, NFS times out
i configured cifs share , nfs share on ubuntu 10.04.3 server install follows in /etc/fstab:
at boot-time there errors listed these mounts (even though ips available), both end mounted time login shell.code:10.xxx.xxx.xxx:/mnt/storage/mynfs /mnt/mynfs nfs defaults 0 0 //10.xxx.xxx.xxx/mycifs /mnt/mycifs cifs defaults,username=myuser,password=mypass,uid=myuid,gid=mygid 0 0
after logging in, if try "ls /mnt/mycifs" blocks around 30 seconds before returning directory listing. subsequent reads mount fast , normal. strace of "ls /mnt/mycifs" follows (the line in bold gets stuck):code:fsck util-linux-ng 2.17.2 fsck util-linux-ng 2.17.2 /dev/sda6: clean, 70446/1463504 files, 5556011/5848320 blocks /dev/sda1: clean, 212/62248 files, 45287/248832 blocks init: statd-mounting main process (585) killed term signal^m mount.nfs: dns resolution failed 10.xxx.xxx.xxx: name or service not known mount.nfs: dns resolution failed 10.xxx.xxx.xxx: name or service not known mountall: mount /mnt/mynfs [597] terminated status 32 mount.nfs: dns resolution failed 10.xxx.xxx.xxx: name or service not known mountall: mount /mnt/mynfs [620] terminated status 32 bad user name "myuser" mountall: mount /mnt/mycifs [598] terminated status 1 bad user name "myuser" init: ureadahead-other main process (709) terminated status 4^m init: ureadahead-other main process (711) terminated status 4^m init: ureadahead-other main process (712) terminated status 4^m init: ureadahead-other main process (720) terminated status 4^m init: ureadahead-other main process (721) terminated status 4^m init: ureadahead-other main process (722) terminated status 4^m init: ureadahead-other main process (723) terminated status 4^m init: ureadahead-other main process (724) terminated status 4^m init: ureadahead-other main process (725) terminated status 4^m init: ureadahead-other main process (726) terminated status 4^m init: ureadahead-other main process (727) terminated status 4^m init: ureadahead-other main process (728) terminated status 4^m init: ureadahead-other main process (730) terminated status 4^m * starting apparmor profiles ^[[80g ^m^[[74g[ ok ] * starting web server apache2 ^[[80g ^m^[[74g[ ok ] .....
after trying ls command on cifs mount following error posted dmesg:code:execve("/bin/ls", ["ls", "/mnt/mycifs"], [/* 17 vars */]) = 0 brk(0) = 0x1856000 access("/etc/ld.so.nohwcap", f_ok) = -1 enoent (no such file or directory) mmap(null, 8192, prot_read|prot_write, map_private|map_anonymous, -1, 0) = 0x7ffe429b0000 access("/etc/ld.so.preload", r_ok) = -1 enoent (no such file or directory) open("/etc/ld.so.cache", o_rdonly) = 3 fstat(3, {st_mode=s_ifreg|0644, st_size=14556, ...}) = 0 mmap(null, 14556, prot_read, map_private, 3, 0) = 0x7ffe429ac000 close(3) = 0 access("/etc/ld.so.nohwcap", f_ok) = -1 enoent (no such file or directory) open("/lib/librt.so.1", o_rdonly) = 3 read(3, "\177elf\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220!\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=s_ifreg|0644, st_size=31744, ...}) = 0 mmap(null, 2128848, prot_read|prot_exec, map_private|map_denywrite, 3, 0) = 0x7ffe4258b000 mprotect(0x7ffe42592000, 2093056, prot_none) = 0 mmap(0x7ffe42791000, 8192, prot_read|prot_write, map_private|map_fixed|map_denywrite, 3, 0x6000) = 0x7ffe42791000 close(3) = 0 access("/etc/ld.so.nohwcap", f_ok) = -1 enoent (no such file or directory) open("/lib/libselinux.so.1", o_rdonly) = 3 read(3, "\177elf\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20y\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=s_ifreg|0644, st_size=117592, ...}) = 0 mmap(null, 2217480, prot_read|prot_exec, map_private|map_denywrite, 3, 0) = 0x7ffe4236d000 mprotect(0x7ffe42389000, 2093056, prot_none) = 0 mmap(0x7ffe42588000, 8192, prot_read|prot_write, map_private|map_fixed|map_denywrite, 3, 0x1b000) = 0x7ffe42588000 mmap(0x7ffe4258a000, 1544, prot_read|prot_write, map_private|map_fixed|map_anonymous, -1, 0) = 0x7ffe4258a000 close(3) = 0 access("/etc/ld.so.nohwcap", f_ok) = -1 enoent (no such file or directory) open("/lib/libacl.so.1", o_rdonly) = 3 read(3, "\177elf\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\35\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=s_ifreg|0644, st_size=31208, ...}) = 0 mmap(null, 4096, prot_read|prot_write, map_private|map_anonymous, -1, 0) = 0x7ffe429ab000 mmap(null, 2126288, prot_read|prot_exec, map_private|map_denywrite, 3, 0) = 0x7ffe42165000 mprotect(0x7ffe4216c000, 2093056, prot_none) = 0 mmap(0x7ffe4236b000, 8192, prot_read|prot_write, map_private|map_fixed|map_denywrite, 3, 0x6000) = 0x7ffe4236b000 close(3) = 0 .... open("/usr/lib/locale/en_us.utf-8/lc_time", o_rdonly) = -1 enoent (no such file or directory) open("/usr/lib/locale/en_us.utf8/lc_time", o_rdonly) = 3 fstat(3, {st_mode=s_ifreg|0644, st_size=2454, ...}) = 0 mmap(null, 2454, prot_read, map_private, 3, 0) = 0x7ffe4287d000 close(3) = 0 open("/usr/lib/locale/en_us.utf-8/lc_numeric", o_rdonly) = -1 enoent (no such file or directory) open("/usr/lib/locale/en_us.utf8/lc_numeric", o_rdonly) = 3 fstat(3, {st_mode=s_ifreg|0644, st_size=54, ...}) = 0 mmap(null, 54, prot_read, map_private, 3, 0) = 0x7ffe4287c000 close(3) = 0 open("/usr/lib/locale/en_us.utf-8/lc_ctype", o_rdonly) = -1 enoent (no such file or directory) open("/usr/lib/locale/en_us.utf8/lc_ctype", o_rdonly) = 3 fstat(3, {st_mode=s_ifreg|0644, st_size=256324, ...}) = 0 mmap(null, 256324, prot_read, map_private, 3, 0) = 0x7ffe4283d000 close(3) = 0 ioctl(1, sndctl_tmr_timebase or tcgets, {b38400 opost isig icanon echo ...}) = 0 ioctl(1, tiocgwinsz, {ws_row=65, ws_col=238, ws_xpixel=0, ws_ypixel=0}) = 0 stat("/mnt/mycifs", {st_mode=s_ifdir|0777, st_size=0, ...}) = 0 open("/mnt/mycifs", o_rdonly|o_nonblock|o_directory|o_cloexec) = 3 fcntl(3, f_getfd) = 0x1 (flags fd_cloexec) getdents(3, /* 65 entries */, 32768) = 2432 getdents(3, /* 0 entries */, 32768) = 0 close(3) = 0 fstat(1, {st_mode=s_ifchr|0600, st_rdev=makedev(136, 0), ...}) = 0 mmap(null, 4096, prot_read|prot_write, map_private|map_anonymous, -1, 0) = 0x7ffe4283c000 write(1, "xxxxxx.html"..., .....) = 141 close(1) = 0 munmap(0x7ffe4283c000, 4096) = 0 close(2) = 0 exit_group(0) = ?
similarly, if try "ls /mnt/mynfs" blocks forever, never returning directory listing. again, here strace output (line gets stuck in bold):code:cifs vfs: no response cmd 50 mid 13
after booting, if "umount /mnt/mycifs && mount /mnt/mycifs" or "umount /mnt/mynfs && ount /mnt/mynfs" both mounts fine , list directories , normally. appears funny happening mountpoints @ boot-time, though network accessible , these shares end getting mounted.code:..... open("/usr/lib/locale/en_us.utf-8/lc_collate", o_rdonly) = -1 enoent (no such file or directory) open("/usr/lib/locale/en_us.utf8/lc_collate", o_rdonly) = 3 fstat(3, {st_mode=s_ifreg|0644, st_size=1170770, ...}) = 0 mmap(null, 1170770, prot_read, map_private, 3, 0) = 0x7f952e933000 close(3) = 0 open("/usr/lib/locale/en_us.utf-8/lc_time", o_rdonly) = -1 enoent (no such file or directory) open("/usr/lib/locale/en_us.utf8/lc_time", o_rdonly) = 3 fstat(3, {st_mode=s_ifreg|0644, st_size=2454, ...}) = 0 mmap(null, 2454, prot_read, map_private, 3, 0) = 0x7f952e932000 close(3) = 0 open("/usr/lib/locale/en_us.utf-8/lc_numeric", o_rdonly) = -1 enoent (no such file or directory) open("/usr/lib/locale/en_us.utf8/lc_numeric", o_rdonly) = 3 fstat(3, {st_mode=s_ifreg|0644, st_size=54, ...}) = 0 mmap(null, 54, prot_read, map_private, 3, 0) = 0x7f952e931000 close(3) = 0 open("/usr/lib/locale/en_us.utf-8/lc_ctype", o_rdonly) = -1 enoent (no such file or directory) open("/usr/lib/locale/en_us.utf8/lc_ctype", o_rdonly) = 3 fstat(3, {st_mode=s_ifreg|0644, st_size=256324, ...}) = 0 mmap(null, 256324, prot_read, map_private, 3, 0) = 0x7f952e8f2000 close(3) = 0 ioctl(1, sndctl_tmr_timebase or tcgets, {b38400 opost isig icanon echo ...}) = 0 ioctl(1, tiocgwinsz, {ws_row=65, ws_col=238, ws_xpixel=0, ws_ypixel=0}) = 0 stat("/mnt/mynfs", {st_mode=s_ifdir|0755, st_size=3896, ...}) = 0 open("/mnt/mynfs", o_rdonly|o_nonblock|o_directory|o_cloexec
resolve issue adding umount/mount commands /etc/rc.local, resolve source of problem rather add hack if possible. have tried adding _netdev boot option /etc/fstab no improved behavior. ideas on why occuring , else can try debug it?
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [ubuntu] CIFS Slow to access after boot, NFS times out
Ubuntu
Comments
Post a Comment