Hello everyone,
Docker newbie here. I followed CONFIGURE DIRECT-LVM MODE MANUALLY from https://docs.docker.com/storage/storagedriver/device-mapper-driver/ because I have two “block devices”. After all the configuration and start up docker following error message appear.
docker version is 18.09.1-ol
OS version Oracle Linux Server release 7.6
[root@zsc-ecc-prod docker]# systemctl start docker
Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
so i look at “dockerd”
INFO[2019-10-02T11:13:32.204007826-04:00] parsed scheme: “unix” module=grpc
INFO[2019-10-02T11:13:32.204060530-04:00] scheme “unix” not registered, fallback to default scheme module=grpc
INFO[2019-10-02T11:13:32.204089533-04:00] parsed scheme: “unix” module=grpc
INFO[2019-10-02T11:13:32.204096015-04:00] scheme “unix” not registered, fallback to default scheme module=grpc
INFO[2019-10-02T11:13:32.204107126-04:00] ccResolverWrapper: sending new addresses to cc: [{unix:///run/containerd/containerd.sock 0 }] module=grpc
INFO[2019-10-02T11:13:32.204135916-04:00] ClientConn switching balancer to “pick_first” module=grpc
WARN[2019-10-02T11:13:32.204182374-04:00] [graphdriver] WARNING: the devicemapper storage-driver is deprecated, and will be removed in a future release
INFO[2019-10-02T11:13:32.204176691-04:00] pickfirstBalancer: HandleSubConnStateChange: 0xc4206189d0, CONNECTING module=grpc
INFO[2019-10-02T11:13:32.204912948-04:00] pickfirstBalancer: HandleSubConnStateChange: 0xc4206189d0, READY module=grpc
INFO[2019-10-02T11:13:32.206125889-04:00] ccResolverWrapper: sending new addresses to cc: [{unix:///run/containerd/containerd.sock 0 }] module=grpc
INFO[2019-10-02T11:13:32.206157059-04:00] ClientConn switching balancer to “pick_first” module=grpc
INFO[2019-10-02T11:13:32.206206417-04:00] pickfirstBalancer: HandleSubConnStateChange: 0xc42003b580, CONNECTING module=grpc
INFO[2019-10-02T11:13:32.206456050-04:00] pickfirstBalancer: HandleSubConnStateChange: 0xc42003b580, READY module=grpc
Error starting daemon: error initializing graphdriver: /dev/mapper/docker-thinpool is not available for use with devicemapper
Here is my daemon.json
[root@zsc-ecc-prod docker]# cat /etc/docker/daemon.json
{
“storage-driver”: “devicemapper”,
“storage-opts”: [
“dm.directlvm_device=/dev/mapper/docker-thinpool”,
“dm.use_deferred_removal=true”,
“dm.use_deferred_deletion=true”
]
}
my docker volume is “avaliable”
[root@zsc-ecc-prod docker]# lvdisplay
— Logical volume —
LV Name thinpool
VG Name docker
LV UUID dTVIrB-vG6i-gG98-61Xe-Mue9-6LfQ-h3uIbE
LV Write Access read/write
LV Creation host, time zsc-ecc-prod.zeusinc.com, 2019-10-02 10:58:17 -0400
LV Pool metadata thinpool_tmeta
LV Pool data thinpool_tdata
LV Status available
open 0
LV Size 284.99 GiB
Allocated pool data 0.00%
Allocated metadata 0.01%
Current LE 72958
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 252:5
Can someone please help me? I have no idea why it wouldn’t like “/dev/mapper/docker-thinpool”