Extend existing LVM Partition from 4TB to 6TB

Modified on Sat, 22 Mar at 7:38 PM

Step 1: Verify Current Setup

Check the current disk and LVM structure.

bash
CopyEdit
lsblk fdisk -l vgdisplay lvdisplay df -h

Step 2: Extend the Physical Disk in VM

If you are using a VM, extend the virtual disk via the hypervisor (VMware, VirtualBox, KVM, etc.).
After increasing the disk size, check if the OS detects the additional space:

bash
CopyEdit
lsblk

If the disk does not reflect the new size, reboot the VM:

bash
CopyEdit
reboot

Step 3: Resize the Partition

If your disk has a GPT partition, use parted:

bash
CopyEdit
parted /dev/sdb
  • print → Verify existing partition

  • resizepart 1 100% → Resize partition to use the full 6TB

  • quit

For MBR partition (fdisk may not support >2TB), consider using GPT instead.


Step 4: Resize the Physical Volume (PV)

After resizing the partition, extend the Physical Volume:

bash
CopyEdit
pvresize /dev/sdb1

Check the new space:

bash
CopyEdit
pvdisplay

Step 5: Extend the Volume Group (VG)

Check current VG size:

bash
CopyEdit
vgdisplay vg_data

Extend the volume group:

bash
CopyEdit
vgextend vg_data /dev/sdb1

Verify:

bash
CopyEdit
vgdisplay vg_data

Step 6: Extend the Logical Volume (LV)

To extend the Logical Volume to use all available space:

bash
CopyEdit
lvextend -l +100%FREE /dev/vg_data/lv_storage

Check:

bash
CopyEdit
lvdisplay

Step 7: Resize the Filesystem

For ext4:

bash
CopyEdit
resize2fs /dev/vg_data/lv_storage

For xfs:

bash
CopyEdit
xfs_growfs /mnt/storage

Step 8: Verify the Changes

Check if the new size is reflected:

bash
CopyEdit
df -h lsblk

Now, your LVM has been successfully expanded from 4TB to 6TB! ? Let me know if you need further help.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article