Technology Insights

Expand A Partition That Is Part Of A Logical Volume Group While Server Is Running

I recently had a couple new CentOS Linux servers brought online at a colo that a company I work for uses. I had the colo do a very simple install of CentOS so I could handle the details without having to remove a bunch of packages we didn’t need. The servers have two one terabyte drives installed in a RAID 1 configuration which provides us with one terabyte of usable disk space and upon initial configuration had a logical volume group created with three logical volumes. Each of the logical volumes, which included /var, /usr, and /, only had two gigabytes of space so I needed to first expand those logical volumes and later will be creating a large logical volume used for database data. Below I describe expanding already existing logical volumes when there is room to grow in the logical volume group.