Step 1: Verify Current Setup
Check the current disk and LVM structure.
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:
If the disk does not reflect the new size, reboot the VM:
Step 3: Resize the Partition
If your disk has a GPT partition, use parted:
print→ Verify existing partitionresizepart 1 100%→ Resize partition to use the full 6TBquit
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:
Check the new space:
Step 5: Extend the Volume Group (VG)
Check current VG size:
Extend the volume group:
Verify:
Step 6: Extend the Logical Volume (LV)
To extend the Logical Volume to use all available space:
Check:
Step 7: Resize the Filesystem
For ext4:
For xfs:
Step 8: Verify the Changes
Check if the new size is reflected:
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
Feedback sent
We appreciate your effort and will try to fix the article