How to resize LVM partition in ubuntu?

  1. Check free space on your disk using fdisk command: sudo fdisk -l
  2. Extend the physical drive partiotion using: growpart /dev/sda 3
  3. Check the physical drive size using: sudo pvdisplay
  4. Instruct LVM that disk has changed: sudo pvresize /dev/sda3
  5. Check if the physical drive size has changed sudo pvdisplay
  6. Extend the logical volume using: sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
  7. Check if the logical volume size changed using: sudo lvdisplay
  8. Resize filesystem using: sudo resize2fs /dev/ubuntu-vg/ubuntu-lv
  9. Make sure everything is ok using: sudo fdisk -l
AHMED ELKHAYYAT
https://elkhayyat.me

I am a very keen individual that enjoys developing Python Programming Language. I have always loved computers and technology, ever since childhood. A team player who loves to work with other people on innovative projects and to take on challenges as an opportunity to grow as an individual in both a professional and personal capacity.

Leave a Reply

Select your currency
USD United States (US) dollar