mount.nfs: Stale file handle

Source text address: https://blog.51cto.com/11374450/1866111

mount.nfs: Stale file handle of the solution

In the NFS client mount rpc appear when the issue of shared services

[root@lnmp02 ~]# mount -t nfs 192.168.20.6:/data /mnt

mount.nfs: Stale file handle

The reason is that when the client-side mount on a directory server side, if the server-side turn up the directory unshare or delete, then this error will occur at the client. I really want to remove the front over NFS server's / data directory, so when re-mount the emergence of this problem. So how should you do it?

Solution:

     In fact, the solution is simple, that is, the client put that document umount out. But in fact, it is hard, because often get is busy error.

I'm just looking at old boy linux learn command can solve this problem a video of the time

umount

[root@lnmp02 ~]# umount -lf /mnt

[root@lnmp02 ~]# mount -t nfs 192.168.20.6:/data /mnt

[root@lnmp02 ~]# df -h

Filesystem          Size  Used Avail Use% Mounted on

/dev/sda3            18G  1.2G   16G   8% /

tmpfs               504M     0  504M   0% /dev/shm

/dev/sda1           190M   48M  132M  27% /boot

192.168.20.6:/data 18G 16G 1.2G 8% / mnt

-lf / mnt

This way it is successfully resolved

 

Guess you like

Origin www.cnblogs.com/liuhaobk/p/11771267.html