Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15056

NFS: Error 'Stale file handle' caused by executing 'mount' command in the mount directory after mounting to nfs-hdfs-gateway

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.2.1
    • None
    • nfs
    • None

    Description

      10.43.33.246 is nfs-hdfs-gateway,

      centos87 is nfs-hdfs-client,

      The recur steps are as follows:

      [root@centos87 ~]# mount -t nfs -o vers=3,proto=tcp,nolock 10.43.33.246:/ /var/data/share/am
      [root@centos87 ~]# cd /var/data/share/am
      [root@centos87 am]# ls
      csvFile hbase oneminer solr sparkSQL spark-tmp testaie3 user zaip_data_87
      hadoop hive saveModelPath spark sparkSQL-tmp test time_series_demo wzc
      [root@centos87 am]# mount | grep 10.43
      10.43.33.246:/ on /var/data/share/am type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.43.33.246,mountvers=3,mountport=4242,mountproto=tcp,local_lock=all,addr=10.43.33.246)
      [root@centos87 am]# ls -lrt
      ls: cannot open directory .: Stale file handle

       

      Key point:

      1. The operating system of the node(centos87) where nfs-client is located is CentOS Linux release 7.7.1908 (Core). It can recur with Redhat7, but it can not recur with Redhat6.
      2. After the command 'mount' is executed in the mount directory('/var/data/share/am'), the problem will recur. If it is executed in other directories, the problem will not recur.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Drsuperman WangZhichao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: