Proxmox Automation Phase 2: Serial-Identified Disks with LVM and XFS for DB Workloads

A developer has published Phase 2 of a Proxmox automation pipeline that provisions four serial-labelled data disks on a virtual machine using Terraform and manages LVM-over-XFS storage via an idempotent Ansible playbook. The setup addresses a real-world problem in database server environments where multiple disks — for data, logs, backups, and var — must each be reliably identified and independently resized. Linux's reliance on kernel bus-scan order for disk naming (e.g., /dev/sdb) was identified as the core issue, as these assignments can silently change after a reboot, hotplug event, or disk addition. The solution uses persistent serial identifiers attached to each disk in Terraform so that the correct logical volume can be targeted for online expansion by editing a single variable and re-running the pipeline. The phase intentionally excludes live directory migration and shrink operations, with monitoring integration and dynamic inventory planned for later phases.
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