From c7c10ed388a03fb2536940ab6cf76bcb56163dff Mon Sep 17 00:00:00 2001 From: khaledk2 Date: Mon, 7 Sep 2026 14:43:35 +0100 Subject: [PATCH 1/2] fix restart issue --- Docker_Config_UoD_ESS.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Docker_Config_UoD_ESS.md b/Docker_Config_UoD_ESS.md index 11c2eac2..1e05275b 100644 --- a/Docker_Config_UoD_ESS.md +++ b/Docker_Config_UoD_ESS.md @@ -55,3 +55,19 @@ Instructions * Start the docker service systemctl start docker + + +Restart Issue: +------------- + +The restart issue on the VM: the machine restarts, but the containers do not restart with it. + +This has been investigated on the merge-ci host (**ome-devsp-ap1**), it occurred because the Docker image disk (**docker-storage_ap1.img**) was not properly mounted to **/var/lib/docker-xfs-ap1**. To resolve this, I updated the **/etc/fstab** file so the mount depends on the scratch folder being available and retries every 30 seconds if it fails, i.e.: + + /uod/idr/scratch/docker-storage_ap1.img /var/lib/docker-xfs-ap1 xfs loop,defaults,x-systemd.requires-mounts-for=/uod/idr/scratch,,x-systemd.mount-timeout=30 0 0 + +I also updated the Docker service file so it relies on the mounted image disk. Specifically, I appended the following clause to the end of both the **After** and **Requires** lines within the [Unit] section: + + var-lib-docker\x2dxfs\x2dap1.mount + +Following these adjustments, a system reboot successfully brought back all Docker containers. The identical fix has now been deployed to the active merge-ci host (**idr3-slot2**). From fa13851b1d1c30182c37738d5a15b62a4730d678 Mon Sep 17 00:00:00 2001 From: khaledk2 Date: Tue, 8 Sep 2026 09:51:44 +0100 Subject: [PATCH 2/2] improve the text --- Docker_Config_UoD_ESS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Docker_Config_UoD_ESS.md b/Docker_Config_UoD_ESS.md index 1e05275b..096fcbcf 100644 --- a/Docker_Config_UoD_ESS.md +++ b/Docker_Config_UoD_ESS.md @@ -62,11 +62,11 @@ Restart Issue: The restart issue on the VM: the machine restarts, but the containers do not restart with it. -This has been investigated on the merge-ci host (**ome-devsp-ap1**), it occurred because the Docker image disk (**docker-storage_ap1.img**) was not properly mounted to **/var/lib/docker-xfs-ap1**. To resolve this, I updated the **/etc/fstab** file so the mount depends on the scratch folder being available and retries every 30 seconds if it fails, i.e.: +This has been investigated on the merge-ci host (**ome-devsp-ap1**), it occurred because the Docker image disk (**docker-storage_ap1.img**) was not properly mounted to **/var/lib/docker-xfs-ap1**. To resolve this, The **/etc/fstab** file has been updated so the mount depends on the scratch folder being available and retries every 30 seconds if it fails, i.e.: /uod/idr/scratch/docker-storage_ap1.img /var/lib/docker-xfs-ap1 xfs loop,defaults,x-systemd.requires-mounts-for=/uod/idr/scratch,,x-systemd.mount-timeout=30 0 0 -I also updated the Docker service file so it relies on the mounted image disk. Specifically, I appended the following clause to the end of both the **After** and **Requires** lines within the [Unit] section: +The Docker service file has been updated so it relies on the mounted image disk. Specifically, the following clause has been appended to the end of both the **After** and **Requires** lines within the [Unit] section: var-lib-docker\x2dxfs\x2dap1.mount