rename() duplicates paths for a file on NFSv4 volume

Solution Unverified - Updated -

Issue

  • rename() duplicates paths for a file on NFSv4 volume.
  • mv fails with the following error.

    On client1, move test_file from test_dirA to test_dirB:

    [root@nfs_client1 ~]# mv /mnt/nfs/test_dirA/test_file /mnt/nfs/test_dirB/
    

    After that, on client2, move back the same file from test_dirB to test_dirA:

    [root@nfs_client2 ~]# mv /mnt/nfs/test_dirB/test_file /mnt/nfs/test_dirA/
    mv: `/mnt/nfs/test_dirB/test_file' and `/mnt/nfs/test_dirA/test_file' are the same file
    

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 6
  • NFSv4 client

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In