Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a small home network with several Linux boxes and several windows boxes.
I was planning on setting up NFS for the linux boxes and was wondering if I should use Samba or the new NFS tools (free download as of Thursday) from MS for the windows clients.
All recommendations on how and where to start are appriciated.
i tried SFU 3.0 a few months ago and spent >1 hour trying to find why my NIS mms snapin required for installation bluescreened. i promptly gave that CD away.
in contrast, SFU 3.5 was very easy to install on the same computer that did not allow installation of SFU 3.0. I installed (only the) NFS and NIS components as follows:
copy passwd and group files to the win2k box,
run the install exe & select components,
point SFU to the passwd and group files,
reboot
surprisingly NFS worked on the win2k box immediately. win maps your windows user login to the same user password entry in the passwd file and seemed to work properly for the several users i tested. NFS mounts are viewed through a new Network|Entire Network|NFS Network entry that functions similar to the typical windows samba browser.
however, after installing SFU 3.5, clicking on Network|Computers Near Me would hang the system for > 1 minute before returning a 'cannot find {...whatever}' error message. apparantly SFU broke something else since Network|Computers Near Me was working before the SFU 3.5 evaluation.
before uninstalling SFU 3.5 from the windows box, i compared NFS throughput to samba througput by copying the entire unzipped SFU 3.5 package (something like 12000 files, 300MB) to the win computer from a PII350MHz linux NFS and samba server over gigabit ethernet. results are as follows:
NFS transfer, linux to SFU 3.5 win box, total time: 4:48 (min:sec)
samba transfer, linux samba server to same win box, total time: 4:51 (min:sec)
i prefer to use samba for win boxes since it doesn't adversely affect windows networking, saves a lot of HD space, and i don't have to configure it on every box i want to serve files to. alternatively, i only had to set up samba once and haven't thought about it since.
i am unsure if uninstalling SFU 3.5 fixed my broken windows networking, i halted win2k and booted back into linux.
To my mind it depends on whether you are likely to expand your network at all. Since SMB comes as a default part of any/all Windows setups, I would have everything that you want to be shared running with Samba. Since Linux will happily mount SMB shares and yet an un-updated Windows box will not read NFS shares it (to my mind) would make greater sense to share stuff with SMB.
This is, of course, if you are planning to have flexibility in the system. If not, then NFS is certainly easier to set up in Linux... I have not tried the MS Unix tools for Windows so I do not know the ease with which you can access NFS or share your own files with NFS.
i don't run samba between 2 linux boxes but sure that's possible and that might be simpler than also using nfs on a network and thus a good choice for you. i did prove to my satisfaction over the course of a week of experimentation that automounting with autofs samba shares onto linux was nowhere as near as stable as automounting with autofs nfs shares instead. i decided to only use samba where nfs wasn't an option since i also found nfs to give higher througput, which was my primary interest.
if you set up samba between 2 linux boxes i'd be curious to see a throughput comparison between nfs and samba as my throughput comparison may be outdated now.
<edit>
this ?outdated? throughput comparison refers to one i did with the 2.2 kernel a while ago between 2 linux boxes. it doesn't refer to my first post that tested {linux server} -> {windows client}.
</edit>
Yes of course samba works between linux boxes. It's all I use, because I have a mixed network and don't particularly care for using different set ups, I just set up my shares with samba and every machine on my network can access them whether it's win or linux.
I don't use nfs for shares so I can't compare the throughput, but it is plenty fast enough for me. If the above differences are an exapmle then I am satisfied. The 3 second difference couldn't convince me to change anything. Especially installing a buggy windows app in an enviroment that is working flawlessly.
'If the above differences are an exapmle then I am satisfied.'
the results above were produced via testing throughput from a linux server to a windows client, i.e. they are not a relavent example. they are unrelated to linux to linux file serving, which is where i had determined a significant difference in throughput some time ago. sorry for the confusion, i edited my comments above to clairfy. regardless, i agree with your conclusion to use samba for the windows box.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.