cd装入后重新挂载文件系统

时间:2020-08-24 01:43:49

标签: filesystems mount shared umount

我遇到了奇怪的挂载/卸载情况

在我进行初始设置时

  1. NFS服务器
setTodos([{text, isCompleted: false, id: uuid()}, ...todos]);
localStorage.setItem("currList", JSON.stringify(todos)); // todos here don't have the new todo
  1. 应用服务器

    用于挂载共享文件系统的目录

echo $STRING| sed 's/\\n/\n/g
   IP: 10.22.10.10
   Shared Filesystem
    /mnt/exported
    /mnt/shared
  1. NFS服务器

    重命名共享文件系统

Mounted filesystem
  1. 应用服务器

    重命名目录以挂载共享文件系统

    mount -t nfs <ip-nfs>:/mnt/exported /mnt/shared
    /mnt/exp
    /mnt/sharing
Unmounted initial shared filesystem
    umount /mnt/shared -l
  1. NFS服务器

    删除了初始共享文件系统

Mounted new shared filesystem
  1. 应用程序服务器

    试图删除共享文件系统的初始目录

    mount -t nfs <ip-nfs>:/mnt/exp /mnt/sharing

但是,我无法删除该初始目录,remove命令只是挂起 然后,我还注意到,当我运行命令df -h时,它只会挂起,必须杀死ssh会话。 我还注意到,每当我运行一个访问/ mnt / shared的命令时,即使NFS服务器上的共享文件系统不再退出,它也会重新挂载文件系统。

任何想法都可能导致这种情况。是重新启动应用程序服务器的最佳解决方案?

感谢您提供任何信息。

干杯, 罗兰(Roland)

0 个答案:

没有答案