D-Link Forums

The Graveyard - Products No Longer Supported => DNS-323 => D-Link Storage => Beta code! => Topic started by: jinserk on June 17, 2009, 09:27:01 PM

Title: NFS setting with Mac client?
Post by: jinserk on June 17, 2009, 09:27:01 PM
I believed that Mac is a kind of BSD unix machine, so there might be no issues to connect via NFS with DNS-323 1.08b. However, I couldn't copy files into the NAS. Here is my settings :

DNS-323 : ip 192.168.2.100
- installed apkg NFS
- host : 192.168.2.0/24
- selected dir : /mnt/HD_a2
- read/write permission
- no root squash

Mac (10.5.7) : ip 192.168.2.104
- used Directory Utility
- Show advanced setting button -> mount on toolbar -> Unlock -> "+" to add server
- remote : nfs://192.168.2.100/mnt/HD_a2
- mount position : /Network/NAS
- Advanced mount parameters : -P or resvport (both are the same result), rw

Here, I can see and copy from NAS to Mac files in this setting, however,

1. I couldn't see the NAS below "SHARED" on the sidebar of finder
2. I couldn't see the backup folder on the Time machine preferences. smb worked well.
3. I couldn't write any file from Mac to NAS. I got an error -36.

I saw an article from web that Mac has only supported NFSv3 so that if the nfsd on NAS is NFSv4, then it would be the problem. What's the version of apkg nfsd in 1.08b?

Also, I couldn't mount the nfs using finder Go -> connect to server menu, because it requires name and password. I guess that this is related to the phenomenon described above.

any ideas?


Title: Re: NFS setting with Mac client?
Post by: Fatman on June 18, 2009, 08:43:23 AM
1. It won't nesccesarrily show up there, I believe you get an entry for "Network".
2. That is not supported by OS X.
3. You still have some permissioning wrong, I would ensure that your DNS-323 is configured correctly and that your host is added for NFS (that was the mistake I made that got me that error).

I would root squash if I was you.
Title: Re: NFS setting with Mac client?
Post by: jinserk on June 19, 2009, 12:56:09 AM
Is it true that OSX Time machine cannot support NFS mounted filesystem?

Please see
http://blog.jthon.com/?p=19
and
http://www.abdevelopment.ca/blog/tip-use-nfs-instead-samba-time-machine-backups

here I guessed that if an appropriate permission and port privilege solution would be given, I can make Finder to see the NFS as a shared folder like smb and then TM can see that NFS folder.

In order to apply the method proposed in the second url above, I should modify the /etc/export of my DNS-323 like this, but I can't :
http://thecususergroup.proboards.com/index.cgi?action=display&board=n5200installations&thread=1339&page=1#6491
Title: Re: NFS setting with Mac client?
Post by: Fatman on June 19, 2009, 08:21:45 AM
I couldn't get it to work, though the first link claims it works fine.  You have to have done the second link to even see SMB via the Time Masheen.  I did not implement all of the options recommended in the first (and didn't find that kind of documentation when I looked), though I also didn't think you could specify those kind of options from the finder mount, I thought that is why Directory Services was required.

This would be so much easier with a well documented and more command line centric OS, These GUIs have too many secret handshakes.
Title: Re: NFS setting with Mac client?
Post by: jinserk on June 22, 2009, 05:24:03 PM
I guess that the TM backup via NFS issue results in :

1. requirement of privilege to use the port number under 1000.

2. uid and gid mismatch with OSX and DNS-323.


for no.1, we can solve it if the default "insecure" option is added in /etc/exports in DNS-323, or if resvport or -P option is used to mount it from OSX.

however, I coudn't know how to do for no.2. The one possible thing we can do is to apply NIS in DNS-323 as the default service with apkg NFS. But I have no experience with NIS so that can't say it is a big deal or not.

added: I found an information about "ugidd" to match the uid and gid between the nfs server and the client without NIS. Of course I have no experience about this service, however, i hope that this is helpful to manage the NFS of DNS-323.


Title: Re: NFS setting with Mac client?
Post by: dirtbiker on January 22, 2010, 06:34:34 AM
Hi,

Have a look at this post re error 36
http://discussions.apple.com/thread.jspa?messageID=10928035&#10928035

Cheers