rename() duplicates paths for a file on an NFSv4 volume

Solution Unverified - Updated -

Issue

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

    1. 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/
      
    2. 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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content