[Samba-it] Performance SAMBA

Luigi M. V. luigi at dynamica.it
Tue Jan 14 15:02:01 MST 2003


> 
> già :-)
> ma solo se sono scrivibili, per le share in read-only i lock si possono
> anche disabilitare :-)
> 
> > > Si se li configuri uno a uno per fare capo al wins server invece che
> > > fare broadcast (comunque un po' di broadcast permane).
> > 
> > fatto , quindi quello che vedo e' il "po'" che permane (alla faccia!!!)
> 
> mi sa che il broadcast che vedi è dovuto a un problemino che mi pare di
> scorgere nel file di conf :-)

quale ?

> >         security = domain
> 
> ok qui vedo il primo problema, dal resto del file mi pare di capire che
> questo server faccia da PDC, in quel caso security dovrebbe essere user.
> domain si usa quando si è membri di dominio.

ok, era user ma era una prova ...

> 
> > 	workgroup = WORKGROUP
> > 	netbios name = CLUSTER
> > 	server string = pL (file and print server)
> > 
> > 	syslog only = no
> > 	syslog = 3
> > 	log level = 1
> > 	socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
> 
> IPTOS_LOWDELAY ... non lo uso mai come mai l'hai messo?

perche' lo riporta anche il tutorial IBM "Using Samba as a PDC", in
realta' non mi ricrdo nemmeno cosa voglia dire ;P


> > 	unix password sync = no 
> > 	passwd program = /usr/bin/passwd pu
> > 	passwd chat = *Enter\snew\sUNIX\spassword:* pn\n *Retype\snew\sUNIX\spassword:* pn\n .
> 
> se unix password sync è no, le altre due direttive sono inutili

ok ma cosi' se voglio sincrinizzarle devo solo cambiare 
"unix password sync = no " ... 

> > 	path = /etcvar/var/samba/ntprofiles
> > 	read only = no
> > 	writeable = yes
> queste due direttive sono la stessa cosa :-)

oops


> > [printers]
> >    comment = All Printers
> >    browseable = yes
> 

> questa non dovrebbe essere browsable

ma se non lo e' non e' che non vedo la lista delle stampanti
disponibili (dai client windows ??)

> 
> >    path = /tmp
> >    printable = yes
> >    public = no
> >    writable = no
> printable è già suffciente

ok

> si oltre il livello 2 si usa solo quando si vuol fare debugging.
> ad una scorsa veloce non vedo nulla di particolare, che versione di
> samba usi? e con che client?

2.2.3a

> Se usi 2.2.3a ti consiglio vivamente di provare 2.2.7a (ci sono
> pacchetti deb disponibili su samba.org) prima di fare altre prove, ci
> sono state diverse correzioni che riguardano anche la velocità di
> trasferimento dei file oltre a vari altri fix.

mmm prima pero' con la stessa versione funzionava bene... il 2.2.7a
non e' in debian/stable ... preferirei evitare....
 
> Direi che se non troviamo altra via passiamo all'analisi dei log, non è
> per nulla normale che samba sia più lento di un server NT/w2k, in tutti
> i test samba batte sempre w2k :-)

ok, abilito il livello 2 ... :

LOG.SMBD:
   INFO: Debug class all level = 2   (pid 19427 from pid 19427)
UTENTE1 opened file APP/arc/CLIZMC read=Yes write=Yes (numopen=10)
[2003/01/14 12:35:18, 2] smbd/open.c:open_file(216)
  UTENTE1 opened file APP/arc-gal/artzmc read=Yes write=Yes (numopen=11)
[2003/01/14 12:35:18, 2] smbd/open.c:open_file(216)
  UTENTE1 opened file APP/arc-gal/magzmc read=Yes write=Yes (numopen=12)
[2003/01/14 12:35:18, 2] smbd/open.c:open_file(216)
  UTENTE1 opened file APP/arc/OCRZMC read=Yes write=Yes (numopen=13)
[2003/01/14 12:35:18, 2] smbd/open.c:open_file(216)
  UTENTE1 opened file APP/arc/octzmc read=Yes write=Yes (numopen=14)
[2003/01/14 12:35:18, 2] smbd/open.c:open_file(216)
  UTENTE1 opened file APP/arc/DIT read=Yes write=Yes (numopen=15)
[2003/01/14 12:35:18, 2] smbd/open.c:open_file(216)
  UTENTE1 opened file APP/arc-gal/TBL read=Yes write=No (numopen=16)
[2003/01/14 12:35:24, 2] lib/access.c:check_access(321)
  Allowed connection from  (192.168.2.131)
[2003/01/14 12:35:24, 2] smbd/reply.c:reply_special(92)
  netbios connect: name1=CLUSTER          name2=PC31
[2003/01/14 12:35:24, 2] smbd/reply.c:reply_special(111)
  netbios connect: local=cluster remote=pc31
[2003/01/14 12:35:24, 2] smbd/reply.c:reply_sesssetup_and_X(972)
  Defaulting to Lanman password for UTENTE2
[2003/01/14 12:35:24, 1] lib/util_sock.c:get_socket_name(962)
  Gethostbyaddr failed for 192.168.2.131
[2003/01/14 12:35:24, 2] lib/access.c:check_access(321)
  Allowed connection from  (192.168.2.131)
[2003/01/14 12:35:24, 2] lib/access.c:check_access(321)
  Allowed connection from  (192.168.2.131)
[2003/01/14 12:35:24, 1] smbd/service.c:make_connection(615)
  pc31 (192.168.2.131) connect to service netlogon as user UTENTE2 (uid=1047, gid=
1047) (pid 25314)
[2003/01/14 12:35:26, 2] smbd/close.c:close_normal_file(212)
  UTENTE2 closed file UTENTE2.bat (numopen=1)
....
....
[2003/01/14 12:35:35, 1] smbd/ipc.c:api_fd_reply(292)
  api_fd_reply: INVALID PIPE HANDLE: 729d
[2003/01/14 12:35:35, 2] rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(2
45)
  find_printer_index_by_hnd: Printer handle not found: find_printer_index_by_hnd
: Printer handle not found: close_printer_handle: Invalid handle (OTHER:20172:22
825)
[2003/01/14 12:35:35, 2] rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(2
45)
  find_printer_index_by_hnd: Printer handle not found: find_printer_index_by_hnd
: Printer handle not found: close_printer_handle: Invalid handle (OTHER:20172:22
825)
[2003/01/14 12:35:35, 2] rpc_server/srv_spoolss_nt.c:find_printer_index_by_hnd(2
45)
  find_printer_index_by_hnd: Printer handle not found: find_printer_index_by_hnd
: Printer handle not found: close_printer_handle: Invalid handle (OTHER:20172:22
825)
[2003/01/14 12:35:44, 1] lib/debug.c:debug_message(250)
....
...
[2003/01/14 12:35:52, 1] smbd/service.c:make_connection(615)
  pc23 (192.168.2.123) connect to service profiles as user UTENTE3 (uid=1030,
 gid=1030) (pid 22825)
[2003/01/14 12:35:55, 2] lib/access.c:check_access(321)
  Allowed connection from  (192.168.2.123)
[2003/01/14 12:35:55, 2] lib/access.c:check_access(321)
  Allowed connection from  (192.168.2.123)
[2003/01/14 12:35:55, 1] smbd/service.c:make_connection(615)
  pc23 (192.168.2.123) connect to service profiles as user UTENTE3 (uid=1030,
 gid=1030) (pid 22825)
[2003/01/14 12:35:57, 2] smbd/open.c:open_file(216)
  UTENTE3 opened file UTENTE3/NTUSER.DAT read=Yes write=No (numopen=1)
[2003/01/14 12:35:57, 2] smbd/close.c:close_normal_file(212)
  UTENTE3 closed file UTENTE3/NTUSER.DAT (numopen=0)
[2003/01/14 12:35:57, 2] smbd/open.c:open_file(216)
  UTENTE3 opened file UTENTE3/prf8.tmp read=Yes write=No (numopen=1)
[2003/01/14 12:35:57, 2] smbd/close.c:close_normal_file(212)
  UTENTE3 closed file UTENTE3/prf8.tmp (numopen=0)
[2003/01/14 12:35:57, 2] smbd/open.c:open_file(216)
  UTENTE3 opened file UTENTE3/prf8.tmp read=Yes write=Yes (numopen=1)
[2003/01/14 12:35:58, 2] smbd/close.c:close_normal_file(212)
  UTENTE3 closed file UTENTE3/prf8.tmp (numopen=0)
[2003/01/14 12:35:58, 2] smbd/open.c:open_file(216)
  UTENTE3 opened file UTENTE3/prf8.tmp read=No write=Yes (numopen=1)

end smbd.
Ho cercato di riportare solo le parti significative, il resto e' tutto
uguale...

LOG.NMBD

 Samba name server CLUSTER is now a local master browser for workgroup WORKGROUP on
 subnet 192.168.2.2

  *****

[2003/01/14 10:38:25, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 192.168.2.123: code = 0x12
[2003/01/14 10:57:04, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 192.168.2.254: code = 0x12
[2003/01/14 10:57:04, 1] nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 192.168.2.254: code = 0x12
....
....
e' tutto uguale !!!



ho notato, se puo' aiutarti che smbclient non funziona!!!!! :

xxxxx:/var/log/samba# smbclient '\\CLUSTER\UTENTE1%UTENTE1'
added interface ip=192.168.2.2 bcast=192.168.2.255 nmask=255.255.255.0
Password:
session setup failed: NT_STATUS_LOGON_FAILURE

e che se provo nblookup :
nmblookup -M -
querying __MSBROWSE__ on 192.168.2.255
192.168.2.5 __MSBROWSE__<01>  AAAAARGGGGGGG COS"E? ???? 
192.168.2.2 __MSBROWSE__<01>


il 192.168.2.5 non ho idea di cosa sia so solo che NON dovrebbe eserci.
indaghero' ! Quanto dici che possa influire 'sta cosa?
..continuiamo...
nmblookup -B CLUSTER pc22
querying pc22 on 192.168.2.10
name_query failed to find name pc22


....... sob sob sob
> Simo.
> 
> -- 
> Simo Sorce - simo.sorceOxsec.it
> Xsec s.r.l.
> via Durando 10 Ed. G - 20158 - Milano
> tel. +39 02 2399 7130 - fax: +39 02 700 442 399



-- 
##################################################################
"Don't take the name of the root in vain"

Dynamica Software Factory  via G.Sidoli,7 20129 - Milano  -Italy-
WEB: http://www.dynamica.it Tel:+39 2 70124402 Fax: +39 2 70120357
 



More information about the samba-it mailing list