February 24, 201313 yr I wish to have the unRaid system act as the preferred master for master browser elections on my network. I know what I need to set in the smb-names.config file. What is the string I must add to the boot file edit.cfg in the config folder? I tried preferredMaster ="yes" but that did not do what I expected in that the parameter 'preferred master = yes' did not appear in the smb-names.config file after a boot. Please advise.
February 24, 201313 yr Don't know what version you are on but you can do this from the webGUI in recent version (not sure about older ones). Go to Settings/SMB
February 24, 201313 yr Author I am running RCA 5.0 r8 with the special features plugin. I do not see that capability in that plugin which over rides the standard web GUI. AFAIK. I am wanting to do it as a permanent change and I do not believe what you are suggesting will modify the boot image. That implies I need to do it on each reboot. I guess I need a code snippet to add to my go file but my bash skills are a bit weak. Any help appreciated.
February 24, 201313 yr Author I'm sorry I just don't see it. I see an option for local master but that is not the same as preferred master. When an SMB server is set as a local master it may act as a browse master. When it is set as the preferred master then it has a higher priority during an election for browse master which should cause it to become the browse master in preference to other SMB servers that are participating in the election. I want the Tower to be the preferred browse master as it is always on 24/7 and is my most reliable system.
February 25, 201313 yr If you really want to try this, you could add the following: /etc/rc.d/rc.samba stop sed -i '/local master = yes/a preferred master = yes' /etc/samba/smb-names.conf /etc/rc.d/rc.samba start You could also add a: os level = 255 as well to ensure that unRAID is up the top of the election chain. Ignore the above.. should always test your theories before typing eh lol.. anyways, /etc/rc.d/rc.samba appears to be what generates smb-names.conf on the fly.. so we could do this: /etc/rc.d/rc.samba stop sed -i '/echo "local master = $localMaster"/a\ echo "preferred master = yes" >>\/etc\/samba\/smb-names.conf' /etc/rc.d/rc.samba sed -i '/echo "preferred master = yes"/a\ echo "os level = 255" >>\/etc\/samba\/smb-names.conf' /etc/rc.d/rc.samba /etc/rc.d/rc.samba start I just tested this myself, as a quick "nbtstat -a" showed that my Win8 box was actually master browser. Did the above and a few minutes later: Ethernet 2: Node IpAddress: [192.168.1.159] Scope Id: [] NetBIOS Remote Machine Name Table Name Type Status --------------------------------------------- ORION <00> UNIQUE Registered ORION <03> UNIQUE Registered ORION <20> UNIQUE Registered ??__MSBROWSE__?<01> GROUP Registered WORKGROUP <1D> UNIQUE Registered WORKGROUP <1E> GROUP Registered WORKGROUP <00> GROUP Registered
February 25, 201313 yr Author I assume I could add that to my GO sccript? I am not that expert in Linux, but I get by. I'll try it and let you know Thanks
Archived
This topic is now archived and is closed to further replies.