hundreds of snapshots created by docker zfs lead to zsys timeout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
docker.io (Ubuntu) |
Fix Released
|
High
|
Didier Roche-Tolomelli | ||
Focal |
Fix Released
|
High
|
Didier Roche-Tolomelli |
Bug Description
[Rationale]
ZFS module of docker creates many snapshots under <pool>/
This patch migrates the snapshots created by docker under the persistent dataset <pool>/
[Test Case]
1. On a machine with docker installed, create a docker container:
$ docker run ubuntu
2. Verify that docker created snapshots under <pool>/
3. Install the new version
4. Verify that the snapshots have been migrated to <pool>/
5. Verify that docker is still working:
$ docker run ubuntu
[Regression Potential]
The change only affects the postinst.
The risk is that dataset are not migrated or partially migrated. Then new snapshots are created on a different location and containers created or run from an existing image won't start.
It impacts only Ubuntu Desktop installation with zfs on root support.
Changed in docker.io (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Didier Roche (didrocks) |
description: | updated |
description: | updated |
Changed in docker.io (Ubuntu Focal): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Didier Roche (didrocks) |
This bug was fixed in the package docker.io - 19.03.8-0ubuntu2
---------------
docker.io (19.03.8-0ubuntu2) groovy; urgency=medium
[ Jean-Baptiste Lallement ] var/lib/ docker for creating them in
[ Didier Roche ]
* Fix use with ZFS on root:
- docker creates one dataset for any layer of containers that were
created. Create now a <pool>/
the persistent namespace and migrate existing one here.
- purge the automated historic that was created.
The migration only impacts the ubuntu desktop installation with
experimental ZFS on root, and we have thus to stop and start the daemon
to migrate data. (LP: #1879473)
-- Didier Roche <email address hidden> Tue, 19 May 2020 11:01:22 +0200