Description of problem: John Honce just gave me access to one of nodes in openshift cluster and I see following in /etc/sysconfig/docker-storage. DOCKER_STORAGE_OPTIONS=' -s devicemapper --storage-opt dm.datadev=/dev/docker-vg/docker-data --storage-opt dm.metadatadev=/dev/docker-vg/docker-metadata --storage-opt dm.use_deferred_removal=true' This is not how docker-storage-setup generates it. This is old mode and we don't support it for docker storage. Users should not edit /etc/sysconfig/docker-storage-setup and put right options there and dss will setup storage and generate appropriate /etc/sysoconfig/docker-storage. I am trying to figure out who generates this file and how to move them to making use of docker-storage-setup. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Jhon, How was the host installed?
One should be able to just drop following in /etc/sysconfig/docker-storage-setup to setup devicemapper for docker. DEVS="/dev/xvdb" VG=docker-vg Or if you want to setup volume group yourself then setup volume group and specify VG=docker-vg And docker-storage-setup will carve out a lvm thin pool volume which will be used by docker.
So the installer doesn't make use of docker-storage-setup directly because by the time we get to a host it's not likely that we have free storage available. Instead in our documentation we outline the requirement for storage configuration and advise people to run docker-storage-setup. See https://docs.openshift.com/container-platform/3.4/install_config/install/host_preparation.html#configuring-docker-storage
Scott, Are the playbooks for configuring Docker available to be consumed outside of the full install? I can reconfigure the devenv setup to use them. Steve
We have no supported playbooks, I believe there are some playbooks in openshift-ansible that configure docker-storage-setup, but I haven't looked at them. Basically do your best to follow the docs I referenced in comment 3.
Fixed for the Origin CI in: https://github.com/openshift/origin-ci-tool/pull/63 https://github.com/openshift/vagrant-openshift/pull/532
This was a problem in internal tooling so closing notabug.