LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   CentOS based NFS Server and Mac OS X not mounting exported shares (https://www.linuxquestions.org/questions/linux-server-73/centos-based-nfs-server-and-mac-os-x-not-mounting-exported-shares-617507/)

Jamesk5 01-30-2008 06:38 PM

CentOS based NFS Server and Mac OS X not mounting exported shares
 
I'm not sure if this is an issue related to my NAS or PowerBook - but hopefully someone will be able to give me a hand.
I've got an old ShuttlePC running CentOS (Trixbox - VoIP server), that I use as an NFS server primarily at the moment with 3 shares listed in /etc/exports as follows:

Code:

/share/images 192.168.0.0/255.255.0.0(rw,no_root_squash,insecure,sync)
/share/mission 192.168.0.0/255.255.0.0(rw,no_root_squash,insecure,sync)
/share/music 192.168.0.0/255.255.0.0(rw,no_root_squash,insecure,sync)

I recently went away for a holiday and did some updates using Yum to the packages on my Shuttle, just went through and updated what needed to be updated essentially. I'd had some issues with mounting NFS shares prior to doing this, but nothing to major.
Now, on returning from my weekend long holiday - I can't seem to mount anything from my NFS server onto my PowerBook. External drives mount fine, and I can SSH into the machine no problem.

Here's a bunch of logs/errors:
When trying to mount the nfs share on my PowerBook:
Code:

James-PowerBook:~ jameskirsop$ mount -o -P nfs://192.168.0.10:/share/music ~/Music
mount_nfs: can't get net id for host

When trying to mount the nfs share on the own server:
Code:

-sh-3.00$ sudo mount nfs://192.168.0.10:/share/music /testmount
mount: can't get address for nfs

But the following works:
Code:

-sh-3.00$ sudo mount 192.168.0.10:/share/music /testmount
/var/log/messages on the CentOS box shows (among other things) log messages like this:
Code:

Jan 27 04:22:35 beach mountd[2394]: authenticated unmount request from 192.168.0.2:996 for /share/music (/share/music)
Jan 27 04:31:36 beach mountd[2394]: authenticated mount request from 192.168.0.2:889 for /share/music (/share/music)
Jan 27 05:32:35 beach mountd[2394]: authenticated unmount request from 192.168.0.2:928 for /share/music (/share/music)

Where beach is the hostname of the machine.

system.log on the PowerBook contains alot of repeats of the following (or something similar)
Code:

Jan 31 11:36:03 James-PowerBook kernel[0]: nfs server 192.168.0.10:/share/music: lockd not responding
Jan 31 11:36:03 James-PowerBook KernelEventAgent[35]: tid 00000000 received VQ_NOTRESP event (1)
Jan 31 11:36:03 James-PowerBook KernelEventAgent[35]: tid 00000000 type 'nfs', mounted on '/Users/jameskirsop/Music', from '192.168.0.10:/share/music', not responding

I have ~/Music on my PowerBook aliased to an nfs auto mount so that my whole iTunes collection is on my NAS - so currently I can't get to my iTunes Library on my PowerBook (unless I was to copy stuff via scp to my local drive - but I haven't got enough disk space to fit it all in).

Has anyone had a similar problem with CentOS recently - or has anyone got suggestions on what to do?

frndrfoe 01-31-2008 03:15 PM

change
sudo mount nfs://192.168.0.10:/share/music /testmount
to
sudo mount -t nfs 192.168.0.10:/share/music /testmount

It is trying to resolve nfs as a hostname instead of a protocol


All times are GMT -5. The time now is 03:44 PM.