diskPressure on LAB 7 5 - lfs258
hi @chrispokorni ,
hope all good there, here still losing my mind with the k8s dream...
Today i have a new problem to push here:
DiskPressure on the worker node and, consequently, pods are getting evicted once created.
here the output of few cmds.
Starting the lab
lc@control-plane-1-lfs258-n2:~$ kubectl get pod NAME READY STATUS RESTARTS AGE ds-one-7nzr7 0/1 Evicted 0 0s ds-one-mcq26 0/1 Evicted 0 0s lc@control-plane-1-lfs258-n2:~$ kubectl get pod NAME READY STATUS RESTARTS AGE ds-one-jjj4w 0/1 Evicted 0 14s ds-one-s4srn 0/1 Evicted 0 14s lc@control-plane-1-lfs258-n2:~$ kubectl get pod NAME READY STATUS RESTARTS AGE ds-one-rqznk 0/1 Evicted 0 0s ds-one-vshnk 0/1 Evicted 0 0s
Checking out
disk on the control plane
lc@control-plane-1-lfs258-n2:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 8.7G 8.0G 656M 93% / tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 1.6G 3.6M 1.6G 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock efivarfs 56K 24K 27K 48% /sys/firmware/efi/efivars /dev/sda16 881M 114M 705M 14% /boot /dev/sda15 105M 6.2M 99M 6% /boot/efi shm 64M 4.0K 64M 1% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/a5ea1d57a1963a265c31afc7a15b8c5104a80bb9f83c37957efe17eb99c291cf/shm shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/0c07e3d3d9db1a6ba519439e395e69b99f2cf679bc0dadbac46e8a9cfb025ba2/shm shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/61d9a1076b784422f788dbecfacd76b798bf916747f5c9fdbb09aa176a23f86d/shm shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/a8d83a775f2fc159f9b077ed701853fbfaf83507c9121ecd6eaf4afc655bf78b/shm shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/b290e2eeec9f5722423b272acae89ce7e01e09d92dc799e71eec3489a456612b/shm shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/c6b55453ce04a21a56666b16c47775dd794ec7e27a4e36570830361ba72f823f/shm shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/6db43ea13ee85bf8456e693456cba89cb7ac5bcadd187a3ae8dfe8bfa589f667/shm shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/ad88b8ceae5b1307b9f153f8908745287d83747175028eb0977b4b4b72c80ac2/shm shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/aca659e3fa5c82141726b3f4c06b561db682c6089792c280f256b6de56b4257f/shm shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/694d7d434a6e81fcf1d4cd2a1b54d199648fcf9dedf384ca3356d6081a72fd6f/shm tmpfs 794M 12K 794M 1% /run/user/1002
Last events showed up
22s Warning FreeDiskSpaceFailed node/cp Failed to garbage collect required amount of images. Attempted to free 1169802035 bytes, but only found 0 bytes eligible to free. 5m22s Warning FreeDiskSpaceFailed node/cp Failed to garbage collect required amount of images. Attempted to free 1169638195 bytes, but only found 0 bytes eligible to free. 6m52s Normal Scheduled pod/ds-one-dsnj8 Successfully assigned default/ds-one-dsnj8 to cp 6m53s Warning Evicted pod/ds-one-dsnj8 The node had condition: [DiskPressure]. 6m53s Warning Evicted pod/ds-one-6cd8h The node had condition: [DiskPressure]. 6m52s Normal Scheduled pod/ds-one-6cd8h Successfully assigned default/ds-one-6cd8h to wn1 10m Warning FreeDiskSpaceFailed node/cp Failed to garbage collect required amount of images. Attempted to free 1169462067 bytes, but only found 0 bytes eligible to free.
Disk on the worker node
lc@wn1-lfs258:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/root 8.7G 7.5G 1.3G 86% / tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs 783M 2.7M 780M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock efivarfs 56K 24K 27K 48% /sys/firmware/efi/efivars /dev/sda16 881M 114M 705M 14% /boot /dev/sda15 105M 6.2M 99M 6% /boot/efi shm 64M 4.0K 64M 1% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/4419450b610a516daceea9e899e1aaebdf4f566d7f261eaa9cf05740297b4f49/shm shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/6e93cbd50d80d4c6019e607495a5f830ee98c6b5beab4560cb03e0948707ba36/shm shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/897379d7b78c76844c4ac9a5640233b257017b8fbe2ff246780839834425cc08/shm shm 64M 0 64M 0% /run/containerd/io.containerd.grpc.v1.cri/sandboxes/ba648dd983220648839e6f263fbeaef9687140d52792427094f2bc67cc44b57a/shm tmpfs 392M 12K 392M 1% /run/user/1001
showing disk pressure from kubectl describe
Type Status LastHeartbeatTime LastTransitionTime Reason Message ---- ------ ----------------- ------------------ ------ ------- NetworkUnavailable False Tue, 29 Jul 2025 08:53:31 +0000 Tue, 29 Jul 2025 08:53:31 +0000 CiliumIsUp Cilium is running on this node MemoryPressure False Wed, 20 Aug 2025 15:14:04 +0000 Tue, 29 Jul 2025 08:52:46 +0000 KubeletHasSufficientMemory kubelet has sufficient memory available DiskPressure True Wed, 20 Aug 2025 15:14:04 +0000 Wed, 20 Aug 2025 05:52:24 +0000 KubeletHasDiskPressure kubelet has disk pressure PIDPressure False Wed, 20 Aug 2025 15:14:04 +0000 Tue, 29 Jul 2025 08:52:46 +0000 KubeletHasSufficientPID kubelet has sufficient PID available Ready True Wed, 20 Aug 2025 15:14:04 +0000 Tue, 29 Jul 2025 08:53:28 +0000 KubeletReady kubelet is posting ready status
I already tried to Clean images & sandboxes, Clear orphaned pod data and emptyDirs and restart kubelet.
But no changes, still DiskPressure happening.
any suggestions?
Comments
-
What are the sizes of the v-disks attached to each VM? If they are 10 GB or less, you should expect storage related issues.
Regards,
-Chris0 -
hi @chrispokorni ,
all good.
I just completed the LAB 7.5,
solved the DiskPressure by adding more space on the vdisk and enlarged the fs on the two nodes.just one think that i would like to notify, maybe a typo:
step 15, the output of:
student@cp:˜$ kubectl describe po ds-two-10khc |grep Image:
is supposed to be:Image: nginx:1.15.1
i got:Image: nginx:1.22.1
step 19, the output of:
student@cp:˜$ kubectl describe po ds-two-8lx7k |grep Image:
is supposed to be:Image: nginx:1.16.1-alpine
i got:Image: nginx:1.26-alpine
Apart that, amazing!
hopefully gonna complete soon...0
Categories
- All Categories
- 158 LFX Mentorship
- 158 LFX Mentorship: Linux Kernel
- 848 Linux Foundation IT Professional Programs
- 389 Cloud Engineer IT Professional Program
- 186 Advanced Cloud Engineer IT Professional Program
- 87 DevOps Engineer IT Professional Program
- 155 Cloud Native Developer IT Professional Program
- 152 Express Training Courses & Microlearning
- 149 Express Courses - Discussion Forum
- 3 Microlearning - Discussion Forum
- 7.1K Training Courses
- 50 LFC110 Class Forum - Discontinued
- 74 LFC131 Class Forum
- 56 LFD102 Class Forum
- 256 LFD103 Class Forum
- 26 LFD110 Class Forum
- 50 LFD121 Class Forum
- 3 LFD123 Class Forum
- 1 LFD125 Class Forum
- 19 LFD133 Class Forum
- 10 LFD134 Class Forum
- 19 LFD137 Class Forum
- 1 LFD140 Class Forum
- 73 LFD201 Class Forum
- 8 LFD210 Class Forum
- 6 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- LFD221 Class Forum
- 128 LFD232 Class Forum - Discontinued
- 3 LFD233 Class Forum
- 5 LFD237 Class Forum
- 25 LFD254 Class Forum
- 746 LFD259 Class Forum
- 111 LFD272 Class Forum - Discontinued
- 4 LFD272-JP クラス フォーラム - Discontinued
- 16 LFD273 Class Forum
- 438 LFS101 Class Forum
- 3 LFS111 Class Forum
- 4 LFS112 Class Forum
- 5 LFS116 Class Forum
- 9 LFS118 Class Forum
- 2 LFS120 Class Forum
- 11 LFS142 Class Forum
- 9 LFS144 Class Forum
- 6 LFS145 Class Forum
- 6 LFS146 Class Forum
- 7 LFS147 Class Forum
- 21 LFS148 Class Forum
- 17 LFS151 Class Forum
- 6 LFS157 Class Forum
- 89 LFS158 Class Forum
- 1 LFS158-JP クラス フォーラム
- 14 LFS162 Class Forum
- 2 LFS166 Class Forum - Discontinued
- 9 LFS167 Class Forum
- 4 LFS170 Class Forum
- 2 LFS171 Class Forum - Discontinued
- 4 LFS178 Class Forum - Discontinued
- 4 LFS180 Class Forum
- 3 LFS182 Class Forum
- 7 LFS183 Class Forum
- 2 LFS184 Class Forum
- 41 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 3 LFS201-JP クラス フォーラム - Discontinued
- 22 LFS203 Class Forum
- 141 LFS207 Class Forum
- 3 LFS207-DE-Klassenforum
- 3 LFS207-JP クラス フォーラム
- 302 LFS211 Class Forum - Discontinued
- 56 LFS216 Class Forum - Discontinued
- 60 LFS241 Class Forum
- 51 LFS242 Class Forum
- 39 LFS243 Class Forum
- 17 LFS244 Class Forum
- 8 LFS245 Class Forum
- 1 LFS246 Class Forum
- 1 LFS248 Class Forum
- 122 LFS250 Class Forum
- 3 LFS250-JP クラス フォーラム
- 2 LFS251 Class Forum
- 163 LFS253 Class Forum
- 1 LFS254 Class Forum - Discontinued
- 3 LFS255 Class Forum
- 15 LFS256 Class Forum
- 2 LFS257 Class Forum
- 1.4K LFS258 Class Forum
- 12 LFS258-JP クラス フォーラム
- 140 LFS260 Class Forum
- 165 LFS261 Class Forum
- 44 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 25 LFS267 Class Forum
- 27 LFS268 Class Forum
- 38 LFS269 Class Forum
- 11 LFS270 Class Forum
- 202 LFS272 Class Forum - Discontinued
- 2 LFS272-JP クラス フォーラム - Discontinued
- 2 LFS274 Class Forum - Discontinued
- 4 LFS281 Class Forum - Discontinued
- 30 LFW111 Class Forum
- 265 LFW211 Class Forum
- 190 LFW212 Class Forum
- 17 SKF100 Class Forum
- 2 SKF200 Class Forum
- 3 SKF201 Class Forum
- 800 Hardware
- 200 Drivers
- 68 I/O Devices
- 37 Monitors
- 104 Multimedia
- 175 Networking
- 92 Printers & Scanners
- 85 Storage
- 765 Linux Distributions
- 82 Debian
- 67 Fedora
- 20 Linux Mint
- 13 Mageia
- 23 openSUSE
- 149 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 472 Linux System Administration
- 39 Cloud Computing
- 71 Command Line/Scripting
- Github systems admin projects
- 96 Linux Security
- 78 Network Management
- 102 System Management
- 48 Web Management
- 74 Mobile Computing
- 19 Android
- 42 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 387 Off Topic
- 120 Introductions
- 178 Small Talk
- 28 Study Material
- 846 Programming and Development
- 311 Kernel Development
- 517 Software Development
- 1.8K Software
- 267 Applications
- 183 Command Line
- 5 Compiling/Installing
- 988 Games
- 318 Installation
- 108 All In Program
- 108 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)