Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Increase Diskspace (physically or on the Hypervisor Layer)
  2. Reboot or rescan for disks
  3. create a new Partition that is compatible to LVM
  4. re-read Partition table either via reboot or command "partprobe"
  5. Initialise a new PV with pvcreate
  6. Increase  the VG with vgextend
  7. Increase  the LV with lvextend
  8. Increase the Filesystem with resize2fs

In case of an extension of an existing partition:

Following above example, if sda would have received an additional 200GB instead of integrating a different (sdb) partition.

  1. Increase Diskspace (physically or on the Hypervisor Layer)
  2. Reboot or rescan for disks
  3. Use lsblk to identify which partition got increased
  4. identify the free space in the partition
    1. parted /dev/sda print free
  5. Increase the last partition, if it fits the filesystem. Use:
    1. parted /dev/sda
    2. resizepart
    3. insert which partition should be resized/increased, in the above case, it would be "3" for sda3.
    4. insert new volume End, as seen via step 4a, where the End of the Free space, should be the new End for partition 3.
  6. pvresize /dev/sda3 or resizefs /dev/sda3
  7. Increase  the LV as seen above
  8. resize filesystem