使用 umount -l 强制卸载NFS卷

一、由于NFS Server设备掉电重启,不能umount

1.1、不能mount

[root@zpdy ~]# /opt/emc/boostfs/bin/boostfs mount /opt/ddboost -d 10.20.0.207 -s unit_yidonghuli -o allow-others=true

Not able to access the mount point /opt/ddboost

1.2、不能切换当前路径

[root@zpdy ~]# cd /opt/ddboost
-bash: cd: /opt/ddboost: 传输端点尚未连接

1.3、不能umount

[root@zpdy ~]# umount /opt/ddboost
umount: /opt/ddboost: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))

[root@zpdy ~]# fuser  /opt/ddboost
无法分析 /opt/ddboost: 传输端点尚未连接
无法分析 /opt/ddboost: 传输端点尚未连接


[root@zpdy ~]# umount -f /opt/ddboost
umount2: 设备或资源忙
umount: /opt/ddboost: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
umount2: 设备或资源忙

二、使用 umount -l 强制卸载后,重新挂载成功

[root@zpdy ~]# umount -l /opt/ddboost

[root@zpdy ~]# /opt/emc/boostfs/bin/boostfs mount /opt/ddboost -d 10.20.0.207 -s unit_yidonghuli -o allow-others=true
mount: Mounting 10.20.0.207:unit_yidonghuli on /opt/ddboost

[root@zpdy ~]# ls /opt/ddboost/
database  day_bak  mon_bak  tmp_20210413_bk  yidonghuli-backup.log
点赞

发表回复

电子邮件地址不会被公开。必填项已用 * 标注