Translated message

A translation of this page exists in English.

RHEL7:由于定期的 path_resolution 操作使NFS 客户端中的过时(stale)的子挂载仍然存在于 /proc/mounts 中,即使服务器中的导出已被删除

Solution In Progress - Updated -

Issue

  • 我们使用 RHEL7 以及 NetApp filer 来提供 NFS 存储。这些挂载使用 NetApp 快照备份技术来对 NAS 挂载进行备份。 最近出现大量报告,显示一些带有 NAS 的主机有隐藏的“.snapshot”目录挂载在主机中。随着时间的推移,这些快照备份被删除,然后挂载会因为它们已不存在而变为 stale 状态。 这类挂载永远不会在 NFS 客户端被删除,一直保留在 /proc/mounts 中并可见。
    例如:

    df: '/mnt/netapp/.snapshot/hourly.2018-01-15_2200': Stale file handle
    
  • cd 到 NAS 挂载上的 ".snapshot" 目录,执行类似于 ls 的命令,".snapshot" 目录自动挂载,且不会消失。一个临时的修复方案是,简单地 umount 过时的挂载,它们会消失。

Environment

  • Red Hat Enterprise Linux 7.4 (NFS 客户端)
    • kernel-3.10.0-1062.el7 之前的版本
    • 通过 path_resolution 操作交叉挂载的非 autofs 挂载的 NFS 子挂载
  • NFS 服务器
    • 存在 NetApp ".snapshot" 目录
    • 子挂载在 NFD 服务器端已被销毁但仍挂载在 NFS 客户端

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