ситуация такая:
Статика на нашем сайте раздается при помощи nginx на FreeBSD 8.0 RC-1, но материал периодически правится и пополняется, для чего была поднята самба (версия 3.3.13) и заведена в AD, ну и соответственно шара с прозрачной авторизацией для пользователей AD. В один не слишком прекрасный день raid на контроллере домена приказал долго жить. Спешно был на другом сервере поднят другой контроллер с точно таким же названием, после чего самба была переведена в новый домен. Но после перевода пошли странности. На шару получается только с двух компов зайти можно, на остальных выдается сообщение The semaphore timeout period has expired.
В логах при этом пишется следующее:
Код: Выделить всё
Nov 16 13:30:03 content smbd[85081]: [2010/11/16 13:30:03, 0] lib/util_sock.c:write_data(1136)
Nov 16 13:30:03 content smbd[85081]: [2010/11/16 13:30:03, 0] lib/util_sock.c:get_peer_addr_internal(1676)
Nov 16 13:30:03 content smbd[85081]: getpeername failed. Error was Socket is not connected
Nov 16 13:30:03 content smbd[85081]: write_data: write failure in writing to client 0.0.0.0. Error Socket is not connected
Nov 16 13:30:03 content smbd[85081]: [2010/11/16 13:30:03, 0] smbd/process.c:srv_send_smb(74)
Nov 16 13:30:03 content smbd[85081]: Error writing 4 bytes to client. -1. (Socket is not connected)
Nov 16 13:30:03 content smbd[85081]: [2010/11/16 13:30:03, 0] lib/util_sock.c:read_socket_with_timeout(939)
Nov 16 13:30:03 content smbd[85081]: [2010/11/16 13:30:03, 0] lib/util_sock.c:get_peer_addr_internal(1676)
Nov 16 13:30:03 content smbd[85081]: getpeername failed. Error was Socket is not connected
Nov 16 13:30:03 content smbd[85081]: read_socket_with_timeout: client 0.0.0.0 read error = Socket is not connected.
Nov 16 13:30:12 content smbd[85082]: [2010/11/16 13:30:12, 0] lib/util_sock.c:write_data(1136)
Nov 16 13:30:12 content smbd[85082]: [2010/11/16 13:30:12, 0] lib/util_sock.c:get_peer_addr_internal(1676)
Nov 16 13:30:12 content smbd[85082]: getpeername failed. Error was Socket is not connected
Nov 16 13:30:12 content smbd[85082]: write_data: write failure in writing to client 0.0.0.0. Error Socket is not connected
Nov 16 13:30:12 content smbd[85082]: [2010/11/16 13:30:12, 0] smbd/process.c:srv_send_smb(74)
Nov 16 13:30:12 content smbd[85082]: Error writing 4 bytes to client. -1. (Socket is not connected)
Nov 16 13:30:12 content smbd[85082]: [2010/11/16 13:30:12, 0] lib/util_sock.c:read_socket_with_timeout(939)
Nov 16 13:30:12 content smbd[85082]: [2010/11/16 13:30:12, 0] lib/util_sock.c:get_peer_addr_internal(1676)
Nov 16 13:30:12 content smbd[85082]: getpeername failed. Error was Socket is not connected
Nov 16 13:30:12 content smbd[85082]: read_socket_with_timeout: client 0.0.0.0 read error = Socket is not connected.
Nov 16 13:30:23 content smbd[85085]: [2010/11/16 13:30:23, 0] lib/util_sock.c:write_data(1136)
Nov 16 13:30:23 content smbd[85085]: [2010/11/16 13:30:23, 0] lib/util_sock.c:get_peer_addr_internal(1676)
Nov 16 13:30:23 content smbd[85085]: getpeername failed. Error was Socket is not connected
Nov 16 13:30:23 content smbd[85085]: write_data: write failure in writing to client 0.0.0.0. Error Socket is not connected
Nov 16 13:30:23 content smbd[85085]: [2010/11/16 13:30:23, 0] smbd/process.c:srv_send_smb(74)
Nov 16 13:30:23 content smbd[85085]: Error writing 4 bytes to client. -1. (Socket is not connected)
Nov 16 13:30:23 content smbd[85085]: [2010/11/16 13:30:23, 0] lib/util_sock.c:read_socket_with_timeout(939)
Nov 16 13:30:23 content smbd[85085]: [2010/11/16 13:30:23, 0] lib/util_sock.c:get_peer_addr_internal(1676)
Nov 16 13:30:23 content smbd[85085]: getpeername failed. Error was Socket is not connected
Nov 16 13:30:23 content smbd[85085]: read_socket_with_timeout: client 0.0.0.0 read error = Socket is not connected.
Код: Выделить всё
[global]
workgroup = RIU
server string = Samba Server %v
security = ADS
hosts allow = 194.186.226. 127.
log file = /var/log/samba/log.%m
max log size = 50
password server = 194.186.226.31
realm = RIU.LOCAL
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
local master = no
os level = 10
domain master = no
preferred master = no
dns proxy = no
nt acl support = yes
inherit acls = yes
map acl inherit = no
admin users = RIU\admin, "@RIU\Domain Admins"
auth methods = winbind
map to guest = Bad User
acl group control = yes
client NTLMv2 auth = yes
idmap uid = 10000-20000
idmap gid = 10000-20000
winbind use default domain = yes
winbind enum users = yes
winbind enum groups = yes
winbind expand groups = 30
case sensitive = no
guest account = nobody
guest ok = yes
create mask = 0777
directory mask = 0777
[tmp]
comment = Temporary file space
path = /tmp
read only = no
create mask = 0666
create mode = 666
directory mode = 666
directory mask = 0777
guest ok = yes
[content]
comment = Content
path = /usr/local/www/nginx-dist
inherit permissions = yes
inherit acls = yes
inherit owner = yes
read only = no
guest ok = yes
Код: Выделить всё
group: files winbind
group_compat: nis
hosts: files dns winbind
networks: files
passwd: files winbind
passwd_compat: nis
shells: files
protocols: files
rpc: files
Вот как это можно победить?