CI: Log disk usage details
Five levels of depth gives us details about each Docker volume. Remove files or directories smaller than 1MB from the output to keep it short. Change-Id: I300e37106ab4dc2ebfa70371391c99cd43c7b14c
This commit is contained in:
parent
480ba15e7e
commit
545f36106c
@ -45,6 +45,8 @@ copy_logs() {
|
||||
cp /etc/sudoers ${LOG_DIR}/system_logs/sudoers.txt
|
||||
|
||||
df -h > ${LOG_DIR}/system_logs/df.txt
|
||||
# Gather disk usage statistics for files and directories larger than 1MB
|
||||
du -d 5 -hx / | sort -hr | grep '^[0-9\.]*[MGT]' > ${LOG_DIR}/system_logs/du.txt
|
||||
free > ${LOG_DIR}/system_logs/free.txt
|
||||
cat /etc/hosts > ${LOG_DIR}/system_logs/hosts.txt
|
||||
parted -l > ${LOG_DIR}/system_logs/parted-l.txt
|
||||
|
Loading…
Reference in New Issue
Block a user