|
|
NFS sharing woes
|
|
|
|
Fresh-Faced Recruit
Join Date: Nov 2001
Location: home
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Oct 2000
Location: my powerbook :)
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Oct 2001
Status:
Offline
|
|
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%
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Jul 2000
Status:
Offline
|
|
Any chance that the firewall is enabled on the OSX machine?
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Oct 2001
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Oct 2000
Location: my powerbook :)
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Oct 2001
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Aug 2001
Location: Vienna, Austria
Status:
Offline
|
|
AFAIK only UFS-disks can be exported using NFS. Additionally, you need Linux >2.4 to be compatible.
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Oct 2000
Location: my powerbook :)
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Oct 2001
Status:
Offline
|
|
It's not true that only UFS volumes can be exported with NFS, try NFS Manager and see.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|