[SOLVED] Samba server stopping and starting being a local master
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Samba server stopping and starting being a local master
I have 2 server in our LAN running samba for sharing: WEBSERVER and OHPRSstorage. They trade off being the master. I don't think this is right. Below are /var/log/syslog entry from one of them. These repeat about every 12 minutes:
Code:
Apr 1 12:08:22 OHPRSstorage nmbd[1085]: [2016/04/01 12:08:22.961807, 0] ../source3/nmbd/nmbd_incomingdgrams.c:311(process_local_master_announce)
Apr 1 12:08:22 OHPRSstorage nmbd[1085]: process_local_master_announce: Server WEBSERVER at IP 192.168.0.3 is announcing itself as a local master browser for workgroup WORKGROUP and we think we are master. Forcing election.
Apr 1 12:08:22 OHPRSstorage nmbd[1085]: [2016/04/01 12:08:22.961969, 0] ../source3/nmbd/nmbd_become_lmb.c:150 (unbecome_local_master_success)
Apr 1 12:08:22 OHPRSstorage nmbd[1085]: *****
Apr 1 12:08:22 OHPRSstorage nmbd[1085]:
Apr 1 12:08:22 OHPRSstorage nmbd[1085]: Samba name server OHPRSSTORAGE has stopped being a local master browser for workgroup WORKGROUP on subnet 192.168.0.5
Apr 1 12:08:22 OHPRSstorage nmbd[1085]:
Apr 1 12:08:22 OHPRSstorage nmbd[1085]: *****
Here is the smb.conf for OHPRSstorage
Code:
[global]
netbios name = OHPRSSTORAGE
workgroup = WORKGROUP
server string = HPRS NAS server
domain master = no
prefered master = no
security = user
map to guest = Bad User
hosts allow = 192.168.0. 127.
load printers = no
printcap name = /dev/null
printing = bsd
disable spoolss = yes
guest account = ohprso
log file = /var/log/samba.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
create mask = 0660
force create mode = 0660
[oldServerD]
comment = Mainly Traverse stuff
path = /mnt/RAID/oldServerD
public = yes
guest ok = yes
guest only = yes
writeable = yes
browseable= yes
printable = no
create mask = 0660
directory mask = 0771
[public]
comment = OHPRS main file and document repository
path = /mnt/RAID/public
hide dot files = yes
map hidden = yes
hide files = /Outlook/outlook/~*/
veto oplock files = /OfficeCalendar.pst/
locking = yes
public = yes
guest ok = yes
guest only = yes
writeable = yes
browseable= yes
printable = no
create mask = 0660
force create mode = 0660
directory mask = 0771
guest ok = yes
[Backups]
comment = HPRS domain current backup respository
path = /mnt/RAID/Backups
public = yes
guest ok = yes
guest only = yes
writeable = yes
browseable= yes
printable = no
create mask = 0660
directory mask = 0771
Here is the smb.conf for WEBSERVER
Code:
[global]
netbios name = WEBSERVER
workgroup = WORKGROUP
server string = HPRS webserver Samba Server
security = user
map to guest = Bad User
hosts allow = 192.168.0. 127.
load printers = no
printcap name = /dev/null
printing = bsd
disable spoolss = yes
guest account = guest
log file = /var/log/samba.%m
max log size = 50
passdb backend = tdbsam
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
[homes]
comment = Home Directories
browseable = no
writable = yes
[website]
comment = OHPRS Website download files
path = /srv/tomcat/webapps/ohprs
public = yes
guest ok = yes
guest only = yes
writeable = yes
browseable= yes
printable = no
create mask = 0660
directory mask = 0771
[MLwebsite]
comment = Members Link Website
path = /srv/tomcat/webapps/office
public = yes
guest ok = yes
guest only = yes
writeable = yes
browseable= yes
printable = no
create mask = 0660
directory mask = 0771
[xfer]
comment = OHPRS ACH and Enrollment file transfer folder
path = /home/ohprs/xfer
public = yes
guest ok = yes
guest only = yes
writeable = yes
browseable= yes
printable = no
create mask = 0660
directory mask = 0771
It is normal. That is the way SMB/CIFS browsing elections work.
Quote:
During the startup process, an election takes place to create a local master browser (LMB) if one does not already exist. On each NetBIOS network one machine will be elected to function as the domain master browser (DMB). This domain browsing has nothing to do with MS security Domain Control. Instead, the DMB serves the role of contacting each LMB (found by asking WINS or from LMHOSTS) and exchanging browse list contents. This way every master browser will eventually obtain a complete list of all machines that are on the network. Every 11 to 15 minutes an election is held to determine which machine will be the master browser. By the nature of the election criteria used, the machine with the highest uptime, or the most senior protocol version or other criteria, will win the election as DMB.
Since samba servers have a default OS level of 20 they should beat out any desktop as master browser. It is possible to configure one of the servers as the domain master browser if desired.
Actually, I'd like the WEBSERVER host to be the master. So, just set "domain master = yes" in the [global] section?
Now, will that cause any problem with another server which is a Samba domain controller? I'm thinking not as it isn't even showing up in these log entries.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.