You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.0 KiB

Resize disk

  • Reference

  • Expand volume

  • grow disk df -h

  • list partitions

$ sudo lsblk
  • on vmware, expand the disk volume

    • Expand Disk
    • Change disk size
  • resize sda3 partition

$ sudo growpart /dev/sda 3
  • Expand Disk lsblk

  • resize partition

  • extend PhysicalVolume volume

$ sudo pvresize /dev/sda3
  • Resize Pysical Partition

  • extend LogicalVolume to all available space

$ sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
  • Extend Logical Volume

  • resize filesystem

$ sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
  • Before resize filesystem
  • After resize filesystem