Ok let’s add a little information here to see if this helps anyone.
Here’s an ls -la of the /images folder
[CODE]8 drwxrwxrwx+ 2 root root 4096 Apr 8 17:49 dev
-rwxrwxrwx+ 1 root root 0 Apr 8 17:15 .mntcheck[/CODE]
And of the images/dev folder
[CODE]-rwxrwxrwx+ 1 root root 0 Apr 8 17:49 .mntcheck[/CODE]
Here’s the output of ps ax|grep nfs
[CODE]
523 ? S< 0:00 [nfsiod]
1307 ? S< 0:00 [nfsd4]
1308 ? S< 0:00 [nfsd4_callbacks]
1309 ? S 0:00 [nfsd]
1310 ? S 0:00 [nfsd]
1311 ? S 0:00 [nfsd]
1312 ? S 0:00 [nfsd]
1313 ? S 0:00 [nfsd]
1314 ? S 0:00 [nfsd]
1315 ? S 0:00 [nfsd]
1316 ? S 0:00 [nfsd]
5885 pts/0 S+ 0:00 grep --color=auto nfs
[/CODE]
Here’s what’s in /etc/exports
[CODE]
/images *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure)
/images/dev *(rw,sync,no_wdelay,no_root_squash,insecure)
[/CODE]
ExportFS
[CODE]
/images <world>
/images/dev <world>
[/CODE]
And finally the /etc/fstab
[CODE]
IPADDRESS:/fog /images nfs defaults 0 0
[/CODE]
Hopefully this will be of benefit to someone!
32bit Ubuntu 12.04 LTS by the way.
Edit:
Also decided to run the exportfs -a command as per this guide [url]http://www.fogproject.org/wiki/index.php?title=Change_NFS_location[/url]
This was the output which is… interesting to me
[CODE]
exportfs: /etc/exports [1]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export “*:/images”.
Assuming default behaviour (‘no_subtree_check’).
NOTE: this default has changed since nfs-utils version 1.0.x
exportfs: /etc/exports [2]: Neither ‘subtree_check’ or ‘no_subtree_check’ specified for export “*:/images/dev”.
Assuming default behaviour (‘no_subtree_check’).
NOTE: this default has changed since nfs-utils version 1.0.x
exportfs: /images/dev does not support NFS export
exportfs: /images does not support NFS export
[/CODE]
Second Edit -
Final update. Nope I am still not working here. I went ahead and mounted the device to the images folder as cifs share instead of an nfs share. Again, full permissions to do anything I want on there, navigated to the folder, created files, deleted others to confirm access.
Booted off the NIC. STILL got permission denied.
Checked the NAS log files, not even a hint of it touching the NAS at all.
I am tearing my hair out on this too. And it might be something really obvious. One thing I can absolutely confirm is that it’ll work on the local drive, so it’s just something to do with the NAS.
I’ve gone and recreated the entire array on the NAS but still no joy!
Third Edit -
(I’m doing it like this so as not to bump threads unnecessarily)
I went and monitored the /dev/syslog and found this
[CODE]
Apr 9 15:56:46 SYSNAME rpc.mountd[1326]: authenticated mount request from IPADDRESS:834 for /images/dev (/images/dev)
Apr 9 15:56:46 SYSNAME rpc.mountd[1326]: qword_eol: fflush failed: errno 22 (Invalid argument)
Apr 9 15:56:46 SYSNAME rpc.mountd[1326]: Cannot export /images/dev, possibly unsupported filesystem or fsid= required
[/CODE]
What’s interesting is the filesystem is EXT4, but I had the same issue on EXT3. So I’m now reformatting my NAS to EXT3 and will update again when this is done