Record an error when alicloud ECS is operated and the disk is unloaded. The result of alicloud data disk unloading shows:
umount: /home: target is busy.
(In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
At first glance, it is very simple. If a process is occupying the disk, it is OK to exit. However, after troubleshooting, it is found that no process is occupied. At this time, a command needs to be used: fuser (use file or file structure to identify the process)
fuser -m -v /dev/vdb
-m Name specifies a file mounted on the file system or a mounted block device (name). In this way, all processes accessing the file or file system will be listed. If a directory is specified, it will be automatically converted to “name /”, and all file systems mounted under that directory will be used;
-v Detailed mode, output like PS command, including PID, user, command and many other fields. If it is accessed by the kernel, the PID is the kernel. – V output version number;
-k Kill the process that accesses the file. If – signal is not specified, sigkill signal will be sent;
-a Displays all the files specified on the command line. By default, the accessed files will be displayed.
Similar Posts:
- umount Error: umount.nfs4: device is busy [How to Solve]
- How to Solve NFS uninstall directory error
- Kali Linux 2.0 U disk installation error, unable to load CD-ROM
- Detailed explanation of PS AUX output parameter meaning
- Error reported in vscode after installing Git
- A start job is running for dev disk by when Ubuntu starts
- Using Windows 7 USB DVD download tool to create 64 bit win7 system installation U disk under 32-bit system
- Unknown file system type ‘NTFS’ on NTFS U disk mounted by CentOS
- [Solved] passwd: Authentication token manipulation error
- Some problems encountered in using e200p solid state on Ubuntu 19 (failed command: write fpdma queue status: {drdy})