About Beckman

I'm a big geek, serial entrepreneur and idea guy. I've been called names, such as PHP Guru, MySQL DBA, BOFH, Security God, etc. That and Peter-Peter-Pumpkin-Eater.

The image in the header is © Peter Beckman.

Archives

01 Jan - 31 Jan 2003
01 Feb - 28 Feb 2003
01 Mar - 31 Mar 2003
01 Apr - 30 Apr 2003
01 May - 31 May 2003
01 Jun - 30 Jun 2003
01 Jul - 31 Jul 2003
01 Aug - 31 Aug 2003
01 Sep - 30 Sep 2003
01 Oct - 31 Oct 2003
01 Feb - 28 Feb 2004
01 Jul - 31 Jul 2004
01 Aug - 31 Aug 2004
01 Oct - 31 Oct 2004
01 Mar - 31 Mar 2005
01 Apr - 30 Apr 2005
01 May - 31 May 2005
01 Jun - 30 Jun 2005
01 Jan - 31 Jan 2006
01 Jun - 30 Jun 2006
01 Feb - 28 Feb 2007
01 Apr - 30 Apr 2007
01 Sep - 30 Sep 2007
01 Mar - 31 Mar 2008
01 May - 31 May 2008
01 Jul - 31 Jul 2013
01 Sep - 30 Sep 2013
01 Apr - 30 Apr 2014
01 Jul - 31 Jul 2014
01 Dec - 31 Dec 2014
01 Dec - 31 Dec 2015

Links

AngryOx.com
Tossable Digits - Cheap, Anonymous, Disposable Phone Numbers
The Internet License Plate Database
Love & Onions (Jen, my wife)
Roadie Speaks Blog
BananaForce
AdCritic.com
Slashdot
I Love Ben Brown

Search!

Last Comments

https://www.wellb… (Many, Many Things…): Liver Renew is the best l…
Easy Lift (Centrum Silver Ad…): As an avid user of Easy L…
marshakaplan766 (Renaming your OSX…): Renaming your OSX Home Di…
GoaDarling (Wow, I'm fat.): Embark on an unforgettabl…
John smith (Centrum Silver Ad…): The Centrum Silver Ad has…
John smith (Centrum Silver Ad…): Centrum Silver ads often …
merryjhon (Centrum Silver Ad…): The Centrum Silver ad flo…
Hairmond (Wow, I'm fat.): Hairmond specializes in t…
MyCleanRServices (Wow, I'm fat.): MyCleanRServices is your …
RKCoatings (Wow, I'm fat.): RK Coatings brings life t…

Stuff

Powered by Pivot - 1.40.1: 'Dreadwind' 
XML: RSS Feed 
XML: Atom Feed 

« A hybrid enclosed mot… | Home | My Joost Beta Experie… »

SimpleShare NAS does NFS on OSX 7x faster than SMB

Tuesday 03 April 2007 at 12:58 pm

I got a in December 2006 and have been quite happy with it. I have a SimpleTech on my network that holds my MP3s, documents, photos, etc. I had been using SMB/CIFS to connect to the SimpleShare drive, but I read somewhere that CIFS is slower than NFS, and I wanted to try. SimpleTech has instructions for how to connect from an box, so I figured it would be easy.

Trouble is that the SimpleShare documentation mentions NFS once, but doesn’t say how it works. Gack. Google to the rescue.

Click to read on.

I tried all sorts of commands:

mount 192.168.0.20:/NetFolder /private/mnt
mount_nfs: can’t access /NetFolder: Permission denied
mount 192.168.0.20:/share/NetFolder /private/mnt
mount_nfs: can’t access /share/NetFolder: Permission denied
etc…

to no avail. So I googled a few times, finally falling upon this blog and reading:

“With the SimpleShare, you have to add the prefix /shares/PoolName for NFS access.”

OK, great. I tried mounting 192.168.0.20:/shares/NetFolder but that didn’t work. I kept google searching. That link came up again, so I read it again. And again. And again. Then I read it again. PoolName. Oh. You mean the Pool that share is in?

mount 192.168.0.20:/shares/SimplePool/NetFolder /private/mnt mount_nfs: /private/mnt: Operation not permitted

Sweet! A new error message to google! This lead me to this blog where a helpful comment was posted:


“Thanks a lot for posting this hack. It worked great for me, but only after I modified the NFSvolumes script very slightly. I was getting Operation not permitted. So I googled some and found that because most Linux systems require the use of a reserved port for NFS mounting, I had to change this line:

/sbin/mount_nfs $rvol /NFS/$ldir to this: /sbin/mount_nfs -P $rvol /NFS/$ldir

Could it be that easy?

mount_nfs -P 192.168.0.20:/shares/SimplePool/NetFolder /private/mnt

YES!!! Whoohoo!!! Success. My SimpleShare NAS is now connected to my OSX MBP via NFS. Wicked. And it is indeed faster!


ls -la via SMB/CIFS
Time spent in user mode (CPU seconds) : 0.013s
Time spent in kernel mode (CPU seconds) : 0.080s
Total time : 0:09.51s
CPU utilisation (percentage) : 0.9%

ls -la via NFS
Time spent in user mode (CPU seconds) : 0.017s
Time spent in kernel mode (CPU seconds) : 0.027s
Total time : 0:01.27s
CPU utilisation (percentage) : 2.3%

is 7.488x FASTER than SMB/CIFS on OSX!! Damn. Always use NFS. Stupid Samba.

Used tags: , , , ,
five comments

I have about the same setup (my laptop is a bit older, PPC G4) but NFS does not work at all for me. Were there any setup steps that I may have missed that lead to your success but were not mentioned above? Any help you could offer would be most appreciated.

Thanks,
the Ringo
The Ringo (Email) - 21 04 07 - 18:28

Sweet! I’ve been fighting to get Ubuntu and the SimpleShare talking for about 90 minutes. The fully qualified path (/shares/Simpleshares…) was the piece I was missing. With Samba, I didn’t need that.
COD (Email) (URL) - 18 05 07 - 20:59

I have the same setup but I am still getting an error. If I want to mount the folder “media” from my Simpleshare, what would the exact command be? The last error I got said there was no such file or directory as /private/mnt. Do I need to create this somewhere first?
Doug Phelps (Email) - 01 07 07 - 13:04

@Ringo: Not that I know of, but I don’t have a PPC — the differences between OSX on the Intel vs PPC may be your issue. Sure you’re using a fully qualified path?

@COD: Glad my post helped!

@Doug: Check to see if /private/mnt actually exists! It should be a directory you create for mounting stuff. I can’t recall if I created it myself or not, but it does need to exist, since you are mounting the drive there. Make an empty directory in your home dir named “mnt”, then run this: mount_nfs -P 192.168.0.20:/shares/SimplePool/NetFolder /Users/doug/mnt

Make sure the NetFolder is the name of the share.
[beckman] (URL) - 13 09 07 - 00:41

Great hint. Some Freebsd server setups require the -P flag as well. My thanks.
jon livesey (Email) - 17 04 08 - 18:45


Trackback link:

Please enable javascript to generate a trackback url

  
Remember personal info?

Emoticons / Textile

To prevent automated comment-spam, we require you to answer this silly question.
 

  (Register your username / Log in)

Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.