今天在系统上发现一个分区挂载了一个window服务器的一个共享分区,想卸载这个挂载的device,结果umount的时候报错了:
-
[root@kvm /]# mount
-
/dev/mapper/VolGroup-lv_root on / type ext4 (rw)
-
proc on /proc type proc (rw)
-
sysfs on /sys type sysfs (rw)
-
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
-
tmpfs on /dev/shm type tmpfs (rw)
-
/dev/sda1 on /boot type ext4 (rw)
-
/dev/mapper/VolGroup-lv_home on /home type ext4 (rw)
-
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
-
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
-
xenstore on /var/lib/xenstored type tmpfs (rw)
-
/var/ftp/pub/CentOS-6.4-i386-bin-DVD1.iso on /var/ftp/pub/iso type iso9660 (ro,loop=/dev/loop0)
-
//172.28.200.31/setup/PACS on /tmp type cifs (rw) 这个是远程挂载的window的共享的文件夹,想卸载这个驱动器
-
[root@kvm ~]# fuser -m /tmp
-
/tmp: 5081 ##ID:5081 进程id 5081在使用这个分区
-
[root@kvm ~]# ps aux | grep 5081
-
root 5081 0.0 0.3 205852 9084 pts/0 S 13:31 0:00 /usr/local/php/sbin/php-fpm --fpm-config /usr/local/php/etc/php-fpm.conf
-
root 7287 0.0 0.0 103300 792 pts/0 S+ 14:53 0:00 grep 5081
-
[root@kvm ~]# kill -9 5081
-
[root@kvm ~]# /etc/init.d/php-fpm: line 53: 5081 已杀死 $php_fpm_BIN $php_opts
-
failed
-
-
[root@kvm ~]# ps aux | grep 5081
-
root 7295 0.0 0.0 103300 788 pts/0 S+ 14:53 0:00 grep 5081
-
-
[root@kvm ~]# fuser -m /tmp 没人在使用了,安静了
-
[root@kvm ~]# umount /tmp 终于可以卸载了,清净了