mount.nfs: Stale file handle的解决方法
2016-10-26 23:17
1401 查看
在NFS客户端挂载rpc共享服务的时候出现这个问题[root@lnmp02 ~]#
mount -t nfs 192.168.20.6:/data /mntmount.nfs: Stale
file handle原因是当client端mount上了server端的directory之后,假如server端又将这个directory
unshare了或者删除了,那么就会在client端出现这个错误。我前面确实删除过NFS服务端的/data目录,所以在再次挂载的时候出现了这个问题。那么应该怎么做呢?解决方法:
其实解决办法很简单,就是在client上把那个文档umount掉。可是其实做起来很难,因为经常会得到 is busy的错误。刚好我在看老男孩linux的视频的时候学到一条可以解决这个问题的命令umount[root@lnmp02 ~]#
umount -lf /mnt[root@lnmp02 ~]#
mount -t nfs 192.168.20.6:/data /mnt[root@lnmp02 ~]# df
-hFilesystem 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% /boot192.168.20.6:/data 18G
1.2G 16G 8% /mnt-lf /mnt这样子就顺利解决了
mount -t nfs 192.168.20.6:/data /mntmount.nfs: Stale
file handle原因是当client端mount上了server端的directory之后,假如server端又将这个directory
unshare了或者删除了,那么就会在client端出现这个错误。我前面确实删除过NFS服务端的/data目录,所以在再次挂载的时候出现了这个问题。那么应该怎么做呢?解决方法:
其实解决办法很简单,就是在client上把那个文档umount掉。可是其实做起来很难,因为经常会得到 is busy的错误。刚好我在看老男孩linux的视频的时候学到一条可以解决这个问题的命令umount[root@lnmp02 ~]#
umount -lf /mnt[root@lnmp02 ~]#
mount -t nfs 192.168.20.6:/data /mnt[root@lnmp02 ~]# df
-hFilesystem 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% /boot192.168.20.6:/data 18G
1.2G 16G 8% /mnt-lf /mnt这样子就顺利解决了
相关文章推荐
- mount.nfs: Stale file handle的解决方法
- Stale NFS file handle的解决方法
- Stale NFS file handle的解决方法
- Stale NFS file handle的解决方法
- Stale NFS file handle的解决方法 、目录 busy 无法卸载解决办法
- Stale NFS file handle的解决方法
- Stale NFS file handle的解决方法
- Stale NFS file handle的解决方法
- Stale NFS file handle的解决方法
- linux 启动设备时出现 Stale NFS file handle 错误 解决方法
- [svc]nfs客户端报错解决Stale file handle
- linux升级内核,出现:mount:could not find filesystem‘/dev/root’的解决方法
- mount: unknown filesystem type ‘ntfs’ 解决方法
- mount 挂载虚拟软盘提示:mount : you must specify your systemfile type 的解决方法
- linux-mount: unknown filesystem type 'smbfs'解决方法记录
- Ubuntu 虚拟机开启 后出现 mount of filesystem failed 解决方法
- Stale NFS file handle
- NFS挂载时出现"mount.nfs: access denied by server while mounting "的解决方法
- Ubuntu下采用nfs来mount时,提示xxxxx超级块错误解决方法
- ajaxFileUpload :jQuery.handleError is not a function的解决方法