Both machines are running Ubuntu 12.04
Remote NFSv4 Client
$ ls /mnt/storage/aaaaaaa_aaa/bbbb/cccc_ccccc gives this error:
ls: reading directory .: Too many levels of symbolic links
How can I fix this?
When error occurs ls start listing the files, however PHP brakes.
On the NFSv4 Server
In /etc/fstab
:
/mnt/storage /srv/storage none bind 0 0
In /etc/exports
/srv 192.168.1.0/24(rw,async,insecure,no_subtree_check,crossmnt,fsid=0,no_root_squash)
/srv/storage 192.168.1.0/24(rw,async,nohide,insecure,no_subtree_check,no_root_squash)
ERROR
root@ds:root@ds:/mnt/storage/foreign_dbs/imdb/imdb_htmls# ls -l | head
ls: reading directory .: Too many levels of symbolic links
total 10302840
-rw-r--r-- 1 root root 10484 Jul 5 13:56 0019038.gz
-rw-r--r-- 1 root root 16264 Mar 30 00:31 0259701.gz
-rw-r--r-- 1 root root 13784 Mar 30 14:20 1000000.gz
-rw-r--r-- 1 root root 12741 Mar 30 13:04 1000003.gz
-rw-r--r-- 1 root root 12794 Mar 30 12:40 1000004.gz
-rw-r--r-- 1 root root 13123 Mar 30 12:07 1000005.gz
-rw-r--r-- 1 root root 13183 Mar 30 12:04 1000006.gz
-rw-r--r-- 1 root root 13443 Jul 4 01:16 1000007.gz
-rw-r--r-- 1 root root 12968 Mar 30 11:05 1000008.gz
I came across it in PHP. scandir would return 1612577.gz & 1612579.gz, but skips 1612578.gz and yet the file types and properties are identical on them
and this only happens on the nfs client, works 100% on the server