Skip to content
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

How to fix "mmap too large"? #8915

Closed
scjane opened this issue Nov 24, 2017 · 4 comments
Closed

How to fix "mmap too large"? #8915

scjane opened this issue Nov 24, 2017 · 4 comments

Comments

@scjane
Copy link

scjane commented Nov 24, 2017

Problem description:
We have a self-developed application management platform based on Kubernetes, which has been running on three VMs for about six months. Our platform provides a GUI for easy operation and management. Then, it suddenly fails to log into the GUI this week. We haved checked some components. The etcd container on the VM that is the master machine of the Kubernetes cluster displays "cannot open database at /var/lib/etcd/manager/snap/db (mmap too large)" in its logs.
etcd

As show in the following figure, the command output shows that the db file in /var/lib/etcd/manager/snap is nearly 800 TB.
db

However, the disk space of this VM is only 50 GB.
disk

Version info:
OS of the three VMs: 7.3.1611 (Core)
etcd version: 3.1.7
docker version: 1.12.6
Kubernetes version: v1.6.4

How to fix:
Has anyone encountered this problem or similar ones? Cloud anyone give me some clues for troubleshooting it? Thanks a lot.

@xiang90
Copy link
Contributor

xiang90 commented Nov 25, 2017

we have never seen this. probably you triggered a boltdb bug.

only one member in the cluster has a huge db file, right?

@scjane
Copy link
Author

scjane commented Nov 27, 2017

@xiang90 Yes, in fact, only the master node has etcd deployed in a container. The other two worker nodes don't run etcd.

@xiang90
Copy link
Contributor

xiang90 commented Nov 27, 2017

If you have no backup and do not run etcd in HA manner, then the best option for you is to rebuild the cluster from scratch at this point.

@scjane scjane changed the title How to fix "mmap"to large"? How to fix "mmap too large"? Nov 27, 2017
@xiang90
Copy link
Contributor

xiang90 commented Dec 22, 2017

closing due to low activity. also etcd now uses its forked bboltdb. this problem is probably already got fixed.

@xiang90 xiang90 closed this as completed Dec 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants