Newsgroup: it.comp.os.linux.debian
Titolo: Problemi samba

Ho installato nel mio ufficio un server (Athalon1300) con Debian per il 
filesharing, il database e quant'altro. Purtroppo gli utenti hanno 
osservato che se si tentano di spostare dei file molto grandi dal 
server ai clients windows rimane bloccato finchè non comunica che la 
comunicazione è stata interrotta. Invece non ci sono problemi a 
spostare file grandi dal computer dell' utente al server.
Avete consigli? Che controlli mi consigliate?

 server ai clients windows rimane bloccato
ma la dimensione massima  con cui riesci a copiare files dal server
ai client windows quant'e'?
4 Gb?
y

yamabushitriste scriveva il 31/08/2007 :

Pochi mega. Per file dimensioni di 10 Mb è praticamente impossibile 
fare il download.

 fare il download.
in effetti e' strano.
Sicuro che ti sei guardato bene i log in /var/log/samba ?
Specie il log.smbd.
Magari puoi provare a vedere se il problema non e' nella condivisione ergo
impostare nella sezione global di smb.conf 
log file =%S.log
che ti permette di loggare per ogni condivisione e volendo vedere parecchio
sempre nella stessa sezione
log level= 3 
y.

yamabushitriste ha detto questo venerdì :

Ecco il contenuto di log.smbd:
  Unable to sync browse lists in this workgroup.
[2007/08/31 08:14:40, 0] nmbd/nmbd.c:main(699)
  Netbios nameserver version 3.0.24 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2006
[2007/08/31 08:15:29, 0] 
nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
  *****
  Samba name server SERVER is now a local master browser for workgroup 
ENERGON on subnet 192.168.1.2
  *****
[2007/08/31 08:15:29, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 08:30:42, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 08:45:50, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 09:00:57, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 09:16:02, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 09:31:02, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 09:46:11, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 10:01:03, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 10:16:13, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 10:31:13, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 10:46:21, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 11:01:24, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 11:16:23, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 11:31:28, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 11:46:32, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 12:01:40, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 12:16:45, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 12:31:47, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 12:46:52, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 13:01:58, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 13:17:00, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 13:32:04, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 13:47:11, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 14:02:14, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 14:17:17, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 14:32:26, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 14:47:30, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 15:02:39, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 15:17:41, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 15:32:45, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 15:47:47, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
[2007/08/31 16:02:51, 0] 
nmbd/nmbd_browsesync.c:find_domain_master_name_query_fail(351)
  find_domain_master_name_query_fail:
  Unable to find the Domain Master Browser name ENERGON<1b> for the 
workgroup ENERGON.
  Unable to sync browse lists in this workgroup.
Cosa ne pensi?

 Cosa ne pensi?
beh quel "Unable to find the Domain Master Browser" non sembra una bella
cosa. Non e' che per caso nell'smb.conf sezione [global] hai abilitato il
wins support? Se abiliti il wins support, magari perche' il server samba
fa anche da DHCP server, allora devi avere anche abilitato il "domain
master" e per essere sicuro pure il "preferred master" ed il "local master".
In ogni caso per file cosi' piccoli, e con quei  log, a me
sembra debba essere un problema di configurazione di samba, non un
problema di limite del protocollo smb per file di grandi dimesioni (mi
pareva ci fosse un problema con i 2 o 4 giga, ma con le versioni piu'
vecchie).
y.

Il supporto Wins mi è stato suggerito di disabilitarlo, cmq ti riporto 
l' attuale file smb.conf del server:
#======================= Global Settings =======================
[global]
	log file = /var/log/samba/log.%m
	printer = deskjet_3740
	load printers = yes
	passwd chat = *Enter\snew\sUNIX\spassword:* %n\n 
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
	obey pam restrictions = yes
	socket options = TCP_NODELAY
	encrypt passwords = true
	passdb backend = tdbsam
	passwd program = /usr/bin/passwd %u
	wins support = no
	dns proxy = no
printcap name = cups
printing = cups
cups options = "raw"
use client driver = yes
	server string = server
	invalid users = root
	path = /var/spool/samba
	workgroup = ENERGON
	os level = 127
	syslog = 0
	create mode = 777
	panic action = /usr/share/samba/panic-action %d
	max log size = 1000
	directory mode = 777
## Browsing/Identification ###
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS 
Server
   wins support = no
# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT 
both
;   wins server = w.x.y.z
#======================= Share Definitions =======================
[homes]
	comment = Home Directories
	browseable = no
	writeable = yes
	valid users = %S
	create mode = 0777
	directory mode = 0777
[printers]
	comment = All Printers
	browseable = yes
	printable = yes
	create mode = 0700
	user = cristiano,matteo,enrico
	path = /var/spool/samba
# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
[biblioteca]
	writeable = yes
	user = cristiano,matteo,enrico
	path = /home/biblioteca
[progetti]
	writeable = yes
	create mode = 777
	user = cristiano,matteo,enrico
	path = /home/progetti
	directory mode = 777
[studio]
	writeable = yes
	create mode = 777
	user = cristiano,matteo,enrico
	path = /home/studio
	directory mode = 777
[deskjet_3740]
	printable = yes
	writeable = yes
	user = enrico,matteo,cristiano
[DeskJet_1220C1]
	printer = DeskJet_1220C
	printable = yes
	writeable = yes
	user = enrico,cristiano,matteo
[backup]
	user = cristiano
	write list = cristiano
	path = /home/backup
Cosa ne pensi?

 Cosa ne pensi?
beh, non so quanto c'entri, ma la prima cosa che salta all'occhio e' che
manca l'opzione security=
Serve per dire se stiamo parlando di un server stand alone in un
workgroup, o di un server di dominio, o di un server stand alone
all'interno di un dominio gestito da un altro server windows, insomma e'
abbastanza importante. Lo devi sapere tu che opzione al security mettere,
pero' vedo che usi password backend per cui immagino faccia anche da
autenticatore per cui mi aspetterei un:
security = user
sempre nella sezione global. Ma magari puo' essere che ti interessi
solo un security=share, questo non lo so. 
Per analoghi motivi vogliamo che la lista delle macchine ce l'abbia lui e
non un client windows per cui metterei anche:
preferred master = yes
e pure
local master = yes
riavvia il demone e prova cosi'.
y.