Etcd - failed to open database ... mmap too large #18101
-
We encountered a strange Etcd issue after restoring the Etcd pvc data from a backup on a Kubernetes cluster. The storage provider is NetApp. The etcd members fail to open the database with the error "mmap too large). Please see the error details below...
After a bit of investigation, a workaround was found. The workaround was to slightly increase the mounted PVC size and restart the Etcd cluster. After that Etcd comes up fine. The act of storage provider expanding seems to make the boltdb happy and not report the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Etcd 3.5.13
It was around 18.5 Mb
The original PVC size was 10Gi and just bumping up the size by an additional small amount of 1Mi did the trick. Like the new size as I was thinking if the file system was incorrectly reporting the file size being large, which in turn is making the boltdb fail with |
Beta Was this translation helpful? Give feedback.
Exactly, I was thinking the same, and it's the only reason I can think of for bbolt to return an error "mmap too large".
If you checked the db size right after you saw the issue, it might be a huge size.