Summary: | Частые падения самбы при работе с smb4k | ||||||
---|---|---|---|---|---|---|---|
Product: | ALT Linux Server | Reporter: | Dmitry A. Kharitonov <kharpost> | ||||
Component: | bugs | Assignee: | Anton V. Boyarshinov <boyarsh> | ||||
Status: | NEW --- | QA Contact: | Andrey Cherepanov <cas> | ||||
Severity: | critical | ||||||
Priority: | P2 | CC: | ab, stalker, vvk | ||||
Version: | snapshot | ||||||
Hardware: | all | ||||||
OS: | Linux | ||||||
Bug Depends on: | 17341 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Created attachment 3147 [details] логи сервера При работе с сервером через smb4k, сервер часто входит в ступор, отказываясь принимать соединения. smb4k при этом сообщает: Could not connect to server SERVER Connection failed: NT_STATUS_CONNECTION_REFUSED Перезапуск сервера восстанавливает работу. Почти 100% повторяемость, если используется нетворк менеджер и перед завершением работы не размонтировать smb4k. Вэтом случае самым первым останавливается нетворк менеджер, сеть падает, а smb4k не может правильно закрыть шары. При загрузке получается сервер smb, который отказывается принимать соединения. Похоже падает сервер имён: [user@SERVER ~]$ sudo service smb status smbd is running nmbd is stopped [user@SERVER ~]$ sudo service smb restart Shutting down CIFS services: Samba server, NetBIOS over TCP/IP server [FAILED] Starting CIFS services: NetBIOS over TCP/IP server, Samba server [ DONE ] [user@SERVER ~]$ rpm -q samba samba-3.0.33-alt1.M40.1 [user@SERVER ~]$ rpm -q samba-common samba-common-3.0.33-alt1.M40.1 [user@eeedima ~]$ rpm -q smb4k smb4k-0.9.3-alt1 В качестве временного костыля в крон запихнул задание: */1 * * * * [ 2 != $(/sbin/service smb status | grep -c "is running") ] && /sbin/service smb restart [user@SERVER ~]$ sed 's/;/#/;s/^#.*//;s/[[:space:]]#.*//;/^[[:space:]]*$/D' /etc/samba/smb.conf [global] dos charset = CP866 unix charset = UTF8 display charset = LOCALE workgroup = ALTDOMAIN server string = Samba server on %h (v. %v) message command = /usr/bin/linpopup "%f" "%m" %s# rm %s printcap name = cups load printers = yes printing = cups log file = /var/log/samba/log.%m max log size = 50 log level = 10 hosts allow = 192.168.2. 127. guest account = nobody security = share usershare allow guests = yes password level = 8 username level = 8 encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd socket options = TCP_NODELAY interfaces = lan local master = yes os level = 254 preferred master = yes name resolve order = wins lmhosts bcast dns proxy = no preserve case = yes short preserve case = yes case sensitive = no [work] comment = This is work storage path = /var/pub/work guest ok = yes only guest = yes public = yes writable = yes printable = no create mask = 0777 directory mask = 0777 force create mode = 0777 force directory mode = 0777 [backup] comment = This is backup storage path = /var/pub/backup guest ok = yes only guest = yes public = yes writable = yes printable = no create mask = 0777 directory mask = 0777 force create mode = 0777 force directory mode = 0777 [bigbackup] comment = This is backup storage path = /var/pub/bigbackup guest ok = yes only guest = yes public = yes writable = yes printable = no create mask = 0777 directory mask = 0777 force create mode = 0777 force directory mode = 0777 [torrent] comment = This is backup storage path = /var/pub/torrent guest ok = yes only guest = yes public = yes writable = yes printable = no create mask = 0777 directory mask = 0777 force create mode = 0777 force directory mode = 0777