• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Network issues with Smba on Ubuntu Server 11.10

hasu

Senior member
I am having problems with Samba on Ubuntu Server 11.10. Basically the network gets disconnected when a large file or a large number of files are copied to the server over the network. In order to do the testing I copied 100GB of backup files from a portable hard drive to my Ubuntu Samba Server over the network. I tried the following so far:

1. First it failed when I copied files from Linux Mint 11 desktop to the samba file server. When I loose the connection I cannot even ssh into the server, I had to reboot the server to bring it back online. (I did not try to just re-enable network)

2. To confirm that it is not a problem with my network switch I replaced it with another Gbit switch still the same issue.

3. Then I tried to do the same copying from a Windows 7 Home Premium and the same thing happend.

4. To rule out that it is not a problem with large number of files or external hard-drive and USB connection, I tried to copy a Virtual disk image of about 25GB from LinuxMint to the server that failed almost half way.

5. To rule out any hardware issues with any of the machines involved or the network, I installed NFS server on the Ubuntu Server and NFS client on Linux Mint and tried to copy the disk image and I could copy it successfully all the three time I tried.

Apparently something is wrong with the Samba configuration or Samba module. Is there a way to fix this? I did not change any of the parameters of Ubuntu Server installation or Samba configuration. It is pretty much default installation except that I added samba shares into the samba config file.

Even though I got the best performance with NFS about 65-70 MB/s continous), I really want to use Samba to share files because I like the smb password based security rather than IP based security.

Any help would be appreciated.

TIA
 
Try one of the problematic transfers while tailing syslog on the server machine for clues.
1. on the server:
Code:
tail -F /var/log/syslog
2. Start transfer.
3. watch the output of step 1.
4. repeat until you get the fail.

You might also consider using tail on the client as well, and/or tailing other logs if you have samba writing to other than syslog which I think is the default.

You will not be able to match the speed of nfs with samba. The latter has more cpu overhead but I think you can do a little more to nfs-server, authentication-wise. I haven't done it myself though.
 
Last edited:
Try one of the problematic transfers while tailing syslog on the server machine for clues.
1. on the server:
Code:
tail -F /var/log/syslog
2. Start transfer.
3. watch the output of step 1.
4. repeat until you get the fail.

You might also consider using tail on the client as well, and/or tailing other logs if you have samba writing to other than syslog which I think is the default.

You will not be able to match the speed of nfs with samba. The latter has more cpu overhead but I think you can do a little more to nfs-server, authentication-wise. I haven't done it myself though.

I checked logs and it looked like that the server thinks that the client terminated the connection. I remember the error was something like "could not read from the network". I will post he actual message tonight.

Thanks!
 
Back
Top