Jump to content

Teaming with FreeNAS

Hi everyone, 

im running a FreeNAS server (i5-2400, 14gb ram, 4x500gb raidz1, 3x2tb raid z2, old lsi sas hba) which i want to acces from my desktop (i7-6700k, 16gb ram, 960 evo) with more than gigabit speeds. I purchased some 2 port intel nics of ebay and have a mangaed 8 port tp-linkTL-SG2008 switch even though with an other windows machine i can use the bandwith i was not able to set freenas up to do so. And I was wondering wether there is an option to get better speeds with my hardware.

Help is greatly appreciated

Link to comment
Share on other sites

Link to post
Share on other sites

If you don't set up the teaming/lacp/trunking in windows and the switch, windows will use SMB multipath. something that in this use case is superior to lacp since it can be use in a 1on1  connection.

This means that all interfaces work with their standard configuration (get ip addresses etc) and windows figures everything else out.

 

Problem is, that multipath is not yet final in SAMBA -> no mulitpath on unix systems. So you are left with trunkint/lacp on freenas, which does not really help you with only one server and a client, or switching to a windows solution for your server till SAMBA gets multipath.

Link to comment
Share on other sites

Link to post
Share on other sites

So you are basically saying that with freenas i can not get speeds> 1gb with this hardware and my options for better speeds are using windows on the server, waiting 2 years for mulipath on SAMBA or getting faster nics. 

Would there be any option to get multipath working on freenas

 

Link to comment
Share on other sites

Link to post
Share on other sites

As far as i know, there is no way to get multipath on freenas right now. But it was a few months ago when i checked and then the newest SAMBA version had it in as BETA function (that didn't really work yet). So i dunno if they accomplished anything major yet.

 

With teaming you would be able to get 1gbps+ speeds, too. But only on the server side and with multiple user. It basically still uses only one interface when sending one stream to a destination. So if you got 2 destinations, it could send streams on both interfaces and so reach 1gpbs+. 

 

EDIT: Sorry, i just noticed, i meant MULTICHANNEL not multipath.

Link to comment
Share on other sites

Link to post
Share on other sites

consider just grabbing some some cheap 10gb network cards (if you want RG-45 asus has some new for 100$ each or if you go used you can find older standers for cheaper) and run direct attach it is a lot less work to set up 

 

Good luck, Have fun, Build PC, and have a last gen console for use once a year. I should answer most of the time between 9 to 3 PST

NightHawk 3.0: R7 5700x @, B550A vision D, H105, 2x32gb Oloy 3600, Sapphire RX 6700XT  Nitro+, Corsair RM750X, 500 gb 850 evo, 2tb rocket and 5tb Toshiba x300, 2x 6TB WD Black W10 all in a 750D airflow.
GF PC: (nighthawk 2.0): R7 2700x, B450m vision D, 4x8gb Geli 2933, Strix GTX970, CX650M RGB, Obsidian 350D

Skunkworks: R5 3500U, 16gb, 500gb Adata XPG 6000 lite, Vega 8. HP probook G455R G6 Ubuntu 20. LTS

Condor (MC server): 6600K, z170m plus, 16gb corsair vengeance LPX, samsung 750 evo, EVGA BR 450.

Spirt  (NAS) ASUS Z9PR-D12, 2x E5 2620V2, 8x4gb, 24 3tb HDD. F80 800gb cache, trueNAS, 2x12disk raid Z3 stripped

PSU Tier List      Motherboard Tier List     SSD Tier List     How to get PC parts cheap    HP probook 445R G6 review

 

"Stupidity is like trying to find a limit of a constant. You are never truly smart in something, just less stupid."

Camera Gear: X-S10, 16-80 F4, 60D, 24-105 F4, 50mm F1.4, Helios44-m, 2 Cos-11D lavs

Link to comment
Share on other sites

Link to post
Share on other sites

I considered the the 10g option but the asus cards are about 110€ and then i would need about 30m of cat7 which would come to an extimated cost of 250€ which is a bit to musch imo. 

I did however find that mulipath is included in samba 4.4.0 which would mean i would have to update samba on the freenas server because it is currently on version 4.3.11 however this is quiet hard especially since i dont have a lot of experiece with freebsd.

It would be nice if anybody with some experience could help me with that or if anybody knows whether freenas 11 has the right version of samba

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, Thorn57 said:

I considered the the 10g option but the asus cards are about 110€ and then i would need about 30m of cat7 which would come to an extimated cost of 250€ which is a bit to musch imo. 

I did however find that mulipath is included in samba 4.4.0 which would mean i would have to update samba on the freenas server because it is currently on version 4.3.11 however this is quiet hard especially since i dont have a lot of experiece with freebsd.

It would be nice if anybody with some experience could help me with that or if anybody knows whether freenas 11 has the right version of samba

Cat 6a would work fine for 10GB

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Thorn57 said:

I did however find that mulipath is included in samba 4.4.0 which would mean i would have to update samba on the freenas server because it is currently on version 4.3.11 however this is quiet hard especially since i dont have a lot of experiece with freebsd.

It would be nice if anybody with some experience could help me with that or if anybody knows whether freenas 11 has the right version of samba

 

I just checked on my 11.0-U2 test VM and it has "Samba version 4.6.4-GIT-a4e6101" installed.

Then googled around a bit and came across this post on reddit: 

So it seems that even tho the feature is still experimental, it seems to be doable. just make sure not to use it in critical environments.

 

I will try setting up a test-system later next week and see if it works with Freenas 11.

 

Link to comment
Share on other sites

Link to post
Share on other sites

Wow, thanks very much im going to update to freenas 11 and give it a try. Its hopefully gonna be uch easier than using the comandline to try and update samba. 

Thank you for finding that reddit post

Link to comment
Share on other sites

Link to post
Share on other sites

Well I got to the part where I have the faster transferspeeds one way but now i dont konw where and how to add the routes. Sorry for being a noob

Link to comment
Share on other sites

Link to post
Share on other sites

ok, i got curious and tried it out myself.

 

 test.JPG.fa48baf8568095c0aef3ece56f67a429.JPG

 

if you can send faster already, the step left is only to add the static routes.

I normally do not use FreeBSD, so if someone spot something that could be done a better way, please leave a comment.

 

on my windows side it looked like this:

 

int.JPG.6d01fcc9074ed58a600760463fd69670.JPG

 

And on my server side 192.168.178.89 is em0 and .93 is em1

so i enabled ssh on my freenas box and typed in the following:

 

root@freenas:~ # route add -host 192.168.178.25 -interface em0

root@freenas:~ # route add -host 192.168.178.46 -interface em1

 

that got me a routing table like this:

 

root@freenas:~ # netstat -rn
Routing tables

Internet:
Destination          Gateway                           Flags     Netif Expire
default                  192.168.178.1                 UGS         em0
127.0.0.1                 link#3                            UH          lo0
192.168.178.0/24   link#1                           U           em0
192.168.178.25     00:0c:29:48:0d:5f          UHS         em0
192.168.178.46     00:0c:29:48:0d:69            UHS         em1
192.168.178.89     link#1                          UHS         lo0
192.168.178.93     link#2                           UHS         lo0
 

and with that it worked for me.

 

I THINK that those entries will be gone after a reboot, so yeah.. need to look into that when i implement it on my main server.

i guess you could make a small script that writes those lines after boot.. or i think in freeBSD you write them in /etc/rc.conf so they survive a reboot - but I'm not sure about what kind of format the file requires.

 

Link to comment
Share on other sites

Link to post
Share on other sites

For now it is working I got 350MB/s testing with crystal diskmark which is probaply the best the spinning rust in the server can do and it's fine for me. I hope it's not going to break.

I feel like this infromation should be on the freenas homepage because this is by far the best method of increasing transfer speeds with a homeserver.

Thanks very much for your help. 

 

PS.: Lustig dass der erste den man hier trift auch deutsch ist.

Edited by Thorn57
Link to comment
Share on other sites

Link to post
Share on other sites

  • 2 months later...

Sorry for reviving this thread but i have an issue relating to this. So I had some trouble with internet connectivity which lead my to resetting the nics. Now after getting everything back up i couldn't connect to the freenas box using my main pc. However when i dont have the routes configured, that are needed for smb multichannel on freenas i can connect to the freenas server. So now i m wondering what i did wrong and how i can have smb multichannel working again

Link to comment
Share on other sites

Link to post
Share on other sites

I found the issue: static lag on the switch

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×