开发高可用集群

This commit is contained in:
zeaslity
2024-11-27 09:34:28 +08:00
parent a0792c50cb
commit 59c23a2a97
20 changed files with 8426 additions and 55 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
common_dir_list=(/var/lib/docker/ /var/log/ /root/ /data /home)
# 查找最深3级目录并计算空间占用
for dir in "${common_dir_list[@]}"
do
echo "start to find disk usage of $dir"
find "$dir" -mindepth 1 -maxdepth 6 -exec du -sh {} + | sort -hr | head -n 10
echo ""
done