-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to mount rootfs component with overlay filesystem #2755
Comments
Updating to v1.19.5+k3s2 and using
The node description also shows temporary disk pressure and issues with the disk garbage collection:
|
I don't think you can nest overlayfs mounts like that, at least without the kubelet getting very confused. /var/lib/rancher/k3s or wherever you have your data-dir pointed should be a standard filesystem (ext4/xfs/btrfs) that is supported as an overlayfs lowerdir. |
There is definitely something wrong with using an overlay fs to store k3s and containerd data, I'll try to configure my cluster to use a more standard fs. Using an overlay fs along with Alpine local backup was a nice experiment but I guess it doesn't play nice with containerd assumptions about the fs |
Environmental Info:
K3s Version: v1.17.5+k3s1
Node(s) CPU architecture, OS, and Version: Raspberry Pi 3B+ with Alpine Linux ARM64
Cluster Configuration: 1 master, 2 workers
Describe the bug:
Both the master and the workers are unable to mount rootfs and thus to create pods. I have
/var/lib/rancher
created as overlay folder stored on a ext4 storage. The overlay file system has been created following the steps described in https://wiki.alpinelinux.org/wiki/Raspberry_Pi#Persistent_storage, in particular the example about/usr
.Steps To Reproduce:
Additional context / logs:
Example of log:
In a more readable format, containerd is trying to mount these dirs:
Does it throw because maybe it's not possible to use
/var/lib/rancher/k3s/agent/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/230/fs
as upperdir since/var/lib/rancher
is a lowerdir and the actual upperdir is/media/persist/rancher
on my device?The text was updated successfully, but these errors were encountered: