如何umount目前device busy的文件系统(fuser简单用法)?

(1)用fuser命令的四步:

1.确认挂接点有那些进程需要杀掉

# fuser -cu /mount_point

2.向进程发出SIGKILL信号:

# fuser -ck /mount_point

3.确认看是否还有进程在访问挂接点

# fuser -c /mount_point

4.umount挂接点

#  umount /mount_point

# fuser -u /dev/vg01/lvol1

This lists process IDs and login names of processes using /dev/vg01/lvol1.

# fuser -u /etc/passwd

This lists process IDs and login names of processes that have the passwd file open.

# fuser -uc /opt

This lists process IDs and login names of processes that have open files in the /opt file system.

# fuser -ku /dev/vg01/lvol1

This terminates all processes that are preventing logical volume lvol1 of volume group vg01

很多时候,不能umount,除了检查是否有应用程序尚在该目录打开文件之外,还要注意是否有用户远程登录在系统上,当前目录在该文件系统中,实在不行,就fuser -k吧。总能解决的,但要跟应用端确认。

方法二:

------------------------------------------------------------------------------------------------------

mount: Device busy

Problem(Abstract)

This technote explains why attempts to mount or umount an IBM® Rational® ClearCase® VOB on UNIX® or Linux® results in the error message Device busy.

Symptom

Cause

Mount Example:

$ /usr/atria/bin/cleartool mount /vobs/myvob

Mounting MVFS filesystem /vobs/myvob

mount: Device busy

Unmount Example:

$ /usr/atria/bin/cleartool umount /vobs/myvob

Unmounting MVFS filesystem /vobs/myvob

mount: Device busyNote: Running the above commands as root also results in the same error.

The message device busy is not a ClearCase error rather the message is being passed from the underlying operating system and indicates one of two scenarios:

If the Device Busy error message is received while attempting to mount a directory, this indicates that a user is in the mount point or the directory is already mounted.

If the Device Busy error message is received while attempting to unmount a directory, this indicates that a user or a process has an open file on that filesystem.

Resolving the problem

Determine which user is utilizing the mounted directory:

Use one of the operating system commands (such as fuser) to return a list of process IDs and user names that are currently using the directory mounted under the local_mount_point. This will help determine whether the process can be killed or to wait until it completes.

Example: fuser -uc /vobs/myvobNote: This command works on Solaris®, IRIX®, HP-UX®, Linux®, and AIX®. The above example assumes the fuser utility is defined in your path variable.

If fuser -uc /vobs/myvob returns an Invalid argument error, it might mean the VOB is already unmounted. Run the command ps -ef | grep/vobs/myvob to confirm.

Make sure that/vobs/myvob is not the user's current working directory or anyone else's on that same client host when unmounting.

Run the command mount with no options to check the table of mounts and search for any possible problems, or grep for /vobs/myvob.

If the above steps do not help then try restarting ClearCase.

If step #4 does not help, attempt to reboot the host.

PHP fuser,HP-UX中umount文件系统时报device busy--之fuser用法相关推荐

  1. 用fuser或者lsof解决无法umount问题(device is busy)

    umount卸载磁盘时,如果有进程在使用该盘,则卸载不成功,报错如下: # umount /data umount: /data:目标忙.(有些情况下通过 lsof(8) 或 fuser(1) 可以找 ...

  2. linux中umount命令的功能,Linux中的umount命令的详细解释

    Linux下的umount命令的主要功能就是用来卸除文件系统,下面由学习啦小编为大家整理了linux下的umount命令的详细解释,希望对大家有帮助! Linux中的umount命令的详细解释 Lin ...

  3. linux系统内核文百科,Linux之内核中的文件系统 -电脑资料

    文件描述符 一般说起文件和文件系统的时候,都会下意识的想到它们存在于磁盘上,管理各种文件呢?即运行时文件系统在内核中的表示. 我们知道,进程是操作系统分配资源的基本单位,文件也是在进程中被处理的.比如 ...

  4. 一般计算机系统中的文件系统采用,南昌大学2001年考研专业课试卷操作系统A

    南昌大学2001年攻读硕士学位研究生 入  学  考  试  试  题 报考专业:计算机应用             考试科目:操作系统(A) 一. 判断题(共15分,每题1分,答对的得1分;不答的不 ...

  5. 二十六、深入Node.js中的文件系统fs模块

    @Author:Runsen @Date:2020/6/8 人生最重要的不是所站的位置,而是内心所朝的方向.只要我在每篇博文中写得自己体会,修炼身心:在每天的不断重复学习中,耐住寂寞,练就真功,不畏艰 ...

  6. node汉字拼音转换需要用到pinyin包,使用pinyin中的分词时报错提示需要安装nodejieba依赖...

    1.使用pinyin中的分词时报错提示需要安装nodejieba依赖: 2.安装 npm install -g nodejieba 报错 解决方案如下:  1.安装  npm install -g n ...

  7. nodejs中的文件系统

    文章目录 简介 nodejs中的文件系统模块 Promise版本的fs 文件描述符 fs.stat文件状态信息 fs的文件读写 fs的文件夹操作 path操作 简介 nodejs使用了异步IO来提升服 ...

  8. Oracle asm aix盘,AIX/HP UX/LINUX上ORACLE ASM添加磁盘

    一.操作系统设置 1.LINUX操作系统 (1).扫描映射到主机的磁盘 需要重启(两个节点都需要) (2).通过lun id来查找新映射过来的磁盘,可以通过存储厂商提供的多路径来查看,两台服务器上新映 ...

  9. ux的重要性_颜色在UX中的重要性

    ux的重要性 When coming up with a new digital solution (desktop, mobile, app, whatever it may be) or any ...

最新文章

  1. eltable刷新整个表格方法_Word表格函数计算怎么做?都在这篇!
  2. React的深入解密一
  3. 【连载】【FPGA黑金开发板】NIOS II那些事儿--编程风格(三)
  4. Luogu3375 【模板】KMP字符串匹配
  5. 23种经典设计模式的java实现_3_桥接模式
  6. Context.PROVIDER_URL 逗号间隔
  7. python time模块
  8. Android 中文API (46) —— SimpleAdapter
  9. 亲和数(信息学奥赛一本通-T1154)
  10. Git 本地仓库与远程仓库链接
  11. 非结构化数据上下文中的GraphQL
  12. UHDTV(超高清电视) 的帧率规格:120fps
  13. 快速启动无法识别U盘启动盘。bios无法识别U盘启动盘
  14. 99%用户不知道 搜索引擎这样用才有效率
  15. 三种非递归遍历二叉树的方法
  16. net.sf.json.JSONException: JSONObject[节点名称] not found解决方法
  17. 微信重磅更新!上线4个实用功能,尝鲜体验有木有你想要的功能
  18. java的setbounds_Swing-setBounds()用法-入门
  19. HTML5之帆布(canvas)(三)
  20. SAMSUNG S3C2440的简易BootLoader ㈢

热门文章

  1. 青龙羊毛脚本(xxx步)
  2. pade逼近matlab,使用Pade近似式处理数字控制系统中的纯滞后.pdf
  3. 基于深度学习的推荐(二):基于FM初始化的FNN
  4. 花钱学Python其实没必要的,自学宝藏在这里
  5. java 图片旋转_Java实现图片旋转、指定图像大小和水平翻转|chu
  6. 第2章 GAN初步:2.2 生成1010格式规律
  7. 行研自选股行情日报自动更新方法——金融终端Excel插件版(无须Python)
  8. [R]_如何手动安装package
  9. JDK1.8HashMap会发生死循环吗?
  10. fopen 和 open 的什么区别(详细)