LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-01-2016, 12:38 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,587

Rep: Reputation: 179Reputation: 179
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
What's the problem?

Last edited by mfoley; 04-01-2016 at 12:40 PM.
 
Old 04-01-2016, 03:13 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
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.
 
Old 04-02-2016, 11:38 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,587

Original Poster
Rep: Reputation: 179Reputation: 179
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.
 
Old 04-03-2016, 05:42 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,760

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
The below should do it.

domain master = yes
preferred master = yes
os level = 35
 
1 members found this post helpful.
Old 04-07-2016, 11:55 PM   #5
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,587

Original Poster
Rep: Reputation: 179Reputation: 179
Quote:
Originally Posted by michaelk View Post
The below should do it.

domain master = yes
preferred master = yes
os level = 35
Interestingly, this is not working. See syslog below from the host OHPRSSTORAGE, which has samba settings:

domain master = no
prefered master = no

While host WEBSERVER has the settings shown in your example. Both machines have been rebooted and samba restarted.

Ideas?

Code:
Apr  8 00:45:33 OHPRSstorage nmbd[1077]: [2016/04/08 00:45:33.867457,  0] ../source3/nmbd/nmbd_incomingdgrams.c:311(process_local_master_announce)
Apr  8 00:45:33 OHPRSstorage nmbd[1077]:   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  8 00:45:33 OHPRSstorage nmbd[1077]: [2016/04/08 00:45:33.867580,  0] ../source3/nmbd/nmbd_become_lmb.c:150(unbecome_local_master_success)
Apr  8 00:45:33 OHPRSstorage nmbd[1077]:   *****
Apr  8 00:45:33 OHPRSstorage nmbd[1077]:
Apr  8 00:45:33 OHPRSstorage nmbd[1077]:   Samba name server OHPRSSTORAGE has stopped being a local master browser for workgroup WORKGROUP on subnet 192.168.0.5
Apr  8 00:45:33 OHPRSstorage nmbd[1077]:
Apr  8 00:45:33 OHPRSstorage nmbd[1077]:   *****
Apr  8 00:45:51 OHPRSstorage nmbd[1077]: [2016/04/08 00:45:51.894131,  0] ../source3/nmbd/nmbd_become_lmb.c:397(become_local_master_stage2)
Apr  8 00:45:51 OHPRSstorage nmbd[1077]:   *****
Apr  8 00:45:51 OHPRSstorage nmbd[1077]:
Apr  8 00:45:51 OHPRSstorage nmbd[1077]:   Samba name server OHPRSSTORAGE is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.5
Apr  8 00:45:51 OHPRSstorage nmbd[1077]:
Apr  8 00:45:51 OHPRSstorage nmbd[1077]:   *****
 
  


Reply

Tags
master mode, samba



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mirroring my local master server contents to another server located at remote site raasips Linux - Newbie 3 02-04-2010 07:41 PM
ntp server repeatedly stopping/starting Curtor Linux - Software 1 07-20-2009 09:56 AM
slackware commands (stopping samba from starting automatically, etc) fyr3 Slackware 6 06-24-2007 08:21 PM
Stopping X server from starting up Graham_UK Fedora 4 04-19-2005 02:39 PM
Samba name server xx has stopped being a local master browser for workgroup xx saavik Linux - Networking 1 06-14-2004 07:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration