Posted: Tue Jan 03, 2012 1:51 Post subject: Samba 3.6.1 and Clustered Samba with CTDB
I am in the process of installing optware and samba on a couple unused routers with 2tb external usb harddrives on my home network following these directions
My plan had been to rsync the data between the routers to automatically create live backups. But CTDB might give the the same functionality and faster access time.
Thanks for insight. I did what you suggested and uninstalled the version of samaba already installed and installed samba36 and samba36-swat it all worked like a charm. My windows7 machine is able to browse and map network drives on the samba share.
The only problem I'm having is my Windows2003 server can't do the same. The router comes up under Windows Explorer but when I try and browse it it error with
My Network Places
\\Backrouter is not accessible. You might not have permission to use this network resource. Contact the adminstrator of this server to find out if you have access permissions.
The specified network name is no longer available.
I'm also seeing lots of faults in the samba log. I'll post my config and the log files soon
Here is the global section of my smb.conf which may help you get rid of the character set errors.
Important: Keep in mind this is for my Samba 3.5.8 config.
[GLOBAL]
unix charset = ISO-8859-1
display charset = ISO-8859-1
netbios name = SAMBA-DRIVE
netbios aliases = SAMBA-DRIVE
server string = SAMBA-DRIVE
interfaces = 192.168.20.1/24
workgroup = WORKGROUP
security = SHARE
os level = 10
ntlm auth = No
log file = /opt/var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=262144 SO_SNDBUF=262144
load printers = No
printcap name = /dev/null
preferred master = Yes #(if you have a WS2003, this should be commented out because most likely it is the preferred master)
domain master = Yes #(if you have a WS2003, this should be commented out because most likely it is the domain master)
dns proxy = No
wins support = Yes
remote announce = 192.168.20.255
remote browse sync = 192.168.20.255
hosts allow = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, 127.0.0.0/8
use sendfile = Yes
oplocks = No
[HOME]
path = /mnt/share
valid users = www-data, nobody, root
force user = root
read only = No
create mask = 0765
guest ok = Yes
fstype = ext2 #(optional, needs to be consistent with your disk fs type)
[MEDIA]
path = /mnt/media
valid users = www-data, nobody, root
force user = root
read only = No
create mask = 0765
guest ok = Yes
fstype = ext2
Actually your main problem might be coming from a WINS conflict ("wins support = yes"). If you have a WS2003/2008 on your network configured as PDC/DMB you already have a WINS server running and setting samba as a WINS server is suboptimal to say the least. Also with "os level = 10" might render preferred master and domain master settings unusable (default is 65).
Posted: Mon Jul 16, 2012 17:37 Post subject: belated thanks
I was finally able to spend some time looking into this problem. It turned out to be a WINS problem. Ultimately, I installed the WINS server on the windows 2003 server and made the configuration changes suggested by Hadji. Now I am able to browse the contents of the Samba drive from the windows 2003 server.
i have a dumb question that can;t seem to figure out but maybe you can tell me easily. how do you enable SWAT to configure the server via web page. I have been using the NAS tab and seems to work.
I am sure I have SWAT installed but can;t seem to browse to http://ipadress:901
Xinetd - A replacement for inetd, the internet services daemon. Controls user defined network services such as printing and SWAT (Samba Web Administration Tool) http://www.xinetd.org/
Quote:
service xinetd on
service xinetd start
This service MUST be enabled for services such as Network Printing, SWAT (web admin/config for samba) and OpenVPN