Linux Partitioning Recommendations for Application Installation

Modified on Fri, 26 Sep at 5:33 PM

Context

  • Application runs under Docker.

  • Docker data (containers, images, volumes, internal logs) is stored in /var/lib/docker.

  • Application logs are stored in /var/log/embrace.

  • No other specific storage requirements outside the OS.

  • Target systems: RHEL / Rocky Linux / AL2023.

Recommended Partitioning

Mount PointSuggested SizeNotes
/boot1–2 GBRequired for kernel/bootloader files
/ (root)20–30 GBOS and base packages
swap0.5–1× RAMPer RHEL guidelines (min 8 GB if RAM ≥16 GB)
/var/lib/docker100–200 GB+Main partition to size; depends on number/size of images, containers, volumes
/var/log10–20 GBDedicated log space; include /var/log/embrace

Example layout (200 GB disk)

  • /boot : 1 GB

  • / : 30 GB

  • swap : 8 GB (if RAM ≥16 GB)

  • /var/lib/docker : 150 GB

  • /var/log : 20 GB

Best Practices

  • Monitor /var/lib/docker growth; prune unused images/volumes regularly.

  • Monitor  /var/log/embrace.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article