[Samba] Slow Access
Miles Scruggs
miles.scruggs at garnetws.com
Wed Jul 14 17:39:11 GMT 2004
Before yesterday I had a perfectly (as far as I could tell) functioning PDC
with samba, roaming profiles and all. Yesterday I made some changes to the
server
1.) install dhcp3 server
2.) changed IPs from 192.168.1.50 to 192.168.1.1
3.) changed netbios name from garnet-base to garnetmain
4.) started two more interfaces eth1 (172.17.0.0/16) and eth2 (cable
internet) eth0 is still 192.168.0.0/16
5.) setup iptables to route between eth0 and eth2 so the server is also the
internet gateway (eth2 is also an internet accessible interface) . Here are
the iptables:
iptables -A FORWARD -i eth2 -o eth0 -m state --state ESTABLISHED,RELATED -j
ACCEPT
iptables -A FORWARD -i eth0 -o eth2 -j ACCEPT
iptables -A FORWARD -j LOG
iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
1.) Now my whole server is slowed right down, file transfers ftp, smb afp
are all slowed right down. There is a process called
root 3 59.6 0.0 0 0 ? R< 10:16 11:04 [events/0]
that is eating all my cpu
2.) I'm having LMB and DMB problems on the server, here is the tails from
syslog
Jul 14 10:26:43 localhost nmbd[2434]: [2004/07/14 10:26:43, 0]
nmbd/nmbd_become_lmb.c:become_local_master_stage2(396)
Jul 14 10:26:43 localhost nmbd[2434]: *****
Jul 14 10:26:43 localhost nmbd[2434]:
Jul 14 10:26:43 localhost nmbd[2434]: Samba name server GARNETMAIN is now
a local master browser for workgroup GARNET on subnet 192.168.1.1
Jul 14 10:26:43 localhost nmbd[2434]:
Jul 14 10:26:43 localhost nmbd[2434]: *****
Jul 14 10:27:04 localhost nmbd[2434]: [2004/07/14 10:27:04, 0]
nmbd/nmbd_browsesync.c:domain_master_node_status_fail(247)
Jul 14 10:27:04 localhost nmbd[2434]: domain_master_node_status_fail:
Jul 14 10:27:04 localhost nmbd[2434]: Doing a node status request to the
domain master browser
Jul 14 10:27:04 localhost nmbd[2434]: for workgroup GARNET at IP
192.168.1.50 failed.
Jul 14 10:27:04 localhost nmbd[2434]: Cannot sync browser lists.
Jul 14 10:27:45 localhost nmbd[2434]: [2004/07/14 10:27:45, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(327)
Jul 14 10:27:45 localhost nmbd[2434]: become_domain_master_browser_wins:
Jul 14 10:27:45 localhost nmbd[2434]: Attempting to become domain master
browser on workgroup GARNET, subnet UNICAST_SUBNET.
Jul 14 10:27:45 localhost nmbd[2434]: [2004/07/14 10:27:45, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(341)
Jul 14 10:27:45 localhost nmbd[2434]: become_domain_master_browser_wins:
querying WINS server from IP 192.168.1.1 for domain master browser name
GARNET<1b> on workgroup GARNET
Jul 14 10:27:46 localhost nmbd[2434]: [2004/07/14 10:27:46, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_query_success(225)
Jul 14 10:27:46 localhost nmbd[2434]: become_domain_master_query_success:
Jul 14 10:27:46 localhost nmbd[2434]: There is already a domain master
browser at IP 192.168.1.50 for workgroup GARNET registered on subnet
UNICAST_SUBNET.
Jul 14 10:32:45 localhost nmbd[2434]: [2004/07/14 10:32:45, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(327)
Jul 14 10:32:45 localhost nmbd[2434]: become_domain_master_browser_wins:
Jul 14 10:32:45 localhost nmbd[2434]: Attempting to become domain master
browser on workgroup GARNET, subnet UNICAST_SUBNET.
Jul 14 10:32:45 localhost nmbd[2434]: [2004/07/14 10:32:45, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(341)
Jul 14 10:32:45 localhost nmbd[2434]: become_domain_master_browser_wins:
querying WINS server from IP 192.168.1.1 for domain master browser name
GARNET<1b> on workgroup GARNET
Jul 14 10:32:46 localhost nmbd[2434]: [2004/07/14 10:32:46, 0]
nmbd/nmbd_become_dmb.c:become_domain_master_query_success(225)
Jul 14 10:32:46 localhost nmbd[2434]: become_domain_master_query_success:
Jul 14 10:32:46 localhost nmbd[2434]: There is already a domain master
browser at IP 192.168.1.50 for workgroup GARNET registered on subnet
UNICAST_SUBNET.
Jul 14 10:36:14 localhost nmbd[2434]: [2004/07/14 10:36:14, 0]
nmbd/nmbd_incomingdgrams.c:process_master_browser_announce(397)
Jul 14 10:36:14 localhost nmbd[2434]: process_master_browser_announce:
Local master announce made to us from DPEZDESK IP 192.168.1.198 and we are
not a domain master browser.
As you can see somehow something has kept record of 192.168.1.50, and I'm
not sure what.
3.) there are some other smb errors in the logs:
Jul 14 10:35:49 localhost smbd[3065]: [2004/07/14 10:35:49, 0]
rpc_server/srv_pipe.c:api_pipe_netsec_process(1371)
Jul 14 10:35:49 localhost smbd[3065]: failed to decode PDU
Jul 14 10:35:49 localhost smbd[3065]: [2004/07/14 10:35:49, 0]
rpc_server/srv_pipe_hnd.c:process_request_pdu(605)
Jul 14 10:35:49 localhost smbd[3065]: process_request_pdu: failed to do
schannel processing.
Not sure what to do about those.
If someone could please help me that would be great thanks.
Miles
# Global parameters
[global]
workgroup = GARNET
netbios name = GARNETMAIN
server string = G
interfaces = 192.168.1.1/16
bind interfaces only = Yes
lanman auth = No
log level = 1
log file = /var/log/samba/%m.log
min protocol = NT1
time server = Yes
change notify timeout = 300
deadtime = 15
socket options = TCP_NODELAY SO_RCVBUF=8192 IPTOS_LOWDELAY
SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
add user script = /usr/sbin/useradd -m %u
delete user script = /usr/sbin/userdel -r %u
add group script = /usr/sbin/groupadd %g
delete group script = /usr/sbin/groupdel %g
add user to group script = /usr/sbin/usermod -G %g %u
add machine script = /usr/sbin/useradd -s /bin/false -g machines -d
/dev/null -M %u
logon script = logon.bat
logon path = \\%N\profile\%U
logon drive = p:
domain logons = Yes
os level = 34
lm announce = Yes
preferred master = Yes
domain master = Yes
wins support = Yes
winbind use default domain = Yes
comment = SERVER
hosts allow = 192.168.0.0/255.255.0.0, 127.0.0.1, #EXCEPT,
192.168.0.83
hosts deny = ALL
use sendfile = Yes
printing = cups
hide unreadable = Yes
[homes]
comment = Home Directories
path = /home/%U
valid users = %S
read only = No
force create mode = 0700
force directory mode = 0700
browseable = No
[profile]
path = /home/profile
read only = No
profile acls = Yes
browseable = No
[netlogon]
comment = Network Logon Services
path = /home/netlogon
admin users = root, miles
guest ok = Yes
browseable = No
More information about the samba
mailing list