Umount:/var:device is busy

Source: Internet
Author: User
Remove mount display device is busy

This problem occurs when there is a process present on the current mount point

[Root@zabbix ~]# umount/dev/mapper/vg_zabbix-logvol02
umount:/var:device is busy.
        (In some cases useful info about processes, use the
         device are found by lsof (8) or fuser (1))
Solve:

Use the following name to view the processes running above the mount point and then stop, as follows:

[Root@zabbix ~]# fuser-m-v/dev/mapper/vg_zabbix-logvol02
                     USER        PID ACCESS COMMAND
/dev/mapper/vg_ ZABBIX-LOGVOL02:
                     root       1534 f ... auditd
                     root 1556 f .... rsyslogd
                     root       2024 f .... crond
Fuser-m–k/dev/mapper/vg_zabbix-logvol02

Note: Above is the process of killing the mount point directly above using kill, it is recommended to use daemon to stop the process.

[Root@zabbix ~]#/etc/init.d/rsyslog stop
shutting down system logger:                               [  OK  ]
[Root@zabbix ~]# Fuser-m-v/dev/mapper/vg_zabbix-logvol02
                     USER        PID ACCESS COMMAND
/dev/mapper/vg_zabbix-logvol02:
                     Root       1534 f ... auditd
                     root       2024 f ... crond
[Root@zabbix ~]#/etc/init.d/crond Stop
stopping Crond:                                            [  OK  ]
[Root@zabbix ~]#/etc/init.d/auditd stop
stopping auditd:                                           [  OK  ]
[Root@zabbix ~]# fuser-m-v/dev/mapper/vg_zabbix-logvol0
cannot stat/dev/mapper/vg_zabbix-logvol0:no such file o R directory
cannot stat/dev/mapper/vg_zabbix-logvol0:no such file or directory
cannot stat/dev/mapper/vg_ Zabbix-logvol0:no such file or directory
Re-Uninstall
[Root@zabbix ~]# Umount/dev/mapper/vg_zabbix-logvol02

Reference Link: http://www.cnblogs.com/dkblog/archive/2012/07/18/2597192.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.