I use scp to copy some files to a XFS local partition on a file server host and create a symbolic link to new deployed files locally though SSH. That partition is exported through NFS and mounted on several hosts.

    scp new-file-version fileserver:/nfs/exported/path
    ssh fileserver ln -s new-file-version /nfs/exported/path/file

If I check for the deployed files and symbolic link locally in the file server everything is fine:

    fileserver$ ls -l /nfs/exported/path
    lrwxrwxrwx  1 root root  56 Oct 30 12:30 file -> new-file-version
    -rwxr-xr-x 11 root root 220 Oct 30 12:34 new-file-version
    -rwxr-xr-x 11 root root 220 Oct 30 12:12 previous-file-version

, but when I try to see the deployed files or copy them through NFS I get several some Input/output error in the just created symbolic links:


    nfsclient$ ls -l /nfs/mounted/path
    ls: cannot read symbolic link /nfs/mounted/path/file: Input/output error
    lrwxrwxrwx  1 root root  56 Oct 30 12:30 file
    -rwxr-xr-x 11 root root 220 Oct 30 12:34 new-file-version
    -rwxr-xr-x 11 root root 220 Oct 30 12:12 previous-file-version

 If I retry the operation, it will finally succeed after some attempts:

    nfsclient$ ls -l /nfs/mounted/path
    lrwxrwxrwx  1 root root  56 Oct 30 12:30 file -> new-file-version
    -rwxr-xr-x 11 root root 220 Oct 30 12:34 new-file-version
    -rwxr-xr-x 11 root root 220 Oct 30 12:12 previous-file-version


Any clue on why is this happenning?