Interview Prep/Linux/Storage, disks and filesystems

How would you decide disk layout (partitions/LVs) for a new production Linux server?

AdvancedScenarioStorage, disks and filesystems
Answer

Situation read → Isolation, growth room and security options.

What I'd do →

  1. Small /boot (1 GB) and /boot/efi.
  2. LVM for everything else, leaving free space in the VG.
  3. Separate LVs: /, /var, /var/log, /var/log/audit, /home, /tmp, and the app data volume.
  4. Mount options: nodev,nosuid,noexec on /tmp and /var/tmp; nodev on /home.
  5. In the cloud, keep data on separate volumes so instances can be rebuilt.

Why → A runaway log can't fill root, and CIS benchmarks expect these separations.

Interview tip → Mention leaving unallocated VG space so you can extend whichever LV grows.

All Linux questions Roadmap: Linux

More on Storage, disks and filesystems