Commit 5dff10a
committed
OCPBUGS-62790: Resize /var tmpfs to 10GiB for ABI installations
Agent-based installations on vSphere with 16GB RAM were failing with "no
space left on device" errors during ostree image operations. The live
ISO environment uses a loopback filesystem mounted at /var that is
backed by a tmpfs sized at 50% of available RAM. On systems with 16GB
RAM, this provides only 8GB of tmpfs space.
During the bootstrap process, node-image-pull.sh creates a temporary
ostree repository in /var/ostree-container/repo to pull and apply the
node image. This operation has a peak tmpfs usage of approximately
8.5-9GB, exceeding the available 8GB and causing ENOSPC errors.
This fix resizes the /var tmpfs, the loopback backing file in it, and
the filesystem on it to 10GiB before creating the temporary ostree
repository, if the tmpfs was smaller than that. This provides sufficient
space for the image operations while maintaining compatibility with the
minimum 16GB RAM requirement.
The resize is performed using systemd-run to escape the mount namespace
of the node-image-pull service.1 parent 54f4b77 commit 5dff10a
File tree
2 files changed
+38
-0
lines changed- data/data/bootstrap/files/usr/local/bin
2 files changed
+38
-0
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments