Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 680094 - app-containers/docker-18.09.2 not waiting for all host zfs volumes to mount before starting service
Summary: app-containers/docker-18.09.2 not waiting for all host zfs volumes to mount b...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-12 02:19 UTC by mr.jmondoux
Modified: 2022-01-01 10:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mr.jmondoux 2019-03-12 02:19:29 UTC
Docker service is not waiting for all host zfs volumes to mount at boot prior to starting service...more specifically the zfs volume that I have mounted at /var

Subsequent reboots result in zfs volume failed to mount as the directory is no longer empty due to docker writing to the /var/lib directory.

I booted into live environment to investigate and clear out the files that were created.  This allowed me to reboot system without issue, I then disabled the docker service and rebooted multiple times without issue again.

Found this similar issue from an Ubuntu issue that might be related...
https://serverfault.com/questions/904421/docker-service-starts-before-zfs
Comment 1 Georgy Yakovlev archtester gentoo-dev 2020-02-07 04:42:47 UTC
are you using openrc or systemd?

for openrc you can add
rc_need="zfs-mount" to /etc/conf.d/docker if you use zfs storage graph driver and openrc will make sure filesystems mounted before docker starts.

I'm sure you can do similar thing for systemd as well.
Comment 2 mr.jmondoux 2020-02-07 14:14:58 UTC
(In reply to Georgy Yakovlev from comment #1)
> are you using openrc or systemd?
> 
> for openrc you can add
> rc_need="zfs-mount" to /etc/conf.d/docker if you use zfs storage graph
> driver and openrc will make sure filesystems mounted before docker starts.
> 
> I'm sure you can do similar thing for systemd as well.

Hi, yes I use openrc. The weird part is that I have gone through subsequent reboots since and have not experienced issues.  However, I will double check as I may have stopped it from automatically starting at boot. If so I'll revert and do as you suggest. Thanks