Статус:
Offline
Реєстрація: 28.04.2004
Повідом.: 11428
Реєстрація: 28.04.2004
Повідом.: 11428
- 🔴 08:29 Повітряна тривога в Харків.обл.
- #1
Samba и/или сетевая карта - проконсультируйте, pls
В общем, надо было настроить простенький файл-сервер на Самбе. В качестве ОС была выбрана CentOS 5.4, недавно обновленная до 5.5 stable.
Суть проблемы - периодически, раз в несколько дней - начинаются проблемы с доступом к файловому серверу. Все очень медленно открывается или не открывается совсем. Перезапуск Самбы - не помогает, помогает только перезапуск сервера. Далее - подробности.
Конфиг Самбы:
[global]
workgroup = WORKGROUP
server string = SERVERNAME
netbios name = SERVERNAME
interfaces = 127.0.0.1 192.168.0.2/24
hosts allow = 127. 192.168.0.
smb ports = 139
socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=8192 SO_RCVBUF=8192
security = users
local master = yes
os level = 60
preferred master = yes
# uname -a
Linux SERVERNAME 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:07:06 EDT 2010 i686 i686 i386 GNU/Linux
/var/log/messages:
Jul 14 16:51:25 SERVERNAME kernel: sky2 eth0: receiver hang detected
Jul 14 16:51:25 SERVERNAME kernel: sky2 eth0: disabling interface
Jul 14 16:51:25 SERVERNAME kernel: sky2 eth0: enabling interface
Jul 14 16:51:25 SERVERNAME kernel: sky2 eth0: ram buffer 48K
Jul 14 16:51:27 SERVERNAME kernel: sky2 eth0: Link is up at 100 Mbps, full duplex, flow control both
Jul 14 16:53:41 SERVERNAME smbd[11622]: [2010/07/14 16:53:41, 0] lib/util_sock.c:read_data(534)
Jul 14 16:53:41 SERVERNAME smbd[11622]: read_data: read failure for 4 bytes to client 192.168.0.197. Error =$
Jul 14 16:54:43 SERVERNAME smbd[11098]: [2010/07/14 16:54:43, 0] lib/util_sock.c:write_data(562)
Jul 14 16:54:43 SERVERNAME smbd[11098]: write_data: write failure in writing to client 192.168.0.25. Error C$
Jul 14 16:54:43 SERVERNAME smbd[11098]: [2010/07/14 16:54:43, 0] lib/util_sock.c:send_smb(761)
Jul 14 16:54:43 SERVERNAME smbd[11098]: Error writing 61503 bytes to client. -1. (Connection reset by peer)
Jul 14 16:57:46 SERVERNAME smbd[12583]: [2010/07/14 16:57:46, 0] lib/util_sock.c:write_data(562)
Jul 14 16:57:46 SERVERNAME smbd[12583]: write_data: write failure in writing to client 192.168.0.25. Error C$
Jul 14 16:57:46 SERVERNAME smbd[12583]: [2010/07/14 16:57:46, 0] lib/util_sock.c:send_smb(761)
Jul 14 16:57:46 SERVERNAME smbd[12583]: Error writing 61503 bytes to client. -1. (Connection reset by peer)
Jul 14 17:01:39 SERVERNAME smbd[12578]: [2010/07/14 17:01:39, 0] lib/util_sock.c:read_data(534)
Jul 14 17:01:39 SERVERNAME smbd[12578]: read_data: read failure for 4 bytes to client 192.168.0.197. Error =$
в логах самбы - примерно то же самое:
/var/log/samba/smbd.log:
[2010/07/14 16:53:41, 0] lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 192.168.0.197. Error = Connection reset by peer
[2010/07/14 16:53:41, 1] smbd/service.c:close_cnum(1274)
compname (192.168.0.197) closed connection to service sharename
[2010/07/14 16:53:41, 1] smbd/service.c:make_connection_snum(1077)
compname (192.168.0.197) connect to service sharename initially as user username (uid=501, gid=501) (pid 12578)
[2010/07/14 16:54:43, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.0.25. Error Connection reset by peer
[2010/07/14 16:54:43, 0] lib/util_sock.c:send_smb(761)
Error writing 61503 bytes to client. -1. (Connection reset by peer)
[2010/07/14 16:54:43, 1] smbd/service.c:close_cnum(1274)
В общем, надо было настроить простенький файл-сервер на Самбе. В качестве ОС была выбрана CentOS 5.4, недавно обновленная до 5.5 stable.
Суть проблемы - периодически, раз в несколько дней - начинаются проблемы с доступом к файловому серверу. Все очень медленно открывается или не открывается совсем. Перезапуск Самбы - не помогает, помогает только перезапуск сервера. Далее - подробности.
Конфиг Самбы:
[global]
workgroup = WORKGROUP
server string = SERVERNAME
netbios name = SERVERNAME
interfaces = 127.0.0.1 192.168.0.2/24
hosts allow = 127. 192.168.0.
smb ports = 139
socket options = TCP_NODELAY SO_KEEPALIVE SO_SNDBUF=8192 SO_RCVBUF=8192
security = users
local master = yes
os level = 60
preferred master = yes
# uname -a
Linux SERVERNAME 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:07:06 EDT 2010 i686 i686 i386 GNU/Linux
/var/log/messages:
Jul 14 16:51:25 SERVERNAME kernel: sky2 eth0: receiver hang detected
Jul 14 16:51:25 SERVERNAME kernel: sky2 eth0: disabling interface
Jul 14 16:51:25 SERVERNAME kernel: sky2 eth0: enabling interface
Jul 14 16:51:25 SERVERNAME kernel: sky2 eth0: ram buffer 48K
Jul 14 16:51:27 SERVERNAME kernel: sky2 eth0: Link is up at 100 Mbps, full duplex, flow control both
Jul 14 16:53:41 SERVERNAME smbd[11622]: [2010/07/14 16:53:41, 0] lib/util_sock.c:read_data(534)
Jul 14 16:53:41 SERVERNAME smbd[11622]: read_data: read failure for 4 bytes to client 192.168.0.197. Error =$
Jul 14 16:54:43 SERVERNAME smbd[11098]: [2010/07/14 16:54:43, 0] lib/util_sock.c:write_data(562)
Jul 14 16:54:43 SERVERNAME smbd[11098]: write_data: write failure in writing to client 192.168.0.25. Error C$
Jul 14 16:54:43 SERVERNAME smbd[11098]: [2010/07/14 16:54:43, 0] lib/util_sock.c:send_smb(761)
Jul 14 16:54:43 SERVERNAME smbd[11098]: Error writing 61503 bytes to client. -1. (Connection reset by peer)
Jul 14 16:57:46 SERVERNAME smbd[12583]: [2010/07/14 16:57:46, 0] lib/util_sock.c:write_data(562)
Jul 14 16:57:46 SERVERNAME smbd[12583]: write_data: write failure in writing to client 192.168.0.25. Error C$
Jul 14 16:57:46 SERVERNAME smbd[12583]: [2010/07/14 16:57:46, 0] lib/util_sock.c:send_smb(761)
Jul 14 16:57:46 SERVERNAME smbd[12583]: Error writing 61503 bytes to client. -1. (Connection reset by peer)
Jul 14 17:01:39 SERVERNAME smbd[12578]: [2010/07/14 17:01:39, 0] lib/util_sock.c:read_data(534)
Jul 14 17:01:39 SERVERNAME smbd[12578]: read_data: read failure for 4 bytes to client 192.168.0.197. Error =$
в логах самбы - примерно то же самое:
/var/log/samba/smbd.log:
[2010/07/14 16:53:41, 0] lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 192.168.0.197. Error = Connection reset by peer
[2010/07/14 16:53:41, 1] smbd/service.c:close_cnum(1274)
compname (192.168.0.197) closed connection to service sharename
[2010/07/14 16:53:41, 1] smbd/service.c:make_connection_snum(1077)
compname (192.168.0.197) connect to service sharename initially as user username (uid=501, gid=501) (pid 12578)
[2010/07/14 16:54:43, 0] lib/util_sock.c:write_data(562)
write_data: write failure in writing to client 192.168.0.25. Error Connection reset by peer
[2010/07/14 16:54:43, 0] lib/util_sock.c:send_smb(761)
Error writing 61503 bytes to client. -1. (Connection reset by peer)
[2010/07/14 16:54:43, 1] smbd/service.c:close_cnum(1274)