这里补充一下,常用的关于disk排查的命令就是df
, du
, dd
, lsof
, lsblk
, blkid
, mount
, fdisk
, mkfs
, sync
, lvm
. More about Linux Storage, see my blog <<Linux Storage System>>
.
I get error messages when run docker load
command, this is caused by disk space run out. How do I know the disk utilization?
Shows the amount of disk space used and available on Linux file systems.
1 | # disk space report tool, check mount point and fs |
Shows total size of the directory and it’s subdirectories
1 | # du: estimate file space usage |
lsof
在这方面主要就是检查哪些文件正在被什么user, process使用:
1 | # see what is interacting with this file |
当然在network上lsof
也很强大:
An lsof primer
How to use lsof command