0

I am running CentOS7.6 and Windows Server 2012 R2 for SMB connection. I am able to mount volume but not it doesn't allow me to do a directory listing. I can do the directory listing on a folder which has 2 files in it but another directory has more then few files are not coming up.

/etc/fstab //my-fs20/iXport/ /iXport/iXport_MTG cifs vers=1.0,credentials=/etc/samba/.cred,domain=My_DOMAIN

when try to do directory listing then it get hangs:

# strace ls -l /iXport/iXport_MTG
execve("/bin/ls", ["ls", "-l", "/iXport/iXport_MTG"], [/* 18 vars */]) = 0
brk(NULL)                               = 0x19fc000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f72c77ba000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=41055, ...}) = 0
mmap(NULL, 41055, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f72c77af000
close(3)                                = 0
open("/lib64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320i\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=155784, ...}) = 0
mmap(NULL, 2255184, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f72c7373000
mprotect(0x7f72c7397000, 2093056, PROT_NONE) = 0
mmap(0x7f72c7596000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x7f72c7596000
mmap(0x7f72c7598000, 6480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f72c7598000
close(3)                                = 0
open("/lib64/libcap.so.2", O_RDONLY|O_CLOEXEC) = 3
.
.
.

close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f72c77ac000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f72c77aa000
arch_prctl(ARCH_SET_FS, 0x7f72c77aa840) = 0
mprotect(0x7f72c6f5a000, 16384, PROT_READ) = 0
mprotect(0x7f72c6527000, 4096, PROT_READ) = 0
mprotect(0x7f72c6730000, 4096, PROT_READ) = 0
mprotect(0x7f72c6934000, 4096, PROT_READ) = 0
mprotect(0x7f72c6b96000, 4096, PROT_READ) = 0
mprotect(0x7f72c716c000, 4096, PROT_READ) = 0
mprotect(0x7f72c7371000, 4096, PROT_READ) = 0
mprotect(0x7f72c7596000, 4096, PROT_READ) = 0
mprotect(0x61a000, 4096, PROT_READ)     = 0
mprotect(0x7f72c77bb000, 4096, PROT_READ) = 0
munmap(0x7f72c77af000, 41055)           = 0
set_tid_address(0x7f72c77aab10)         = 7185
set_robust_list(0x7f72c77aab20, 24)     = 0
.
.
.
open("/usr/share/locale/en_US/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/etc/sysconfig/64bit_strstr_via_64bit_strstr_sse2_unaligned", 0x7fff9fc1aa30) = -1 ENOENT (No such file or directory)
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26254, ...}) = 0
mmap(NULL, 26254, PROT_READ, MAP_SHARED, 3, 0) = 0x7f72c77b3000
close(3)                                = 0
.
..
munmap(0x7f72c77b2000, 4096)            = 0
socket(AF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
socket(AF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/group", O_RDONLY|O_CLOEXEC)  = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=715, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f72c77b2000
read(3, "root:x:0:\nbin:x:1:\ndaemon:x:2:\ns"..., 4096) = 715
close(3)                                = 0
munmap(0x7f72c77b2000, 4096)            = 0
openat(AT_FDCWD, "/iXport/iXport_MTG", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3,

This hangs there forver and I have press control c to get out of it.

I also try to mount with SMB 3.0 version

//my-fs20/iXport/  /iXport/iXport_MTG cifs  vers=3.0,credentials=/etc/samba/.cred,domain=My_DOMAIN

This doesn't hang forver but output this error Here is the directory list

        # strace ls -l  /iXport/iXport_MTG
    execve("/bin/ls", ["ls", "-l", "/iXport/iXport_MTG"], [/* 18 vars */]) = 0
    brk(NULL)                               = 0x12e2000
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6bc87b0000
    access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=41055, ...}) = 0
    mmap(NULL, 41055, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f6bc87a5000
    close(3)                                = 0
    open("/lib64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
   .
   .
   .
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260l\0\0\0\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=141968, ...}) = 0
    mmap(NULL, 2208904, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f6bc7307000
    mprotect(0x7f6bc731e000, 2093056, PROT_NONE) = 0
    mmap(0x7f6bc751d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f6bc751d000
    mmap(0x7f6bc751f000, 13448, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f6bc751f000
    close(3)                                = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6bc87a2000
    mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6bc87a0000
    arch_prctl(ARCH_SET_FS, 0x7f6bc87a0840) = 0
    mprotect(0x7f6bc7f50000, 16384, PROT_READ) = 0
    mprotect(0x7f6bc751d000, 4096, PROT_READ) = 0
    mprotect(0x7f6bc7726000, 4096, PROT_READ) = 0
    mprotect(0x7f6bc792a000, 4096, PROT_READ) = 0
    mprotect(0x7f6bc7b8c000, 4096, PROT_READ) = 0
    mprotect(0x7f6bc8162000, 4096, PROT_READ) = 0
    mprotect(0x7f6bc8367000, 4096, PROT_READ) = 0
    mprotect(0x7f6bc858c000, 4096, PROT_READ) = 0
    mprotect(0x61a000, 4096, PROT_READ)     = 0
    mprotect(0x7f6bc87b1000, 4096, PROT_READ) = 0
    munmap(0x7f6bc87a5000, 41055)           = 0
    set_tid_address(0x7f6bc87a0b10)         = 7419
    set_robust_list(0x7f6bc87a0b20, 24)     = 0
    rt_sigaction(SIGRTMIN, {0x7f6bc730d790, [], SA_RESTORER|SA_SIGINFO, 0x7f6bc73165d0}, NULL, 8) = 0
    rt_sigaction(SIGRT_1, {0x7f6bc730d820, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7f6bc73165d0}, NULL, 8) = 0
    rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
    .
    .
    .
    .
    fstat(3, {st_mode=S_IFREG|0644, st_size=2502, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6bc87af000
    read(3, "# Locale name alias data base.\n#"..., 4096) = 2502
    read(3, "", 4096)                       = 0
    close(3)                                = 0
    munmap(0x7f6bc87af000, 4096)            = 0
    open("/usr/share/locale/en_US.UTF-8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en_US.utf8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en_US/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en.UTF-8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en.utf8/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en/LC_TIME/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    stat("/etc/sysconfig/64bit_strstr_via_64bit_strstr_sse2_unaligned", 0x7fffe243eab0) = -1 ENOENT (No such file or directory)
    open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=26254, ...}) = 0
    .
    .
    .
    .
    close(3)                                = 0
    munmap(0x7f6bc87a8000, 4096)            = 0
    open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    write(2, ": Resource temporarily unavailab"..., 34: Resource temporarily unavailable) = 34
    write(2, "\n", 1
    )                       = 1
    close(3)                                = 0
    fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6bc87a8000
    write(1, "total 0\n", 8total 0
    )                = 8
    close(1)                                = 0
    munmap(0x7f6bc87a8000, 4096)            = 0
    close(2)                                = 0
    exit_group(2)                           = ?
    +++ exited with 2 +++

I also see this message in /var/log/messages:

kernel: CIFS VFS: Free previous auth_key.response = ffff9fb378405300

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.