Страница 1 из 1

SAMBA

Добавлено: 2008-02-12 22:36:28
mAzA}{aKa
Люди добрые подскажите: при заливке большого филе на сервер, где крутится самба в винде вылезает "нет места на диске" хотя места навалом (df).... чтож это за баг такой, а? никаких квот ичего, что моглобы ограничить размер закачки нету! Начальство уже всю плеш проело! и главное... никаких перезагрузок или чего еще... все само собой восстанавливается ч/з пару сек, в папке лежит недолитое филе (напр заливам 4Г а там с таким же названием скажем 300М)... я уже вапсче незнаю куда глядеть!!! Уже все испытал: ведро пересобирал, самбу переустанавливал, диск проверил... комп вроде нормальный (п2-1.6, 256М)
а она вылазит и хоть ты тресни!

ЗЫ freebsd 6.3-stable, все порты регулярно обновляются... вс свежее... черте чо блин! СПАСАЙТЕ! :cry:

Re: SAMBA

Добавлено: 2008-02-12 23:39:23
Fastman
mAzA}{aKa писал(а):СПАСАЙТЕ! :cry:
еще раз перечитал... почему то не увидел логов самбы... нет и версии самбы... чего спасать то ? :)

Re: SAMBA

Добавлено: 2008-02-13 22:07:13
mAzA}{aKa
Юморист! samba 3.0.28,1 работает как PDC (настраивал по статье тут на сайте !еще раз автору респект! - правда кое чего я еще сам прикрутил к ентому всему ;-)

Вот кусочег логоф:

Код: Выделить всё

Feb 13 23:53:50 EDU-DC001 smbd[70198]: [2008/02/13 23:53:50, 0] lib/util_sock.c:read_data(534)
Feb 13 23:53:50 EDU-DC001 smbd[70198]:   read_data: read failure for 4 bytes to client 192.168.0.14. Error = Connection reset by peer
Feb 13 23:53:50 EDU-DC001 smbd[70203]: [2008/02/13 23:53:50, 0] lib/util_sock.c:read_data(534)
Feb 13 23:53:50 EDU-DC001 smbd[70203]:   read_data: read failure for 4 bytes to client 192.168.0.14. Error = Connection reset by peer
Feb 13 23:53:50 EDU-DC001 smbd[70201]: [2008/02/13 23:53:50, 0] lib/util_sock.c:read_data(534)
Feb 13 23:53:50 EDU-DC001 smbd[70201]:   read_data: read failure for 4 bytes to client 192.168.0.14. Error = Connection reset by peer
Feb 13 23:59:00 EDU-DC001 winbindd[934]: [2008/02/13 23:59:00, 0] libsmb/clientgen.c:cli_receive_smb(112)
Feb 13 23:59:00 EDU-DC001 winbindd[934]:   Receiving SMB: Server stopped responding
Feb 13 23:59:13 EDU-DC001 winbindd[934]: [2008/02/13 23:59:13, 0] libsmb/clientgen.c:cli_receive_smb(112)
Feb 13 23:59:13 EDU-DC001 winbindd[934]:   Receiving SMB: Server stopped responding
Feb 13 23:59:26 EDU-DC001 winbindd[934]: [2008/02/13 23:59:26, 0] libsmb/clientgen.c:cli_receive_smb(112)
Feb 13 23:59:26 EDU-DC001 winbindd[934]:   Receiving SMB: Server stopped responding
Feb 13 23:59:26 EDU-DC001 smbd[70271]: [2008/02/13 23:59:26, 0] lib/util_sock.c:read_data(534)
Feb 13 23:59:26 EDU-DC001 smbd[70271]:   read_data: read failure for 4 bytes to client 192.168.0.14. Error = Connection reset by peer
Feb 13 23:59:26 EDU-DC001 smbd[70280]: [2008/02/13 23:59:26, 0] lib/util_sock.c:read_data(534)
Feb 13 23:59:26 EDU-DC001 smbd[70280]:   read_data: read failure for 4 bytes to client 192.168.0.14. Error = Connection reset by peer
Feb 13 23:59:26 EDU-DC001 smbd[70277]: [2008/02/13 23:59:26, 0] lib/util_sock.c:read_data(534)
Feb 13 23:59:26 EDU-DC001 smbd[70277]:   read_data: read failure for 4 bytes to client 192.168.0.14. Error = Connection reset by peer
192.168.0.14 - это собсно и есть PDC....
....... кароч ненаю йа уже шо и думать....... маленького файла хоть гигами заливай, а большое начнешь - отвалится!

Re: SAMBA

Добавлено: 2008-02-13 23:49:24
Alex Keda
по которой из - статей?
про ДС на сайте минимум две

Re: SAMBA

Добавлено: 2008-02-14 11:30:41
mAzA}{aKa
lissyara писал(а):по которой из - статей?
про ДС на сайте минимум две
http://www.lissyara.su/?id=1487

Re: SAMBA

Добавлено: 2011-03-29 10:32:03
Vasily Yakunin
1) На буржуйском форуме задавался похожий вопрос, ответ на него следующий (привожу оригинал)

Цитата
I've been looking around for the same problem for some time. I'm quite
sure, but anyone correct me if I'm wrong.

It has something to do with windows clients (win2K, XP) trying to get a
connection on port 139 and 445. If windows gets a connection on port 445,
port 139 is dropped and the error appears in the log. Microsoft OS prefer
445 over 139 (bypassing NetBIOS overhead).

You could avoid this by putting smb ports = 139 in the [global], it forces
clients to use NetBIOS services. However smbd and nmbd daemon failed to
start for me that way, but it should really work. I didn't gave it a lot
time testing, since the error is more of a notification.


2)http://www.math.temple.edu/computing/samba.html (пункт 6.3)

Цитата
Traditional NetBIOS traffic relies on three specific services: NetBIOS Name Service (port 137/udp), NetBIOS Datagram Service (port 138/udp), and NetBIOS Session Service (port 139/tcp).

Direct hosted "NetBIOS-less" SMB traffic uses ports 445/tcp and 445/udp, which has the advantage of removing dependence on WINS for name resolution. In this situation, a four-byte header precedes the SMB traffic. The first byte of this header is always 0x00, and the next three bytes are the length of the remaining data. Only Windows 2000 and Windows XP support the direct-hosted method. Samba does have the ability to accept connections on port 445, but it does not listen on this port when started with the -D option. Instead, it must be started from inetd (without the -D flag) and inetd must be configured to accept smb connections on port 445. Please be aware that this is a very new and untested feature, so your mileage may vary.


Как я понял из всего этого Самба поддерживает соединение по 445 порту, а 139 порт в случае соединения по 445 портусбрасывается. Именно из-за этого и появляются эти ошибки. Чтобы избавится от таких логов нужно в секции [global] прописать smb ports = 139.