In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Analysis: the disk of k8s node node is full, which is usually caused by a container writing to the log, so you only need to find the corresponding node.
# one. Install the package ncdu (to prevent the impact of hard links)
Yum-y install ncdu
# II. View specific directories with large disk space
Through such a layer-by-layer search, it is found that the directory that caused the disk space to be full is
/ data/kubernetes/docker/overlay2/ba9d61214d6c065274161d7f0171e91001d209adce8f377b9bf698e18ec74713
Note: this directory is written in the inpsect of the container and can be found through the for loop.
three。 Locate the container id through the for loop
For i in docker ps | awk-F'[] +'{print $1}'; do echo $I & & docker inspect $I | grep'/ data/kubernetes/docker/overlay2/ba9d61214d6c065274161d7f0171e91001d209adce8f377b9bf698e18ec74713/merged';done
Once you find the id of the container, you will basically know which container caused it, and it will be easy to solve it later.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.