Skip to content

Commit

Permalink
Disable aufs module which is no longer used by Docker
Browse files Browse the repository at this point in the history
AUFSUmountHung kernel error slows down the node and caused timeout for other processes. Docker now prefers overlay2 to aufs and containerd prefers overlay so it is safe to disable AUFS.

Replicate of kubernetes#103831

Change-Id: I1b5dc48c50cb0553308e21f3c92e00386f814132
Bug: 193674321
  • Loading branch information
lizhuqi authored and kl52752 committed Dec 23, 2022
1 parent 526c330 commit bf5ed11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gke/cluster/gce/gci/configure-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1516,6 +1516,13 @@ EOF
fi
}

function disable_aufs() {
# disable aufs module if aufs is loaded
if lsmod | grep "aufs" &> /dev/null ; then
sudo modprobe -r aufs
fi
}

function set_docker_options_non_ubuntu() {
# set docker options mtu and storage driver for non-ubuntu
# as it is default for ubuntu
Expand Down Expand Up @@ -1575,6 +1582,7 @@ addockeropt "\"pidfile\": \"/var/run/docker.pid\",
docker_opts+="--registry-mirror=${DOCKER_REGISTRY_MIRROR_URL} "
fi

disable_aufs
set_docker_options_non_ubuntu

echo "setting docker logging options"
Expand Down

0 comments on commit bf5ed11

Please sign in to comment.