[Samba 3.0] Rare foutmeldingen in /var/log/messages

Pagina: 1
Acties:
  • 119 views sinds 30-01-2008
  • Reageer

  • Nitroglycerine
  • Registratie: Januari 2002
  • Laatst online: 22:09

Nitroglycerine

Autisme: belemmering en kracht

Topicstarter
In mijn netwerkje heb ik voor centrale dataopslag een pc met fedora core 2 ingericht, en met behulp van samba deel ik de data op de fileserver met de rest van het netwerk. Dit gaat prima, beide pc's kunnen bij alle data met de juiste rechten, alleen kom ik wat aparte foutmeldingen tegen in /var/log/messages. Nu vraag ik me af of ik hier aandacht aan moet besteden, aangezien het werkt, maar toch wil ik het zekere voor het onzekere hebben en daarom vraag ik jullie advies.
Ik heb de verschillende zoektochten al uitgevoerd, google and GoT search, en daar krijg ik verschillende hits met verschillende mogelijke oorzaken. De pagina's die in een taal geschreven zijn die ik kan lezen heb ik aandachtig doorgenomen, en oplossingen die aangedragen worden uitgeprobeerd, maar niets heeft de foutmeldingen weg laten gaan.

Allereerst de foutmeldingen:
code:
1
2
3
4
Feb  6 02:37:39 fileserver smbd[1926]: [2005/02/06 02:37:39, 0] lib/util_sock.c:get_peer_addr(975)
Feb  6 02:37:39 fileserver smbd[1926]:   getpeername failed. Error was Overdrachtseindpunt is niet verbonden
Feb  6 02:37:39 fileserver smbd[1926]: [2005/02/06 02:37:39, 0] lib/util_sock.c:read_socket_data(365)
Feb  6 02:37:39 fileserver smbd[1926]:   read_socket_data: recv failure for 4. Error = Verbinding door partner opnieuw ingesteld

deze meldingen komen ongeveer iedere 32 minuten terug.

De output van het commando findsmb -r <ipadres> geeft de volgende output:
code:
1
2
3
4
5
6
7
[root@fileserver root]# findsmb -r 192.168.0.20

                                *=DMB
                                +=LMB
IP ADDR         NETBIOS NAME     WORKGROUP/OS/VERSION -B 192.168.0.20
---------------------------------------------------------------------
192.168.0.20    FILESERVER    +[THUISWERKGROEP] [Unix] [Samba 3.0.3-5]

De werkgroep is dezelfde als ik op de XP machines gebruik.

Om te voorkomen dat iemand om de smb.conf gaat vragen:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
        workgroup = Thuiswerkgroep

# server string is the equivalent of the NT Description field
        server string = Fileserver

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
        printcap name = /etc/printcap
        load printers = no

# this tells Samba to use a separate log file for each machine
# that connects
        log file = /var/log/samba/%m.log

# Put a capping on the size of the log files (in Kb).
        max log size = 1000

# Security mode. Most people will want user level security. See
# security_level.txt for details.
# Use password server option only with security = server
;   password server = <NT-Server-Name>

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
;  password level = 8
;  username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
;  encrypt passwords = yes
;  smb passwd file = /etc/samba/smbpasswd

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
#        the encrypted SMB passwords. They allow the Unix password
#        to be kept in sync with the SMB password.
;  unix password sync = Yes
;  passwd program = /usr/bin/passwd %u
;  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

# Unix users can map to different SMB User names
;  username map = /etc/samba/smbusers

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /etc/samba/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces = 192.168.12.2/24 192.168.13.2/24

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
;   local master = no

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
;   os level = 33

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
;   domain master = yes

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
;   preferred master = yes

# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.
;   domain logons = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
;   logon script = %m.bat
# run a specific logon batch file per username
;   logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
#        %L substitutes for this servers netbios name, %U is username
#        You must uncomment the [Profiles] share below
;   logon path = \\%L\Profiles\%U

# All NetBIOS names must be resolved to IP Addresses
# 'Name Resolve Order' allows the named resolution mechanism to be specified
# the default order is "host lmhosts wins bcast". "host" means use the unix
# system gethostbyname() function call that will use either /etc/hosts OR
# DNS or NIS depending on the settings of /etc/host.config, /etc/nsswitch.conf
# and the /etc/resolv.conf file. "host" therefore is system configuration
# dependant. This parameter is most often of use to prevent DNS lookups
# in order to resolve NetBIOS names to IP Addresses. Use with care!
# The example below excludes use of name resolution for machines that are NOT
# on the local network segment
# - OR - are not deliberately to be known via lmhosts or via WINS.
; name resolve order = wins lmhosts bcast

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
;   wins support = yes

# 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

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one  WINS Server on the network. The default is NO.
;   wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
        dns proxy = no

# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
;  preserve case = no
;  short preserve case = no
# Default case is normally upper case for all DOS files
;  default case = lower
# Be very careful with case sensitivity - it can break things!
;  case sensitive = no

#============================ Share Definitions ==============================
        idmap uid = 16777216-33554431
        idmap gid = 16777216-33554431
        template shell = /bin/false
        username map = /etc/samba/smbusers
        password server = None
        winbind use default domain = no

[films]
        comment = Films
        path = /samba/films
        guest ok = no

[filminput]
        comment = Nieuwe films
        path = /input/Films/input
        writeable = yes
        guest ok = no

[muziekinput]
        comment = Nieuwe muziek
        path = /input/Muziek/input
        writeable = yes
        guest ok = no

[muziek]
        comment = Muziek
        path = /samba/muziek
        guest ok = no

[muziekedit]
        comment = Muziek
        path = /samba/muziek
        writeable = yes
        guest ok = no

[data]
        comment = Data
        path = /samba/data/share
        writeable = yes
        guest ok = no

Hier kon uw advertentie staan


  • Spearhead
  • Registratie: November 2001
  • Laatst online: 14-08-2025
Die onderste melding die je post heb ik zelf ook met enige regelmaat in de logs staan, maar daar heb ik nooit wat over kunnen ontdekken.
De bovenste melding doet vermoeden dat er iets niet goed gaat qua link tussen ip adres, dns naam en netbios naam. Wat ik zou doen is eerst eens nakijken of op alle systemen dns goed werkt. Staan alle systemen in DNS met zowel een forward als een reverse entry ? Als je geen lokale DNS gebruikt, heb je ze dan op alle systemen in /etc/hosts gezet ?
Als dat alles goed gaat, dan zou je eens na kunnen kijken het netbios name gebeuren goed staat. Je moet dan eens kijken naar 'name resolve order' in de smb.conf. Als daar in staat dat je wins gebruikt, dan moet er op je netwerk een wins server aktief zijn (of je laat samba dat doen door 'wins support' aan te zetten). Ook moet je op alle Windows werkstations dan je wins server bekend maken. Het alternatief is om geen wins te gebruiken, maar dan moet je dat wellicht expliciet uitzetten in de smb.conf
Ik hoop dat je hier wat mee kunt, en anders horen we het wel :)

  • Nitroglycerine
  • Registratie: Januari 2002
  • Laatst online: 22:09

Nitroglycerine

Autisme: belemmering en kracht

Topicstarter
Merci, ik ga ermee aan de slag.

Hier kon uw advertentie staan