Πολύ αργό samba σε etch

Antonis Christofides anthony at itia.ntua.gr
Fri Nov 16 19:26:00 EET 2007


Έχω παρόμοιο setup (Debian 4.0 με τη default samba του, XP SP2 updated
clients, δίκτυο 100 MBits εκτός από μερικούς clients που είναι στα 10
Mbits), και δεν έχω τέτοιο πρόβλημα. Επισυνάπτω το global section του
smb.conf μου, μήπως βρεις τι θα μπορούσε να είναι η διαφορά.

Αν τυχόν το πρόβλημα είναι το WINS, όπως είπε κάποιος, τότε δεν αρκεί
να βάλεις wins support = true. Πρέπει επίσης στον client να πας στα
TCP/IP properties, σε κάποια καρτέλα WINS, και να βάλεις την IP του
server σου. (Έτσι οι clients όταν προσπαθούν να πληροφορηθούν διάφορα
πράγματα για το δίκτυο ρωτάνε το server αντί να κάνουν broadcast, δεν
θυμάμαι τώρα τις λεπτομέρειες.) Αμφιβάλλω όμως ότι είναι αυτό το
πρόβλημα.

Τέλος, μια ακόμα χαζή ιδέα: μήπως έχεις firewall στο server; Πρέπει να
έχεις ανοιχτά τα ports 137, 138, 139, και 445.



[global]

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d

   workgroup = ITIA
   server string = Room 207; Itia's main server
   announce as = NT
   volume = %h

   passdb backend = ldapsam:ldap://ldap.itia.ntua.gr:389
   ldap admin dn = uid=samba,ou=daemons,dc=itia,dc=ntua,dc=gr
   ldap ssl = off
   ldap suffix = dc=itia,dc=ntua,dc=gr
   ldap user suffix = ou=people
   ldap group suffix = ou=groups
   ldap machine suffix = ou=computers
   unix password sync = no

   printing = cups
   printcap name = cups
   load printers = yes

   log file = /var/log/samba/samba-log.all
   log level = 2
   max log size = 5000
   syslog = 2

   case sensitive = no
   default case = lower
   preserve case = yes
   short preserve case = yes

   create mask = 0644
   directory mask = 0700
   map archive = no
   map hidden = no
   map system = no

   follow symlinks = yes
   wide links = yes

   locking = yes
   strict locking = no
   ; Occasionally a file is changed by a linux program (such as latex etc.
   ; that creates a ps), and its view on a client must be updated (such
   ; as a client using ghostview). oplocks = no prevents caching by the 
client.
   ; A. Christofides, 7 May 1999.
   ;    However, it appears that (after installing Debian 3.0), Delphi has a
   ; problem if oplocks = no and cannot save the project .dof file. Thus 
turning
   ; it back to on, which should also result in much better performance. The
   ; "veto oplock files" parameter can be used to refuse oplocks for specific
   ; files.
   ; A. Christofides, 20 Nov 2002.
   oplocks = yes
   level 2 oplocks = yes
   blocking locks = yes

   socket options = SO_KEEPALIVE TCP_NODELAY
   time server = yes

   encrypt passwords = true
   password level = 1
   security = user

   domain master = yes
   local master = yes
   preferred master = yes
   wins support = yes
   os level = 34

   domain logons = yes
   logon home = \\%N\%U
   logon path = C:\ProfileHack\%U
   logon script = %U.bat
   idmap gid = 1000-2000



More information about the Linux-greek-users mailing list