container-storage-setup icon indicating copy to clipboard operation
container-storage-setup copied to clipboard

Need to create systemd unit to tell docker to wait for storage

Open cgwalters opened this issue 10 years ago • 1 comments

Normally, LVM devices are probed pretty early, but it can happen that storage devices are slow to start. I have a box with ~ 20 TB across 20 disks, and sometimes on boot not all of them have spun up by the time docker starts.

We'll need to tweak d-s-s to generate a systemd drop-in in /etc/systemd/system/docker.service.d with Before=dev-mapper-docker--meta.device dev-mapper-docker--data.device

cgwalters avatar Dec 12 '14 17:12 cgwalters

On 12/12/2014 12:24 PM, Colin Walters wrote:

Normally, LVM devices are probed pretty early, but it can happen that storage devices are slow to start. I have a box with ~ 20 TB across 20 disks, and sometimes on boot not all of them have spun up by the time docker starts.

We'll need to tweak d-s-s to generate a systemd drop-in in /etc/systemd/system/docker.service.d with Before=dev-mapper-docker--meta.device dev-mapper-docker--data.device

— Reply to this email directly or view it on GitHub https://github.com/projectatomic/docker-storage-setup/issues/2.

Should we make this part of the core package?

rhatdan avatar Dec 13 '14 12:12 rhatdan