Noobie NFS4 question
**Edit: path for mount was incorrect
Distro Server: CentOS 5.5 Clients: Fedora(latest) OSX(latest) Backround I am attempting to setup a server in my house mostly(for the first time) for backups and file sharing. It is important to me that file permissions are preserved. So its my understanding that I must use idmapd in order for this to work. As of now I'm only working with the linux distros while osx will be dealt with once these two work together. portmapper is up and running, along with lockd on both machines. Firewalls are also down on both machines for now. The server side was all setup using the GUI interface with no extra options selected. Problem When attempting to "mount -t nfs4 10.0.0.2/$sharedfolder /mnt" I get an error operation not permitted with no error printing in /var/log/message. If I use "mount -t -o nolock nfs4 10.0.0.2/$sharedfolder /mnt" it mounts just fine. Ive checked both machines multiple times to make sure that lockd is up and running. In the idmapd.conf file I the domain as "localdomain" for both machines but I doubt that is right; like I stated above this is my first attempt at a server. I'm assuming the problem is a whole missing step that involves some kind of id mapping server I need to setup. If someone could point me in the right direction it would be much appreciated. Thanks for your time Anthony *also UID and GID are the same on both machines |
Can you paste your /etc/exports file? Do you known that in NFS4 has changed format in comparison to NFS3?
|
Quote:
Quote:
|
So you have configuration for NFS3. To mount directory exported that way try:
Code:
mount -t nfs 10.0.0.2/tmp /mnt |
Wow special does not quite explain that....oversight. Thanks though! It did work though I would prefer nfs4 simple for the learning experience. Where/How did I go wrong?
|
For NFS4 you have to:
1. Define root directory for sharing, for example I have /srv/nfs. 2. Create there directories which will act as mountpoints for shared directories, for ex. Code:
mkdir -p /srv/nfs/tmp Code:
/tmp /srv/nfs/tmp none auto,bind 0 0 Code:
/srv/nfs 10.0.0.0/24(rw,async,nohide,no_root_squash,fsid=0) Code:
mount -t nfs4 10.0.0.2/tmp /mnt/tmp Code:
mount -t nfs4 10.0.0.2/ /mnt |
All times are GMT -5. The time now is 03:26 PM. |