Posts: 520
Joined: Jun 2011
Reputation:
2
What is the benefit of running from an nfs share? Are there performance improvements?
Posts: 53
Joined: Dec 2012
Reputation:
0
There's some performance boost, at least in comparison to using a class 4 SD card.
My initial reason for looking at it is that I'm somewhat scared about the life expectancy of an SD card: the first hit on Google suggests 100,000 write cycles (to each individual page of storage). Which is obviously fine for relatively static data with large files, but I'm more nervous when it comes to things like swap files and databases which could change thousands in the space of just a few minutes.
However, the reason I've done it is for file system stability: I've got my Pi powered from my television's USB port, so it powers up with the TV, and, more significantly, crashes instantly when I turn the TV off, potentially aborting in the middle of a write to the file system. Off loading that to a NAS drive removes the problem, as the file server stays up: it might still abort mid-way through writing a file, but at least the directories are properly maintained.
Posts: 520
Joined: Jun 2011
Reputation:
2
Sounds interesting as every attempt I have made to overclock has failed, but then again it failed when I installed to a usb will I stand more of a chance with nfs?
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
No, if you had no luck with USB you'll have no more luck with NFS. Unusual though not to achieve any kind of overclock with USB.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Posts: 1,149
Joined: Nov 2012
Reputation:
2
2013-02-27, 00:09
(This post was last modified: 2013-02-27, 00:09 by doveman2.)
Anyone know what I need in the exports for HaneWin NFS?
I've tried
e:\NFS rw,async,no_root_squash,no_all_squash,no_subtree_check
but that gives a "line ignored, invalid client" error. Above that I've got two other lines which seem OK
e:\Media -readonly -public -name:Media
-maproot:0:0 -mapall:0:0
Posts: 1,149
Joined: Nov 2012
Reputation:
2
2013-02-27, 00:41
(This post was last modified: 2013-02-27, 00:45 by doveman2.)
Thanks but that doesn't really give me equivalent options for most of the switches. It seems I probably don't need to specify rw as that's the default unless -readonly is used.
That post links to the one I referred to orginally for the NFSBoot setup and maybe I misunderstood that, as under HaneWin it says
"make sure you select "async write","no count of sub-dirs", "allow unix style soft links", "emulate hard links" in the nfs server options." which I've done, so that probably covers the async and no_subtree_check switches. I'm not sure about the no_root_squash and no_all_squash switches though.
So maybe I just need
e:\NFS -public -name:NFS
and then I can use
boot=NFS=192.168.1.64:/NFS/OpenElec/System
in cmdline.txt
EDIT: Hmm, tried that and now I get an error "ignored, expected drive" about the -maproot:0:0 -mapall:0:0 line
EDIT2: Ah, I see those are meant to be switches for the NFS share. Putting them on the end of the E:\NFS line and it seems to be OK now (haven't tested booting from it yet but no errors at least).
Posts: 196
Joined: Jun 2011
Reputation:
0
mylle
Senior Member
Posts: 196
the switch "-alldirs" was important to me.
Posts: 1,149
Joined: Nov 2012
Reputation:
2
Interesting, thanks. I'll add that to avoid any problems then.
Posts: 196
Joined: Jun 2011
Reputation:
0
mylle
Senior Member
Posts: 196
If you do not add that switch you can ONLY mount the mountpoint that you have specified in the export file and not folders inside it. I have 4 RPI's running of NFS and i have to mount
/mountpoint/rpi1
/mountpoint/rpi2
/mountpoint/rpi3
/mountpoint/rpi4
It was failing at first because it would only mount /mountpoint/ and not the folders after that!
Posts: 1,149
Joined: Nov 2012
Reputation:
2
Gotcha. I have several folders under E:\NFS that I'll be using as well so I'll need that switch. Thanks for the tip.