-
Notifications
You must be signed in to change notification settings - Fork 514
Description
Description
LXD driver does not honor LXD idmap values which causes full disk remapping on each start. While it is not a problem on a small fileset, it causes really huge time to start a container with a large fileset.
The problem lies within two values in the container's config, which are
config.volatile.idmap.next
config.volatile.last_state.idmap
If one of these is empty, but the container has an idmap, it causes LXD to run a full remap of all underlying disks. On a large fileset (millions of files) it is a costly operation and might take hours to complete.
To Reproduce
Steps to reproduce the behavior.
- Create a regular container
- Add LOTS of files into it
- Stop the container
- Try to start it again
Expected behavior
If those values are maintained properly, container starts immediately.
Details
- Affected Component: VMM
- Hypervisor: LXD
- Version: 5.8.4
Suggestion
I think that LXD driver should save the successful config somewhere and reuse it's values to rebuild newer deployments.