Closed jahanson closed 7 months ago
Yes, fstrim can read /tmp/mountinfo
just the way it is
How does yours look? My fstrim
output is still coming up empty with that input.
I get this output in the job:
❯ k logs -n kube-system fstrim-28480320-77g4v
/var/lib/containerd: 901.1 GiB (967532859392 bytes) trimmed on /dev/sda6
Sorry, I meant your /tmp/mountinfo
.
I need to get the pod running to check but last I remember it looked like your output...
I'm not sure why I seem to be the only one experiencing this issue but here are my notes:
On further investigation I pulled some of this info and was able to manually run the command in your container after nsenter.
The
mountinfo
file created at/tmp/mountinfo
contains this nonsense. Is this the expected kind of inputfstrim
wants?Using
fstrim -v a
worked but I don't believe it covered all of the mounts. But this isn't an issue with your script.