[samba] Частые падения самбы при работе с smb4k
Kharitonov A. Dmitry
=?iso-8859-1?q?kharpost_=CE=C1_rambler=2Eru?=
Вт Дек 2 22:29:16 MSK 2008
При работе с сервером через smb4k, сервер часто входит в ступор,
отказываясь принимать соединения. smb4k при этом сообщает:
Could not connect to server SERVER
Connection failed: NT_STATUS_CONNECTION_REFUSED
Перезапуск сервера восстанавливает работу.
Как избежать частых падений и возможно ли восстанавливать сервер
автоматически.
[user на SERVER ~]$ rpm -q samba
samba-3.0.31-alt1.M40.1
[user на SERVER ~]$ rpm -q samba-common
samba-common-3.0.31-alt1.M40.1
[user на eeedima ~]$ rpm -q smb4k
smb4k-0.9.3-alt1
sudo tail /var/log/samba/log.smbd
[2008/12/02 04:05:24, 10] lib/messages.c:message_dispatch(517)
message_dispatch: received_signal = 1
[2008/12/02 04:05:24, 10] lib/messages.c:message_dispatch(529)
message_dispatch: received msg_type=13 src_pid=21570
[2008/12/02 04:05:24, 10] lib/messages.c:message_dispatch(534)
message_dispatch: processing message of type 13.
[2008/12/02 04:05:24, 3] smbd/server.c:msg_exit_server(201)
got a SHUTDOWN message
[2008/12/02 04:05:24, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/12/02 04:05:24, 5] auth/auth_util.c:debug_nt_user_token(448)
NT user token: (NULL)
[2008/12/02 04:05:24, 5] auth/auth_util.c:debug_unix_user_token(474)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
[2008/12/02 04:05:24, 5] smbd/uid.c:change_to_root_user(288)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/12/02 04:05:24, 3] smbd/connection.c:yield_connection(69)
Yielding connection to
[2008/12/02 04:05:24, 3] smbd/server.c:exit_server_common(768)
Server exit (normal exit)
[user на SERVER ~]$ sudo tail /var/log/samba/log.nmbd
[2008/12/03 02:24:29, 4]
nmbd/nmbd_workgroupdb.c:find_workgroup_on_subnet(171)
find_workgroup_on_subnet: workgroup search for ALTDOMAIN on subnet
192.168.2.1: found.
[2008/12/03 02:24:29, 10]
nmbd/nmbd_sendannounce.c:announce_myself_to_domain_master_browser(372)
announce_myself_to_domain_master_browser: no unicast subnet, ignoring.
[2008/12/03 02:24:29, 4] nmbd/nmbd_workgroupdb.c:dump_workgroups(282)
dump_workgroups()
dump workgroup on subnet 192.168.2.1: netmask= 255.255.255.0:
ALTDOMAIN(1) current master browser = SERVER
SERVER 40849a03 (Samba server on SERVER (v. 3.0.31))
DIMA 40819a03 (Samba server on dima (v. 3.0.31))
sudo tail /var/log/samba/log.192.168.2.5
[2008/12/02 01:26:34, 2] smbd/reply.c:reply_special(324)
netbios connect: name1=SERVER name2=EEEDIMA
[2008/12/02 01:26:34, 2] smbd/reply.c:reply_special(331)
netbios connect: local=server remote=eeedima, name type = 0
[2008/12/02 01:26:34, 5] lib/username.c:Get_Pwnam_alloc(131)
Finding user eeedima
[2008/12/02 01:26:34, 5] lib/username.c:Get_Pwnam_internals(75)
Trying _Get_Pwnam(), username as lowercase is eeedima
[2008/12/02 01:26:34, 5] lib/username.c:Get_Pwnam_internals(93)
Trying _Get_Pwnam(), username as uppercase is EEEDIMA
[2008/12/02 01:26:34, 5] lib/username.c:Get_Pwnam_internals(102)
Checking combinations of 8 uppercase letters in eeedima
[2008/12/02 01:26:34, 5] lib/username.c:Get_Pwnam_internals(108)
Get_Pwnam_internals didn't find user [eeedima]!
[2008/12/02 01:26:37, 6] param/loadparm.c:lp_file_list_changed(3094)
lp_file_list_changed()
file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Thu
Oct 16 10:58:44 2008
[2008/12/02 01:26:37, 3] smbd/oplock.c:init_oplocks(863)
init_oplocks: initializing messages.
[2008/12/02 01:26:37, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(234)
Linux kernel oplocks enabled
[2008/12/02 01:26:37, 10]
lib/util_sock.c:read_smb_length_return_keepalive(623)
got smb length of 68
[2008/12/02 01:26:37, 3] lib/access.c:check_access(312)
check_access: no hostnames in host allow/deny list.
[2008/12/02 01:26:37, 2] lib/access.c:check_access(323)
Allowed connection from (192.168.2.5)
[2008/12/02 01:26:37, 6] smbd/process.c:process_smb(1068)
got message type 0x81 of len 0x44
[2008/12/02 01:26:37, 3] smbd/process.c:process_smb(1069)
Transaction 0 of length 72
[2008/12/02 01:26:37, 2] smbd/reply.c:reply_special(324)
netbios connect: name1=*SMBSERVER name2=EEEDIMA.ALTDOMA
[2008/12/02 01:26:37, 2] smbd/reply.c:reply_special(331)
netbios connect: local=192.168.2.1 remote=eeedima.altdoma, name type = 0
[2008/12/02 01:26:37, 5] lib/username.c:Get_Pwnam_alloc(131)
Finding user eeedima.altdoma
[2008/12/02 01:26:37, 5] lib/username.c:Get_Pwnam_internals(75)
Trying _Get_Pwnam(), username as lowercase is eeedima.altdoma
[2008/12/02 01:26:37, 5] lib/username.c:Get_Pwnam_internals(93)
Trying _Get_Pwnam(), username as uppercase is EEEDIMA.ALTDOMA
[2008/12/02 01:26:37, 5] lib/username.c:Get_Pwnam_internals(102)
Checking combinations of 8 uppercase letters in eeedima.altdoma
[2008/12/02 01:26:54, 5] lib/username.c:Get_Pwnam_internals(108)
Get_Pwnam_internals didn't find user [eeedima.altdoma]!
Подробная информация о списке рассылки Samba