I have vps install AlmaLinux 8 (64 bit)

I requested a live upgrade to VPS from contabo AlmaLinux 8 (64 bit)
disk from 200 GB To 600 GB on my vps
contabo support told me i must

lsblk

sda 8:0 0 600G 0 disk
├─sda1 8:1 0 1M 0 part
└─sda2 8:2 0 200G 0 part /

Expand the Existing Partition

i want changed da2 8:2 0 200G 0 part /
to 600 G

what i must do

  1. Update partition table to move the end sector of second partition forward.
    I would use program fdisk for that; first remove second partition and then create it again with same start and type, but with new end. Read man fdisk
  2. Expand the filesystem (with xfs_growfs, if the filesystem is XFS). Read man xfs_growfs

No matter what you do or don’t do, make a backup of valuable data before you start.

1 Like