Bug 1568450
Summary: | /var/lib/docker/overlay2 unmounted when docker stopped in 1.13.1-62 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Mike Fiedler <mifiedle> |
Component: | docker | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED WONTFIX | QA Contact: | atomic-bugs <atomic-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.4 | CC: | amurdaca, gkeegan, lsm5, pasik, sdodson, tsweeney, vgoyal, wabouham |
Target Milestone: | rc | Keywords: | Extras |
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-06-09 21:39:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Mike Fiedler
2018-04-17 14:18:39 UTC
Why not configure your XFS to mount at /var/lib/docker? docker/oci-umount are both mounting and umounting the driver directories. Their are several reasons for this but mainly leaked file descriptors. You could also remove the /var/lib/docker/ovleray2 directory from /etc/oci-umounts.conf. Both suggestions in comment 2 are valid - thanks. I opened the bz to track the behavior change. Setting severity to medium - is this just a doc issue? Sure we can make this a docs issue. Yes, don't mount on /var/lib/docker/overlay2. I suspect docker is the one which unmounts that mount point when it stops (And not oci-umount). Docker creates a private mount there and unmounts when stopping. If mount point is already there, I think then a new mount point is not created but unmounted on stop. Not sure, but that's my current thought process. I agree it is likely not oci-umount. Removing /var/lib/docker/overlay2 from /etc/oci-umount.conf did not help. We'll change our mount to /var/lib/docker Mike, we already talked about it on IRC. I am putting same information here so that anybody looking later can find it. - openshift folks, try to make use of docker-storage-setup to setup a separate volume and put xfs on top of that volume and mount it on /var/lib/docker. - You can use following /etc/sysconfig/docker-storage-setup for that. DEVS="/dev/vdb" VG=docker-vg CONTAINER_ROOT_LV_MOUNT_PATH="/var/lib/docker/" CONTAINER_ROOT_LV_NAME="docker-root-lv" STORAGE_DRIVER=overlay2 This will create a volume group "docker-vg" from disk /dev/vdb, create a logical volme docker-root-lv from volume group, create xfs filesystem on this logical volume and mount on /var/lib/docker. And over restart, just mounting step happens. - From command line do following. - systemctl stop docker - atomic storage reset - Edit /etc/sysconfig/docker-storage-setup appropriately - systemctl start docker And you should be all set. I looked at config of another node I think used by openstack folks. I noticed one more things which probably make sense. CONTAINER_ROOT_LV_SIZE=100%FREE This specifies use 100% of free space in VG for the logical volume. By default it uses 40%of free space. So config should look something as follows. DEVS="/dev/vdb" VG=docker-vg CONTAINER_ROOT_LV_MOUNT_PATH="/var/lib/docker/" CONTAINER_ROOT_LV_NAME="docker-root-lv" STORAGE_DRIVER=overlay2 CONTAINER_ROOT_LV_SIZE=100%FREE This recommendation is assuming that you don't want to use root filesystem of the host to storage containers and images and want to use a separate disk. If you want to use rootfs of host, then all you need is. STORAGE_DRIVER=overlay2 So first decide what are your requirements and then choose the container-storage-setup accordingly. We have no plans to ship another version of Docker at this time. RHEL7 is in final support stages where only security fixes will get released. Customers should move to use Podman which is available starting in RHEL 7.6. |