moby--moby/daemon/graphdriver
Kir Kolyshkin 58a453f3f0 devmapper autosetup: add check for thin_check
I was able to successfully use device mapper autoconfig feature
(commit 5ef07d79c) but it stopped working after a reboot.

Investigation shown that the dm device was not activated because of
a missing binary, that is not used during initial setup, but every
following time. Here's an error shown when trying to manually activate
the device:

> kir@kd:~/go/src/github.com/docker/docker$ sudo lvchange -a y /dev/docker/thinpool
> /usr/sbin/thin_check: execvp failed: No such file or directory
> Check of pool docker/thinpool failed (status:2). Manual repair required!

Surely, there is no solution to this other than to have a package that
provides the thin_check binary installed beforehand. Due to the fact
the issue revealed itself way later than DM setup was performed, it was
somewhat harder to investigate.

With this in mind, let's check for binary presense before setting up DM,
refusing to proceed if the binary is not there, saving a user from later
frustration.

While at it, eliminate repeated binary checking code. The downside is
that the binary lookup is happening more than once now -- I think the
clarity of code overweights this minor de-optimization.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2017-08-14 13:25:28 +03:00
..
aufs Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
btrfs Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
devmapper devmapper autosetup: add check for thin_check 2017-08-14 13:25:28 +03:00
graphtest
lcow jhoward/opengcs --> Microsoft/opengcs 2017-08-08 14:43:43 -07:00
overlay Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
overlay2 Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
overlayutils
quota Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
register
vfs
windows Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
zfs Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
counter.go
driver.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
driver_freebsd.go
driver_linux.go graphdriver: promote overlay2 over aufs 2017-08-08 10:17:37 +00:00
driver_solaris.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
driver_unsupported.go
driver_windows.go
fsdiff.go Update logrus to v1.0.1 2017-07-31 13:16:46 -07:00
plugin.go
proxy.go