Author Topic: NFS vs SMB vs FTP vs SSH speed test results  (Read 171251 times)

March 29, 2010, 06:36:58 PM
Reply #30

sweetvn

  • Full Member

  • Offline
  • ***

  • 117
Hi can someone please help

I'm trying to mount my NAS on wdtvlive as NFS

I get this message

# xmount 192.168.2.2:/mnt/HD_a2/ nfs
mount: can't find /tmp/media/usb/nfs in /etc/fstab


March 29, 2010, 06:40:41 PM
Reply #31

larsar4

  • Newbie

  • Offline
  • *

  • 32
if you've set everything else correctly then it looks like you're using the xmount command incorrectly.

it should be in this format

Code: [Select]
#xmount 192.168.0.44:/nfsroot ShareName nfs
it looks like you forgot to name the share

your script could be something like this

Code: [Select]
xmount 192.168.2.2:/mnt/HD_a2 movies_NFS nfs

March 29, 2010, 08:18:13 PM
Reply #32

sweetvn

  • Full Member

  • Offline
  • ***

  • 117
if you've set everything else correctly then it looks like you're using the xmount command incorrectly.

it should be in this format

Code: [Select]
#xmount 192.168.0.44:/nfsroot ShareName nfs
it looks like you forgot to name the share

your script could be something like this

Code: [Select]
xmount 192.168.2.2:/mnt/HD_a2 movies_NFS nfs

I got this figure out ...

First, I have to set on my Dlink NAS the wdtvlive ip and the folder that wdtlive can access,
Then I SSH in and use
xmount 192.168.2.2:/mnt/HD_a2/NAS  NASnfs nfs
and BAM! it WORKS!

My next question is ... when I put that command into net.mounts, it doesn't automount on boot up, I have to do it manually, what should I set in order for it to work?  I read on some post I might have to set NSF time delay, I'll try that tomorrow see if that work


Now I another problem I'm have a Live#1 with a hard drive attached, with this address /tmp/media/usb/USB2/A688982B8897F7CF, I'm trying to mount this drive via NFS on my Live #2 box, I used the following command:

xmount 192.168.2.3:/tmp/media/usb/USB2/A688982B8897F7CF WDTV nfs
and this is what I get in return
mount: 192.168.2.3:/tmp/media/usb/USB2/A688982B8897F7CF failed, reason given by server: Permission denied

Seem like it want me to give a username and password, but WDTVLive unit doesn't have username and password beside the root/wdtvlive I used when SSH

so any thought?
« Last Edit: March 29, 2010, 08:24:45 PM by sweetvn »

March 29, 2010, 08:33:18 PM
Reply #33

larsar4

  • Newbie

  • Offline
  • *

  • 32
not sure if this is what is looks like but I think this is how you need to turn on the nfs server in S00custom-options

##Enable NFSD kernel NFS server (default: OFF)
#config_tool -c NFSD=ON

##Enable NFSD auto export mode (default: OFF)
## (requires NFSD_AUTO_DEFAULT)
## (overrides /conf/exports)
#config_tool -c NFSD_AUTO=ON

March 30, 2010, 05:37:22 AM
Reply #34

choekstr

  • Sr. Member

  • Offline
  • ****

  • 269
My next question is ... when I put that command into net.mounts, it doesn't automount on boot up, I have to do it manually, what should I set in order for it to work?  I read on some post I might have to set NSF time delay, I'll try that tomorrow see if that work
It does sound like a delay issue.  I have to put 20-30 seconds in and it seems to work reliably.  See if that does it for you.

Now I another problem I'm have a Live#1 with a hard drive attached, with this address /tmp/media/usb/USB2/A688982B8897F7CF, I'm trying to mount this drive via NFS on my Live #2 box, I used the following command:

xmount 192.168.2.3:/tmp/media/usb/USB2/A688982B8897F7CF WDTV nfs
and this is what I get in return
mount: 192.168.2.3:/tmp/media/usb/USB2/A688982B8897F7CF failed, reason given by server: Permission denied

Seem like it want me to give a username and password, but WDTVLive unit doesn't have username and password beside the root/wdtvlive I used when SSH

so any thought?
This sounds like a permission problem sharing on the Live#1 box.  What did you set for your NFSD_AUTO_DEFAULT settings?:
##NFSD auto export mode default setting
#config_tool -c NFSD_AUTO_DEFAULT='192.168.0.234(rw,async,no_subtree_check) 192.168.0.199(rw,async,no_subtree_check)'


You might also want to spend time with the NFS server thread and get to know it better. (Live #1 is the sever, Live #2 is your client)
http://wdtvforum.com/main/index.php?topic=4482.0
--
Chris

March 30, 2010, 05:55:49 AM
Reply #35

abatt

  • Newbie

  • Offline
  • *

  • 6
I have win7 with haneWIN NFS Server. Before i upgrade with WDLXTV 0.4.1.9 i used a WDLXTV 0.4.0.0 and my WD live see my nfs share , after upgrade with the latest version , sometimes i see share , sometimes no. I use net.mounts :
# Mount an NFS share
#
xmount 192.168.168.102:/Movies Movies nfs
xmount 192.168.168.102:/MP3 MP3 nfs
xmount 192.168.168.102:/Photo Photo nfs
xmount 192.168.168.102:/Video Video nfs

i turned off win7 password protected share. Where's the problem ? Could someone help ?:)

March 30, 2010, 06:42:52 AM
Reply #36

choekstr

  • Sr. Member

  • Offline
  • ****

  • 269
I too have intermittent mounting and I have deduced it as a race condition with the network.  The problem is that the xmounts run before the network is up and running and therefore they don't get mounted...sometimes.  It all depends on how quick the network initializes and becomes ready.  You can verify this by doing a:
grep WTF /tmp/messages.txt

It does seem to be a recent release issue and I haven't needed it before 0.4.1.9.* but now I just use:
config_tool -c NET_MOUNTS_DELAY=30
and it fixes it.  Well, it should fix it but it doesn't actually take the setting on bootup for whatever reason (but does for others) and has been described as a config_tool limitation or bug.  Argh.

So I switched to using ext3 firmware, set it on the cmdline and then it works each boot.  I also leave it in the S00custom-options just to be safe.
--
Chris

March 30, 2010, 02:49:18 PM
Reply #37

Eugen1968

  • Newbie

  • Offline
  • *

  • 12
I'm trying to mount my HDD connected on wdtvlive USB as NFS. External HDD is NTFS format

I get this message:

Mar 30 22:34:47 WDTVLIVE user.notice S94nfsserver: WDTVLIVE not online, NFSD cannot start!
Mar 30 22:34:53 WDTVLIVE user.notice xmount: xmount 192.168.2.5:/tmp/media/usb/USB2/AC50D99C50D96E18 wdtvlive nfs soft,intr FAILED WTF?!?

But wdtvlive is online, works ftp and putty.
WD TV Live with WDLXTV_LIVE-0.4.1.9-6, thanks b-rad
USB1: Apacher flash 8Gb fat32, USB2 : Fantec 320Gb ntfs

March 30, 2010, 09:24:04 PM
Reply #38

sweetvn

  • Full Member

  • Offline
  • ***

  • 117

[/quote]
This sounds like a permission problem sharing on the Live#1 box.  What did you set for your NFSD_AUTO_DEFAULT settings?:

#config_tool -c NFSD_AUTO_DEFAULT='192.168.0.234(rw,async,no_subtree_check) 192.168.0.199(rw,async,no_subtree_check)'[/color]

[/quote]

What is the first IP address? 192.168.0.234(rw,async,no_subtree_check is this for wdtv-server?
2nd ip 192.168.0.199(rw,async,no_subtree_check is this for wdtv-client?

Also i did read that link a few times, but I didn't really understand it
« Last Edit: March 30, 2010, 09:35:38 PM by sweetvn »

March 31, 2010, 04:49:13 AM
Reply #39

choekstr

  • Sr. Member

  • Offline
  • ****

  • 269
No, the server's IP is implied.  These are both client IP's and the permissions and settings for each of the clients.  You would want one IP for just 1 client, or you could go with a whole subnet, a range, etc.  This is all part of the NFS exports format and you can google to find more info on what each of the settings do and if you need them.

For instance, you could have the client Live be ro (read-only) and have your macbook be rw (read-write) with 2 separate entries in the NFSD_AUTO_DEFAULT line.  Or just use * to denote everyone and no per-ip restrictions.
--
Chris

March 31, 2010, 05:43:42 AM
Reply #40

sweetvn

  • Full Member

  • Offline
  • ***

  • 117
@Choekstr

This is how I got my setup to mount NFS
 Live #1 192.168.2.3 (server)
 Live #2 192.168.2.13 (client)

For Live#1 (server) I got this in SS00custom
config_tool -c NFSD=ON
config_tool -c NFSD_AUTO=ON
config_tool -c NFSD_AUTO_DEFAULT='192.168.2.13(rw,async,no_subtree_check)

I also created an "exports" file in the /conf  according to <a href="http://wiki.wdlxtv.com/Sharing_from_OSX"><font color="BLUE">this</font></a><p>
exports:
/tmp/media/usb/USB2/A688982B8897F7CF -ro -mapall=nobody -network 192.168.1 -mask 255.255.255.0

after that set up in Live#1, cold boot

then SSH into Live #2 and
xmount 192.168.2.2:/mnt/HD_a2/NAS  NASnfs nfs
get this same message
mount: 192.168.2.3:/tmp/media/usb/USB2/A688982B8897F7CF failed, reason given by server: Permission denied

I'm missing something but can't quite figure it out, what setup do I need on Live #2 (client)?

I really appreciate your help

March 31, 2010, 06:09:05 AM
Reply #41

choekstr

  • Sr. Member

  • Offline
  • ****

  • 269
You have 3 IP's: .2, .3, .13 that are shown.

According to your xmount command it is trying mount from a different server, but according to your log message it is trying on the correct machine.  Is this is typo?

You are almost there it looks like.  I would check to make sure the share you are trying to mount is actually shared with a showmount -e 192.168.2.3
It will show you what the share name is so you can put that into your xmount command after the :

--
Chris

March 31, 2010, 08:18:43 PM
Reply #42

sweetvn

  • Full Member

  • Offline
  • ***

  • 117
You have 3 IP's: .2, .3, .13 that are shown.

According to your xmount command it is trying mount from a different server, but according to your log message it is trying on the correct machine.  Is this is typo?


Yes it is a typos, my xmount is this
# xmount 192.168.2.3:/tmp/media/usb/USB2/A688982B8897F7CF  Upstair nfs
mount: 192.168.2.3:/tmp/media/usb/USB2/A688982B8897F7CF failed, reason given by server: Permission denied


sound like my live #1 server is not sharing the /tmp or i have an issue with the permission



You have 3 IP's: .2, .3, .13 that are shown.

You are almost there it looks like.  I would check to make sure the share you are trying to mount is actually shared with a showmount -e 192.168.2.3
It will show you what the share name is so you can put that into your xmount command after the :



# showmount -e 192.168.2.3
Export list for 192.168.2.3:


It show nothing after 192.168.2.3:

See now when I do this for my NAS
# showmount -e 192.168.2.2
Export list for 192.168.2.2:
/mnt/HD_a2/NAS 192.168.2.12,192.168.2.17,192.168.2.3


my NAS showing correctly what's is sharing /mnt/HD_a2/NAS and the ips it's allowing

but my WDTV server is not doing that

What am I missing here?

April 01, 2010, 08:58:13 AM
Reply #43

choekstr

  • Sr. Member

  • Offline
  • ****

  • 269
Ok, so we know the problem now: Your server Live is not sharing anything and that is why you are getting a permission error.  Cool.  I am not sure what it takes to get it shared as I don't use this feature.  I personally would dive into the /etc/exports file on the Live and see what is there and create it, do a exportfs -av, get it to share manually. 

I am sure the auto sharing solution works with the right combination but as I don't use that I can't offer much more help on that. 
--
Chris

April 01, 2010, 10:40:38 AM
Reply #44

sweetvn

  • Full Member

  • Offline
  • ***

  • 117
I personally would dive into the /etc/exports file on the Live and see what is there and create it, do a exportfs -av, get it to share manually.  

I am sure the auto sharing solution works with the right combination but as I don't use that I can't offer much more help on that.  

Thanks for your help.  

There is no /etc/exports file, should I create one and put it in there?  Would that mess anything up? I thought I was reading at wikiwdlxtv that to put the exports file in /conf , which i did and not working

I'll try /etc/ see how that's going to turn out
« Last Edit: April 01, 2010, 10:46:19 AM by sweetvn »