Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > NFS sharing woes

NFS sharing woes
Thread Tools
Samad
Fresh-Faced Recruit
Join Date: Nov 2001
Location: home
Status: Offline
Reply With Quote
Aug 26, 2002, 03:11 PM
 
I have two computers on my LAN:
10.0.0.1 - Linux (Mandrake)
10.0.0.2 - Jaguar
I would like 10.0.0.1 be able to mount /Users/samad on 10.0.0.2. In the NetInfo Mgr, I set up my /exports like this:
name = /Users/samad
clients = 10.0.0.1
opts = alldirs, mapall=nobody

When I log in on 10.0.0.1, I do:
mount -t nfs 10.0.0.2:/Users/samad /mnt/share
After about 5 minutes, I get the message:
mount: RPC: Port mapper failure - RPC: Unable to send
In the Finder, when I do Go>Connect To Server..., 10.0.0.2:/Users/samad is listed there. But when I try to connect there, I get:
Connecting to nfs://10.0.0.2/Users/samad... An error has occurred (error = -5000).
Any suggestions?
Thanks,
Samad
     
prolix
Forum Regular
Join Date: Oct 2000
Location: my powerbook :)
Status: Offline
Reply With Quote
Aug 28, 2002, 01:35 PM
 
i've been trying to do the same thing. i'm running 10.2 then i have a rh7.3 box that i want to access drives on my osX box with.

i setup the exports as described above and nothing will mount the drive. i even tried some nfs gui utility i found to make sure i wasn't missing something when i setup the map.

even my ibook could't access. has anyone tried to setup anything like this on 10.2 and had success? right now i'm using smb b/c its all i could get to work at the moment. i'd rahter use nfs though.
     
H * � �
Junior Member
Join Date: Oct 2001
Status: Offline
Reply With Quote
Aug 30, 2002, 05:11 PM
 
How to quickly mount NFS volumes on a OS X client.
See the man pages on niutil, etc. for the approved way.

1.
Make sure the directory is actually being shared on the remote machine;
sun:/# ls -ld /storage
drwxrwxrwx 3 root root 1024 Aug 28 06:00 /storage
sun:/# vi /etc/dfs/dfstab
sun:/# grep storage /etc/dfs/dfstab
share -F nfs -d storage /storage
sun:/# /etc/init.d/nfs.server start
sun:/# share
- /storage rw "storage"
sun:/#

2.
Start portmap as root on the OS X client;
[mac:~] user% sudo /usr/sbin/portmap
[mac:~] user% rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
[mac:~] user%

3.
Mount the remote NFS filesystem. Use the FQDN or the IP;
In Finder, Go > Connect to Server > Address: > nfs://sun.example.com:/storage > Connect > Add to Favorites <optional>.
The NFS volume will show at Finder > Go > Computer.

4.
Make sure portmap starts during reboot:
[mac:~] user% sudo vi /etc/hostconfig
[mac:~] user% grep RPC /etc/hostconfig
#RPCSERVER=-AUTOMATIC-
RPCSERVER=-YES-
[mac:~] user%
     
cwasko
Senior User
Join Date: Jul 2000
Status: Offline
Reply With Quote
Aug 30, 2002, 05:27 PM
 
Any chance that the firewall is enabled on the OSX machine?
     
H * � �
Junior Member
Join Date: Oct 2001
Status: Offline
Reply With Quote
Aug 31, 2002, 10:13 AM
 
The OS X built in firewall only blocks incoming connections. If you are mounting an NFS volume on the Mac client, that is an outgoing connection and won't be blocked.
     
prolix
Forum Regular
Join Date: Oct 2000
Location: my powerbook :)
Status: Offline
Reply With Quote
Aug 31, 2002, 11:18 AM
 
the problem isn't mounting a remote share on the osX box, what i wanted to do was create an nfs share on the osX box and mount it on the linux box. i setup the share as described in the first post but nothing can mount it, but according to the osX box running the share its active. i think thats the problem that the Samad had also.
     
H * � �
Junior Member
Join Date: Oct 2001
Status: Offline
Reply With Quote
Aug 31, 2002, 08:46 PM
 
I see. For NFS exports I would suggest using the shareware NFS Manager 'http://www.bresink.de/osx/NFSManager.html', it has excellent documentation. Copy the application to your disk before running it.
     
amonitzer
Forum Regular
Join Date: Aug 2001
Location: Vienna, Austria
Status: Offline
Reply With Quote
Sep 1, 2002, 06:16 AM
 
AFAIK only UFS-disks can be exported using NFS. Additionally, you need Linux >2.4 to be compatible.
     
prolix
Forum Regular
Join Date: Oct 2000
Location: my powerbook :)
Status: Offline
Reply With Quote
Sep 1, 2002, 10:45 AM
 
Originally posted by amonitzer:
AFAIK only UFS-disks can be exported using NFS. Additionally, you need Linux >2.4 to be compatible.
so any macos extended fs drives can't be exported as nfs? i guess that explain it. nothing i read bothered to mention that, but it does make sense.

i think i'm just going to move all my big drives into the linux box and make it a fileserver and then export nfs sharepoints from that box and mount them to osX.

thanks for the help, the filesystem incompatability is the little piece of info i was missing
     
H * � �
Junior Member
Join Date: Oct 2001
Status: Offline
Reply With Quote
Sep 1, 2002, 08:33 PM
 
It's not true that only UFS volumes can be exported with NFS, try NFS Manager and see.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 06:00 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,