Skip to content

Instantly share code, notes, and snippets.

View BeshoyAtef's full-sized avatar

Beshoy Atef Zarif BeshoyAtef

View GitHub Profile
@fernandoaleman
fernandoaleman / reduce-lvm-partition-centos-7.md
Last active May 16, 2025 13:07
Reduce an LVM partition on CentOS 7

Reduce LVM Partition on CentOS 7

Sometimes when creating a new CentOS 7 server, the drive is partioned with the root, boot and swap, and then all the rest of the space is given to the home directory.

Here, we are going to reduce the size of the /home partition and allocate the remaining space back to the root partition.

List Block Devices

List the current block devices