containerd/snapshots
renzhen.rz 4d11bb36ad devmapper: activate dm device if snap device marked as activated
- reproducer
 1. stop a container;
 2. reboot, or dmsetup remove its corresponding dm device;
 3. start the container, it will fail like:

 """
 Error: failed to start containers: {"message":"failed to create container(4f33d2760760c41518a84821153ccdf7f80980b797b783cdd75178fc6ca0bf4b) on containerd: failed to create task for container(4f33d2760760c41518a84821153ccdf7f80980b797b783cdd75178fc6ca0bf4b): failed to mount rootfs component &{ext4 /dev/mapper/vg0-mythinpool-snap-2 []}: no such file or directory: unknown"}
 """
- how the fix works
 activate the dm device if necessary, and give a warn msg:

 """
 time="2019-08-21T22:44:08.422695797+08:00" level=warning msg="devmapper device \"vg0-mythinpool-snap-2\" marked as \"Activated\" but not active, activating it"
 """

Signed-off-by: Eric Ren <renzhen@linux.alibaba.com>
2019-08-23 10:19:28 +08:00
..
benchsuite Fix misspells 2019-04-30 20:38:24 +02:00
btrfs Update continuity vendor 2019-08-16 15:49:47 -07:00
devmapper devmapper: activate dm device if snap device marked as activated 2019-08-23 10:19:28 +08:00
lcow Bumps the version of go-winio. 2019-07-01 14:51:06 -07:00
native fix: miss remove temp file in createSnapshot 2018-12-24 23:01:56 +08:00
overlay Update continuity vendor 2019-08-16 15:49:47 -07:00
proxy Rename remote snapshotter to proxy 2018-05-08 14:45:57 -07:00
storage boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
testsuite Remove deferred flag when removing devmapper device 2019-07-31 11:28:33 -07:00
windows Bumps the version of go-winio. 2019-07-01 14:51:06 -07:00
snapshotter.go Allow opts to flow to the backend snapshotter during snapshot creation. 2019-06-19 11:00:22 -07:00