How to create a new logical volume after adding more space to the disk ?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 5

Issue

  • How to create a new logical volume after adding more space to the disk ? After adding addition 100GB to the existing 200GB disk with extended partition.
  • How to create a new logical volume using that additional 100GB to extend LVM volume group?

Resolution

  • Most important thing is before you following the below procedure please make sure to take a back of the system as Red Hat does not support deleting/recreating partitions with data on it.

  • In order to create a new logical partition with the new space first make sure extended partition is spanned across full disk space.

  • Get the fdisk -l output before committing any changes below.

  • Unmount all the underlying file systems.

  • First delete the existing partition and recreate new partition so it spans across full disk space.

  • Deleting the extended partition will result deleting all the logical partitions underneath.

  • Once you extend the extended partition now we required to recreate all the previously existed logical partitions using the same partition boundaries.

  • Refer to the previously taken fdisk -l output to find out previous logical partition boundaries.

  • You can start creating new logical volumes from where previous logical volumes ends.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments