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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Select your currency
USD United States (US) dollar