Skip to content

Instantly share code, notes, and snippets.

@mlliarm
Created June 20, 2025 14:26
Show Gist options
  • Save mlliarm/bcd0fa484d5e2a6cdd7e26666cdc94f9 to your computer and use it in GitHub Desktop.
Save mlliarm/bcd0fa484d5e2a6cdd7e26666cdc94f9 to your computer and use it in GitHub Desktop.
How to resize an encrypted LVM partition

How to resize an encrypted LVM partition

The problem

You were dumb enough to give 15 GB space to / partition and /var gets full when firing more than one docker container.

Luckily you'd partitioned your disks using LVM, and have left 100 GB of free space just in case they were needed.

The solution

In a nutshell

  1. Open LUKS encrypted disk to view partitions
  2. Resize filesystem of mounted root (/) partition
  3. Extend logical volume of root (/) partition
  4. Close LUKS encrypted disk

In detail

TBD

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment