When umount, the target is busy solution

Recently, the company's business has been upgraded, and the disk for data storage is close to full and ready to be replaced.
View disk usage

df -h

Unmount /data
insert image description here
using the command

umount /data

The system prompts as shown in the figure below
insert image description here
, prompting that the /data object is busy, and the reason is that the device is occupied by some upgrade programs.
Next, find those programs through the fuser command

fuser -mv /data

insert image description here
As shown in the figure: process 6381, 25695, next check these processes

ps -ef|grep 6381
ps -ef|grep 25695

insert image description here
insert image description here
Confirm that the program can be closed, and then you can directly kill these two programs

kill -9 6381 25695

unmount

umount /data/

In this way, the mount can be canceled, as shown in the figure below
insert image description here
Finally, let’s talk about what the parameters of ps -ef|grep mean

insert image description here

  • UID: Indicates who owns the program

  • PID: refers to the ID of the program

  • PPID: refers to the ID of the parent program of the program

  • C: Refers to the percentage of CPU usage

  • STIME: The start time of the program

  • TTY: Refers to the login terminal

  • TIME: Refers to the time when the program uses the CPU

  • CMD: command issued

Guess you like

Origin blog.csdn.net/weixin_47139540/article/details/124752654