Alright here it goes.
Just to give a bit more on my setup.
I have 2 RPi's, and a laptop which is running debian as suggested.
The laptop has an IP address of 192.168.1.1/24 - One Pi has 192.168.1.2/24 - Second Pi has 192.168.1.3/24...All three are running into a switch.
My exports file on the laptop looks like:
Code:
/srv/nfs/motion_back *(rw,sync,no_root_squash,no_subtree_check)
/srv/nfs/motion_counter *(rw,sync,no_root_squash,no_subtree_check)
From my previous post, I changed location of the folders.
Permissions on the /srv/nfs:
Code:
drwxrwxrwx 2 nobody nogroup 4096 Jun 29 14:12 motion_back
drwxrwxrwx 2 nobody nogroup 4096 Jun 29 11:18 motion_counter
The fstab file on both Pi's with the path changed to their respective directories:
Code:
192.168.1.1:/srv/nfs/motion_counter /etc/motion/motion nfs auto,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
Now heres the interesting part. I have one of the Pi's working the way it should (/srv/nfs/motion_back). In order to do that I had to edit the /etc/rc.local file to have it start the service "rpcbind" start on boot. I have made that change on both Pi's
Since the other Pi is not working, when I go to mount it manually with the command:
Code:
mount -t nfs 192.168.1.1:/srv/nfs/motion_counter /etc/motion/motion
Thats when I get the error message:
Code:
mount.nfs: access denied by server while mounting 192.168.1.1:/srv/nfs/motion_counter
I should also mention I have edited the /etc/hosts.allow file with the following code:
Code:
portmap: 192.168.1.2
portmap: 192.168.1.3
Now, please have at it, and let me know what you all think.
Thank you!
Mike