Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-2008, 05:32 PM
Charlie Gibbs
 
Posts: n/a
NFS vs. Samba - pros & cons?

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?

--
/~\ cgibbs@kltpzyxm.invalid (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
  #2 (permalink)  
Old 03-03-2008, 06:09 PM
AZ Nomad
 
Posts: n/a
Re: NFS vs. Samba - pros & cons?

On 03 Mar 08 09:32:00 -0800, Charlie Gibbs <cgibbs@kltpzyxm.invalid> 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
  #3 (permalink)  
Old 03-03-2008, 06:17 PM
Keith Keller
 
Posts: n/a
Re: NFS vs. Samba - pros & cons?

On 2008-03-03, Charlie Gibbs <cgibbs@kltpzyxm.invalid> 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-usenet@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information

Reply With Quote
  #4 (permalink)  
Old 03-03-2008, 09:09 PM
ray
 
Posts: n/a
Re: NFS vs. Samba - pros & cons?

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
  #5 (permalink)  
Old 03-03-2008, 09:18 PM
Charlie Gibbs
 
Posts: n/a
Re: NFS vs. Samba - pros & cons?

In article <evrt95xpvm.ln2@goaway.wombat.san-francisco.ca.us>, kkeller-
usenet@wombat.san-francisco.ca.us (Keith Keller) writes:

> On 2008-03-03, Charlie Gibbs <cgibbs@kltpzyxm.invalid> 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.

--
/~\ cgibbs@kltpzyxm.invalid (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

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



All times are GMT. The time now is 12:01 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Mortgages | Secure Web Hosting | Loans | Xecuter 3 Mod Chip | Share Prices



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114