Setting Up LVM on a 3.7 TB Single-Disk Server for Docker and MySQL
The author describes configuring a 3725.5 GB server, running Ubuntu 26.04 LTS, by partitioning the remaining space after the OS and creating an LVM setup. The walkthrough covers creating a physical volume, a volume group named vg_data, and a logical volume that uses the full capacity, then formatting it as ext4. The volume is mounted at /mnt/data, and bind mounts redirect /var/lib/docker and /var/lib/mysql to it so both services write there by default. The author advises leaving about 5% free for LVM snapshots, monitoring usage with an alert at 80%, and pruning unused Docker images regularly.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in