两台机器都运行 Ubuntu 12.04
远程 NFSv4 客户端
$ ls /mnt/storage/aaaaaaa_aaa/bbbb/cccc_ccccc gives this error:
ls: reading directory .: Too many levels of symbolic links
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?
当发生错误时,ls 开始列出文件,但是 PHP 会刹车。
在 NFSv4 服务器上
在/etc/fstab:
/mnt/storage /srv/storage none bind 0 0
Run Code Online (Sandbox Code Playgroud)
在 /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)
Run Code Online (Sandbox Code Playgroud)
错误
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 …Run Code Online (Sandbox Code Playgroud)