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
using the command
umount /data
The system prompts as shown in the figure below
, 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
As shown in the figure: process 6381, 25695, next check these processes
ps -ef|grep 6381
ps -ef|grep 25695
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
Finally, let’s talk about what the parameters of ps -ef|grep mean
-
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