Ubuntu Networking :: File Server On 10.04 Machine - Slow Samba
May 22, 2010
I'm trying to set up a fileserver on my 10.04 machine, and access the files from Windows 7 via wifi. I can see everything alright, but the transfer speed to Windows never gets higher than 70KBps. Both computers can access the web at 800+KBps. I've also checked with an OS X machine on the same network, which was also extremely slow, so I'm fairly sure that the problem is on the server's side.
I am running Samba on a debian Lenny box on a wireless home network. I find that file transfers to the samba share are very slow. It takes over a minute to copy a 40MB file to the linux box, but only 20 seconds to copy the same file to a windows XP box on the same network.
Anyways, I could use a little direction on how to proceed with this, I'm really not sure where to start,
I have set up a file server (Ubuntu Server Edition) for our lab. People can connect to common Samba file shares from their personal laptops/desktops, which run either Windows Vista or Mac OSX. The guys with OSX have upload/download speeds of ~2 MB/s, while the Vista machines are slogging away at ~200kb/s for downloads and ~400kb/s for uploads. In both cases, the connection are through wired ethernet ports which should function identically. Since the Macs work fine on the same network, I assume this is a Vista issue.
I have tried troubleshooting one of the Vista machines by: 1. Turning off the Remove Differential Compression feature 2. Disabling autotuning following these instructions 3. Adding a registry key following the same link above.
But nothing has improved. Anybody have any advice on addition tweaks to the Vista machine? Is there a chance that this is actually a server-side/samba issue?
It takes 45min to transfer 10MB from my laptop to my replacement server. It takes 1minute to transfer the same 10MB from my laptop to the old server.
All connections are equal. Both servers are plugged to the same router.
Details: I have decided to migrate away from my Proliant 1600 to a slightly newer less complex piece of hardware.
Both machines are LAMP installs. Both are setup to be maintained headless 99% of the time and gnome is launched from the command line only when it is needed.
The older machine has more things running on it than the replacement. The replacement has nothing running that the older machine does not have.
Old box runs Ubuntu 6.06 but was fully updated a month ago. Replacement box runs Ubuntu 10.10 and was fully updated just last night.
smb.conf was the same on both boxes other than the share locations. Reading trying to fix it myself, I did put some known speedup lines into the new box's smb.conf, but it did not make a noticeable difference.
Hardware: Old box, Proliant 1600 = 1998 small server tech. (weighs 50lbs w/o drives) single 500mhz xeon (upgradable to 2 600mhz, though they are hard to find reasonably priced) 1GB SDRAM with ECC
It does not matter what share/drive/partition I transfer to on either machine. The result is always the same.
On the newer computer CPU usage rarely goes over 50% and it has not had to go into swap at all yet.
I'd like to access a samba/SSH server which itself is connected to a VPN Server, therefore acting as a VPN Client. As soon as the VPN Connection is established, samba and ssh connections to this VPN Client get a timeout. But not all of them.
To get a better understanding I made an overview. The first one is a general network overview, without any VPN Connection, the second one with the VPN Connection established.
Network Overview without VPN I can access the server in several ways: *From the router via ssh (router runs ipcop with busybox) *From the laptop via ssh (putty via Windows 7) *From the laptop via samba *From the internet via ssh (port forwarding to the ssh server)
Everything is working as it should.
Now the server that runs ssh and samba service connects to a VPN Server on the Internet, this is also working fine. Now it gets weird. The only samba/SSH connection that is still working is ssh directly from the router to the server. Everything else gets a timeout: *From the laptop via ssh (putty via Windows 7) *From the laptop via samba *From the internet via ssh (port forwarding to the ssh server) Network Overview with VPN active
Why is that? It seems from the little understanding I have of vpn and networking, that incoming packages (like samba request from the laptop) don't get send directly back over eth0 but over the vpn connection. This seems somewhat logic, BUT ssh from the router is still working. Why from the router and not from the laptop? I really can't get my head around it.
tldr; One Client acts as VPN Client and samba/SSH Server. As soon as the VPN Connection is established samba/SSH stop working, but only partially.
I had a F14 samba server working flawlessly now for a quite time. Unexpectedly about a month ago the write speed slowed down around 64kbit/s and that's really slow. I haven't changed any configs, only updated the server. I've troubleshooted this from many angles: -It is not a network issue because sftp writes are good. -It is not a RAID1 issue because write speed from another directory (locally) are good. So basically samba is the only thing left.
Here's example from smb.conf: [MyShare] comment = My share path = /mnt/RAID_share writeable = yes browseable = yes writelist = +smbuser
Here's a snip from logs today: [2011/08/04 09:04:27.509273, 1] smbd/server.c:267(remove_child_pid) Scheduled cleanup of brl and lock database after unclean shutdown [2011/08/04 09:04:47.526336, 1] smbd/server.c:240(cleanup_timeout_fn) Cleaning up brl and lock database after unclean shutdown [2011/08/04 09:17:57.634660, 1] smbd/server.c:267(remove_child_pid) Scheduled cleanup of brl and lock database after unclean shutdown [2011/08/04 09:18:17.635196, 1] smbd/server.c:240(cleanup_timeout_fn) Cleaning up brl and lock database after unclean shutdown .....
I have set samba domain. I am able to add win 7 and xp clients. All r working fine. But I have a doubt. If I shutdown the samba pdc server, I should be able to login the client machine with the same profile (which I had, when the samba pdc server was up). Now , if I shutdown the sambapdc, I am able to login the client machine, but new profile is being created. How to avoid this.
How to say to samba that the client machine should load the same profile which was created when the server was up and running. I do not want the client machines to create new a profile when the server is down bcoz in windows domain, when the windows domain is shutdown, the client machines are able to login with the same profile (the profile which was created when the domain was up). I wish to have same thing in samba pdc also.
When i try to copy files from my samba server (Ubuntu 9.10) to my windows seven media center, the speed is extremely slow. So slow that is better to download 100mb file from the internet, than from my lan. And on my lan, every card and switch is at 1000 mbps speeds on cat5 cables. And from XP or other linux machine
I try to access my ubuntu machine via my Windows Machine (Samba Server on Ubuntu Machine). Anytime I try to access the machine it asks me for my password...I enter it but it says it is invalid....is there anyway to reset it? I have already tried to remove and purge everything Samba related and then tried reinstalling, but that still didn't do anything
I have in my home 3 pc's 2 of them ubuntu, 1 windows/ubuntu. I have a NAS (mybook WD) that I'm going to hack to install a linux OS on it, to take advantage of some benefits. I'll need access from windows networks. I've read there are many benefits of NFS over Samba, with the inconvinient that it cannot be access by windows. Is it a good idea to have both NFS and samba on the file server?
I'm trying to set up an old computer that was donated to my by an aunt to hold my external hard drives and use it as a file server so i can use them from anywhere within my house. However I can not seem to get the samba server to broadcast/be seen by my ubuntu installation, nor my windows installation.
I've read the manual, to an extent, but I feel as if I am missing something. All I want is to have it to where I can just type in \server and bring up my files to access without having to worry about passwords.
Our system setup: windows server domain controller 2008 We are installed sambain Ubuntu 11.04, with ads authentication using winbind,i can able to give the access restriction from Linux for windows ADS User for linux samba share folderall are working fine from Linux,i want give the access fro domain user from MS -windows , what is the file permission owner ,etc, any one try this concept please give me a any document any example
I have a Samba file server with one windows & one Ubuntu workstation. The Ubuntu workstation is a Samba print server. The problem is that the XP machine cannot access the printer. If I restart Samba on the print server it works again. There may be a pattern but I havn't figured it out yet.
Here's my file: [global] workgroup = voodoonet netbios name = Bob name resolve order = bcast host lmhosts wins server string = map to guest = Bad User local master = yes os level = 33 usershare allow guests = Yes usershare max shares = 100 usershare owner only = False printing = cups printcap name = cups printcap cache time = 750 cups options = raw load printers = yes use client driver = yes
[printers] comment = All Printers path = /var/spool/samba printable = Yes create mask = 0700 browseable = No guest ok = Yes
[print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes read only = yes guest ok = no
I've set up a PC installed with Ubuntu 11.04 on my home network, given it the name "server" and given it a static IP of 192.168.1.200. I've created a file in the home directory called "Public" and set it to be shared with everyone, basically a chmod 0777 situation. Now, how do I connect, or map out that folder from another ubuntu 11.04 machine? I know how to do it in Windows, just hit "run" and type in "\server" and blamo, I can see everything that's shared on that machine. I can't figure out how to do this with Ubuntu.
I'm trying to share a file via Samba on a Ubuntu server that is actually stored on a FreeNAS box. The FreeNAS drives are mounted via NFS and the Samba share contains a symlink to file on the FreeNAS drive.Browsing the Samba share I can see the file and size, but any attempt to read the file fails. It complains about authentication but all credentials across all machines are the same.So, is it possible to share a file this way or is there another way to do this?I know I could create all the profiles on the FreeNAS box but for convenience and ease of maintenance I was hoping to do this via the Ubuntu server
This one has proven to be a real for me. On one of my Samba shares on my server I have a folder of mp3 files of my CDs. The one I am having an issue with is "Clarence Carter/Dr. C.C." (yes, the one with the ULTIMATE party song). The "Dr. C.C." folder name is normal locally, but across Samba it comes out "DMOU3A~H". I can still access the folder this way, but it would be nice to not have Samba mangle the folder name this way. I am using Samba 3.4.2 on an Athlon64 X2 system running Slackware64.
1. When I'm not logged into the server, only the shares are visible on my Windows computer. Clicking on the share folder displays an error message. As soon as I log in at the server, the files within the shares become accessible on the Windows box.
2. File transfers between the machines are extremely slow. Watching the system monitor, there's a brief burst of network activity followed by 10-30 seconds of nothing...on a gigabit network, the effective transfer rate is ~120kbs. There's no other network activity going on that would account for this behavior.
I have a fileserver running 10.04 server 64bit and samba. I connect it to my desktop which is 10.04 desktop 64bit.I have the server mounted on my desktop in fstab as://10.0.0.2/share /media/share cifs guest, uid= 1000.Up until 30 June 2010 it was all fine. Now when I write the server it is very slow e.g. 2Mbps though when I read I get >100Mbps so I think my network is still ok. If i use nautilus smb://10.0.0.2/share I can write at >100Mbps and also read at >100Mbps...So any ideas why the write speed via the fstab mount samba has started to go really slowly in the last couple of days?
slow interaction between Ubuntu samba and xp.I have a and Ubuntu server with samba and many xp clients, they complain because the time to open a file is to long, even to open a directori to see wich files are on it
I have configured samba server on fedora machine and i am trying to authenticate a winxp machine through samba server but the issue is winxp machine is not becoming the part of the domain. The error is A domain controller for the domain HOMEDOMAIN could not be contacted.Ensure that the domain name is typed correctly. If the name is correct, click Details for troubleshooting information.
here is the configuration file text..
# Samba config file created using SWAT # from UNKNOWN (8) # Date: 2010/01/31 18:51:36 [global] workgroup = HOMEDOMAIN server string = Samba as Domain Controller.
I'm running Mac OS on a home network that includes a Win 7 machine and a Ubuntu box (Ubuntu 11.04 (GNU/Linux 2.6.38-8-generic i686)). Connecting to, and browsing the shared drives I have on the Ubuntu box (which acts as my server) is extremely slow from the Mac, it seems that the icons especially take ages to load. I've found a few suggestions on the net that I've implemented to no avail i.e. socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536 Are there any other settings I should play with, or is there an alternative to samba that will work faster on a mixed network and be compatible with everything?
I am facing a problem which joining my linux machine to SAMBA Primary Domain Controller (Running on Centos 5). I am able to join Windows XP machine to the domain, but i have no idea how to do it on Linux Client.
I have been having off and on issues with my samba file shares. I am sharing a NTFS formated hard drive where the mount point is in my home directory, as well as a printer connected via USB. I am to the point where printing works (using it as an ipp print share, samba is configured for it, but I don't know if it works or not), and I can access the shared folder from Windows, but I can't access the shared folder from any Ubuntu machine. I get the error:
I set up a Samba server on my openSuSE 11.2 machine and I can connect to it locally with the local ip and with my actuall ip. My friend however cannot. I tried to have him ping my ip and that wouldn't even work. I'm confused and wondering why it doesn't work. We share a lot of files and this would make both of our lives much easier.
I am trying to setup my opensue 11.3 server as a pdc using openldap and samba I am continuously getting a network path not found error message on my windows xp box. I already verified that the network settings are good.
# smb.conf is the main Samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the # samba-doc package is installed. # Date: 2010-07-05 [global]
I'm setting up a PDC Samba server on centos5.4. All tasks are well done but on adding new machine in my domain I have a this error message: Error occurred when attempt to join your machine in domain "invalid user name".
samba.log Code: [2010/07/05 12:34:55, 2] smbd/sesssetup.c:setup_new_vc_session(1212) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2010/07/05 12:34:55, 2] smbd/sesssetup.c:setup_new_vc_session(1212) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2010/07/05 12:34:55, 2] auth/auth.c:check_ntlm_password(309) check_ntlm_password: authentication for user [root] -> [root] -> [root] succeeded [2010/07/05 12:34:55, 2] rpc_server/srv_samr_nt.c:_samr_lookup_domain(2919) Returning domain sid for domain RAPHAELLO -> S-1-5-21-3852106609-489253481-401883016 smb.conf .....
I think that the machine account is missed or miss matched.
I have everything networked properly, as far as I can tell, both computers see each other... I can use putty to port in and use my Linux machine (Debian 4). When I go to map network drive on my XP machine, I can see the computer, but not the shared folder. After some googling I found that i have to create my Windows user name ont he Linux machine as a user as well. Unforunately, that user is 'Administrator'. So I told Linux to force user, and it created it, and did smbpasswd command and added the user to the samba list. Still nothing.
Samba doesn't seem to disconnect on shutdown except by timing out, causing a loooong Lucid shutdown. (I can disconnect manually before shutdown by unmounting the Samba shares, and shutdown is then very fast.) Apparently Network Manager is somehow involved. I've installed a NM shutdown Samba script which works for the first user account, but not for the second user account (which was created and then put into the admin group).
I want to use samba for file sharing like on a Windows home network. Actually they are all Linux machines but nfs is too complicated. On my host machine I installed samba and system-config-samba. I created a new share for /home, check marked writable and visible and put access to everybody. For preferences-->server settings--> security the "authentication mode" is set to user, encrypt passwords is no, and guest account is no guest account. Under preferences-->samba users I added myself as a user with the same windows user name as my Linux user name and the same password.
My client is a virtualbox fedora (used for testing purposes but actual clients will be real computers on my home network). I entered the address smb://192.168.1.184. When asked for the user name and password I put my regular user name and password since that was what I set in samba users. However, the password dialog keeps coming up and won't let met into my own computer. If I quit it says something like access is denied. How can I get my home network back? I liked this feature when my home computers ran XP but I switched them to Fedora 12.