Networking Forums

Networking Forums > Computer Networking > Linux Networking > NFS vs. Samba - pros & cons?

Reply
Thread Tools Display Modes

NFS vs. Samba - pros & cons?

 
 
Charlie Gibbs
Guest
Posts: n/a

 
      03-03-2008, 04:32 PM
I've set up my main box (Slackware 12.0, kernel 2.6.21.5) as a NFS
server so that my KnoppMyth box in the living room can access its
MP3 and video files. However, it might be nice if the Windows boxes
on the network could access this files too. I presume NFS is not an
option under Windows, but Samba is. Disregarding the Windows boxes
for a moment, are there any advantages to NFS over Samba under Linux -
even if the server only allows read access?

Would trying to run both NFS and Samba be impossible, or merely
inadvisable? (I suspect impossible; I was able to bring up nmbd,
but smbd refuses to start, claiming that someone has already bound
to port 139.)

Should I forget about NFS and switch over to Samba completely?

--
/~\ (E-Mail Removed)lid (Charlie Gibbs)
\ / I'm really at ac.dekanfrus if you read it the right way.
X Top-posted messages will probably be ignored. See RFC1855.
/ \ HTML will DEFINITELY be ignored. Join the ASCII ribbon campaign!

 
Reply With Quote
 
 
 
 
AZ Nomad
Guest
Posts: n/a

 
      03-03-2008, 05:09 PM
On 03 Mar 08 09:32:00 -0800, Charlie Gibbs <(E-Mail Removed)> wrote:
>I've set up my main box (Slackware 12.0, kernel 2.6.21.5) as a NFS
>server so that my KnoppMyth box in the living room can access its
>MP3 and video files. However, it might be nice if the Windows boxes
>on the network could access this files too. I presume NFS is not an
>option under Windows, but Samba is. Disregarding the Windows boxes
>for a moment, are there any advantages to NFS over Samba under Linux -
>even if the server only allows read access?


>Would trying to run both NFS and Samba be impossible, or merely
>inadvisable? (I suspect impossible; I was able to bring up nmbd,
>but smbd refuses to start, claiming that someone has already bound
>to port 139.)


Neither. I run both all the time with absolutely no ill effects.
NFS doesn't go anywhere near ports 135-139 used by samba.
 
Reply With Quote
 
Keith Keller
Guest
Posts: n/a

 
      03-03-2008, 05:17 PM
On 2008-03-03, Charlie Gibbs <(E-Mail Removed)> wrote:
>
> Would trying to run both NFS and Samba be impossible, or merely
> inadvisable? (I suspect impossible; I was able to bring up nmbd,
> but smbd refuses to start, claiming that someone has already bound
> to port 139.)


Something else is wrong. NFS and Samba should certainly be able to run
at the same time.

> Should I forget about NFS and switch over to Samba completely?


Not necessarily. If you are happy with your NFS configuration, I'd
troubleshoot your Samba configuration. When you start smbd, do you
already have an smbd running? That'd be my first guess. Make sure to
kill off all smbd processes before restarting.

If they're all gone, and you still get this message, do

lsof -i |grep 139

or

lsof -i |grep netbios

to see what's listening on that port.

--keith

--
kkeller-(E-Mail Removed)
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

 
Reply With Quote
 
ray
Guest
Posts: n/a

 
      03-03-2008, 08:09 PM
On Mon, 03 Mar 2008 09:32:00 -0800, Charlie Gibbs wrote:

> I've set up my main box (Slackware 12.0, kernel 2.6.21.5) as a NFS
> server so that my KnoppMyth box in the living room can access its MP3
> and video files. However, it might be nice if the Windows boxes on the
> network could access this files too. I presume NFS is not an option
> under Windows, but Samba is. Disregarding the Windows boxes for a
> moment, are there any advantages to NFS over Samba under Linux - even if
> the server only allows read access?


In the past, MS has offered free 'unix tools' for their products - I
believe NFS is included.

I believe NFS is more efficient - you could attempt some simple
benchmarks.


>
> Would trying to run both NFS and Samba be impossible, or merely
> inadvisable? (I suspect impossible; I was able to bring up nmbd, but
> smbd refuses to start, claiming that someone has already bound to port
> 139.)
>
> Should I forget about NFS and switch over to Samba completely?


 
Reply With Quote
 
Charlie Gibbs
Guest
Posts: n/a

 
      03-03-2008, 08:18 PM
In article <(E-Mail Removed)>, kkeller-
(E-Mail Removed) (Keith Keller) writes:

> On 2008-03-03, Charlie Gibbs <(E-Mail Removed)> wrote:
>
>> Would trying to run both NFS and Samba be impossible, or merely
>> inadvisable? (I suspect impossible; I was able to bring up nmbd,
>> but smbd refuses to start, claiming that someone has already bound
>> to port 139.)

>
> Something else is wrong. NFS and Samba should certainly be able to
> run at the same time.


OK, I was afraid there would be some sort of contention issue.
After too much Windows exposure it's easy to forget that Linux
file systems are much smarter than that.

>> Should I forget about NFS and switch over to Samba completely?

>
> Not necessarily. If you are happy with your NFS configuration, I'd
> troubleshoot your Samba configuration. When you start smbd, do you
> already have an smbd running? That'd be my first guess. Make sure
> to kill off all smbd processes before restarting.


root@killer-penguin:/home/cjg/frompan$ ps -ef | grep mbd
root 20814 3279 0 Mar01 ? 00:00:00 nmbd
root 22715 3550 0 11:45 pts/2 00:00:00 grep mbd
root@killer-penguin:/home/cjg/frompan$ killall smbd
smbd: no process killed

> If they're all gone, and you still get this message, do
>
> lsof -i |grep 139


Nothing was displayed.

> or
>
> lsof -i |grep netbios
>
> to see what's listening on that port.


inetd 3279 root 8u IPv4 228847 TCP *:netbios-ssn (LISTEN)
inetd 3279 root 9u IPv4 228848 UDP *:netbios-ns
nmbd 20814 root 0u IPv4 228848 UDP *:netbios-ns
nmbd 20814 root 1u IPv4 228848 UDP *:netbios-ns
nmbd 20814 root 6u IPv4 506176 UDP *:netbois-dgm
nmbd 20814 root 7u IPv4 506178 UDP 192.168.0.42:netbios-ns
nmbd 20814 root 8u IPv4 506179 UDP 192.168.0.42:netbios-dgm

Duh! Yes, I had already enabled smbd and nmbd in /etc/inetd.conf.

Wandering off to a Windows box, I did a little snooping and presto!
up came my files, and I was able to play an MP3 across the network.
So the reason I couldn't bring up smbd was that inetd was already
waiting to do it for me. (It's smarter than I thought. :-)

Thanks for the help.

--
/~\ (E-Mail Removed)lid (Charlie Gibbs)
\ / I'm really at ac.dekanfrus if you read it the right way.
X Top-posted messages will probably be ignored. See RFC1855.
/ \ HTML will DEFINITELY be ignored. Join the ASCII ribbon campaign!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pros and Cons of using ftp vs. rsync? Goran Ivanic Linux Networking 14 05-06-2008 03:53 PM
pros cons of upnp ? scott Windows Networking 0 03-29-2006 10:32 AM
UPnP On or Off Pros/Cons? MN-700 BRIAN J Broadband Hardware 1 06-28-2004 09:16 PM
ICS vs router - pros and cons? Tiny Tim Home Networking 6 12-03-2003 09:51 PM
PlusNet - the pros and cons Barry Samuels Broadband 6 09-05-2003 06:40 PM



1 2 3 4 5 6 7 8 9 10 11