[OpenIndiana-discuss] CIFS: dir -> long delay or Error in dskattr: NT_STATUS_IO_TIMEOUT

Martin Walter mawa at uni-freiburg.de
Thu Oct 20 10:20:24 UTC 2011


Hi,

my problem occures on a 151a server with a large filesystem (12 TB) exported via sun-cifs.
When doing a simple "dir" from a windows mount or a linux or even local smbclient connection
I get sometimes a delay of about 20 seconds or sometimes an NT_STATUS_IO_TIMEOUT or sometimes
an instant answer. The problem does not appear with a small filesystem on the same server.

If I use the samba-server instead of the sun-cifs-server, there is no such problem.

Any hints for me?

Martin

#########################################################################


Script started on Thu Oct 20 11:50:29 2011
root at sunfs5:/root# uname -a
SunOS sunfs5 5.11 oi_151a i86pc i386 i86pc
root at sunfs5:/root# pkg info smb
          Name: service/file-system/smb
       Summary: SMB Server
   Description: SMB Server libraries and commands
      Category: System/File System
         State: Installed
     Publisher: openindiana.org
       Version: 0.5.11
 Build Release: 5.11
        Branch: 0.151.1
Packaging Date: Mon Sep 12 03:14:17 2011
          Size: 4.03 MB
          FMRI: pkg://openindiana.org/service/file-system/smb@0.5.11,5.11-0.151.1:20110912T031417Z

          Name: system/file-system/smb
       Summary: SMB/CIFS File System client support
   Description: SMB/CIFS File System client support
      Category: System/File System
         State: Installed
     Publisher: openindiana.org
       Version: 0.5.11
 Build Release: 5.11
        Branch: 0.151.1
Packaging Date: Mon Sep 12 03:15:08 2011
          Size: 1.50 MB
          FMRI: pkg://openindiana.org/system/file-system/smb@0.5.11,5.11-0.151.1:20110912T031508Z
root at sunfs5:/root# pkg info samba
          Name: service/network/samba
       Summary: samba - A Windows SMB/CIFS fileserver for UNIX
   Description: samba - A Windows SMB/CIFS fileserver for UNIX
      Category: System/File System
         State: Installed
     Publisher: openindiana.org
       Version: 3.5.5
 Build Release: 5.11
        Branch: 0.151.1
Packaging Date: Mon Sep 12 02:48:56 2011
          Size: 166.69 MB
          FMRI: pkg://openindiana.org/service/network/samba@3.5.5,5.11-0.151.1:20110912T024856Z
root at sunfs5:/root# svcs -av | grep smb
online         -             11:12:29   5147 svc:/network/smb/client:default
online         -             11:12:30   5149 svc:/network/smb/server:default
online         -             11:12:30      - svc:/network/shares/group:smb
root at sunfs5:/root# while sleep 1; do date; time smbclient //sunfs5/home -Dnp2/t -Unp2%XXXXXXXX -c dir; done
Thu Oct 20 11:51:39 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m19.628s
user    0m0.011s
sys     0m0.013s
Thu Oct 20 11:52:00 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.063s
user    0m0.011s
sys     0m0.013s
Thu Oct 20 11:52:01 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.058s
user    0m0.011s
sys     0m0.012s
Thu Oct 20 11:52:02 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011
Error in dskattr: NT_STATUS_IO_TIMEOUT

real    0m20.061s
user    0m0.010s
sys     0m0.012s
Thu Oct 20 11:52:23 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m1.269s
user    0m0.011s
sys     0m0.013s
Thu Oct 20 11:52:25 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.057s
user    0m0.010s
sys     0m0.012s
Thu Oct 20 11:52:26 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.057s
user    0m0.010s
sys     0m0.012s
Thu Oct 20 11:52:27 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m16.592s
user    0m0.011s
sys     0m0.013s
Thu Oct 20 11:52:45 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.039s
user    0m0.004s
sys     0m0.006s
Thu Oct 20 11:52:46 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.042s
user    0m0.004s
sys     0m0.006s
Thu Oct 20 11:52:47 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m16.569s
user    0m0.010s
sys     0m0.013s
Thu Oct 20 11:53:05 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.051s
user    0m0.010s
sys     0m0.013s
Thu Oct 20 11:53:06 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.050s
user    0m0.005s
sys     0m0.006s
Thu Oct 20 11:53:07 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m17.450s
user    0m0.010s
sys     0m0.013s
Thu Oct 20 11:53:25 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.163s
user    0m0.010s
sys     0m0.012s
Thu Oct 20 11:53:26 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m17.463s
user    0m0.011s
sys     0m0.013s
Thu Oct 20 11:53:45 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.057s
user    0m0.010s
sys     0m0.013s
Thu Oct 20 11:53:46 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.055s
user    0m0.010s
sys     0m0.012s
Thu Oct 20 11:53:47 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011
Error in dskattr: NT_STATUS_IO_TIMEOUT

real    0m20.064s
user    0m0.010s
sys     0m0.013s
Thu Oct 20 11:54:08 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011
Error in dskattr: NT_STATUS_IO_TIMEOUT

real    0m20.144s
user    0m0.010s
sys     0m0.013s
Thu Oct 20 11:54:29 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                   D        0  Wed Oct 19 15:41:15 2011
  ..                                 DA        0  Wed Oct 19 15:41:15 2011
^C
real    0m1.132s
user    0m0.011s
sys     0m0.013s

root at sunfs5:/root# while sleep 1; do date; time smbclient //sunfs5/h -Dnp2/t -Unp2%XXXXXXXX -c dir; done
Thu Oct 20 11:54:45 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                  DA        0  Thu Oct 20 11:52:21 2011
  ..                                 DA        0  Thu Oct 20 11:52:21 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.058s
user    0m0.005s
sys     0m0.006s
Thu Oct 20 11:54:46 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                  DA        0  Thu Oct 20 11:52:21 2011
  ..                                 DA        0  Thu Oct 20 11:52:21 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.055s
user    0m0.010s
sys     0m0.012s
Thu Oct 20 11:54:47 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                  DA        0  Thu Oct 20 11:52:21 2011
  ..                                 DA        0  Thu Oct 20 11:52:21 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.053s
user    0m0.010s
sys     0m0.012s
Thu Oct 20 11:54:48 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                  DA        0  Thu Oct 20 11:52:21 2011
  ..                                 DA        0  Thu Oct 20 11:52:21 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.064s
user    0m0.011s
sys     0m0.013s
Thu Oct 20 11:54:50 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                  DA        0  Thu Oct 20 11:52:21 2011
  ..                                 DA        0  Thu Oct 20 11:52:21 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.057s
user    0m0.011s
sys     0m0.013s
Thu Oct 20 11:54:51 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                  DA        0  Thu Oct 20 11:52:21 2011
  ..                                 DA        0  Thu Oct 20 11:52:21 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.057s
user    0m0.011s
sys     0m0.013s
Thu Oct 20 11:54:52 CEST 2011
Domain=[PUBLIC] OS=[Windows 2000] Server=[Windows 2000 LAN Manager]
  .                                  DA        0  Thu Oct 20 11:52:21 2011
  ..                                 DA        0  Thu Oct 20 11:52:21 2011

                65535 blocks of size 16777216. 65535 blocks available

real    0m0.063s
user    0m0.011s
sys     0m0.013s
^C
root at sunfs5:/root# exit

script done on Thu Oct 20 11:54:53 2011



More information about the OpenIndiana-discuss mailing list