[webmin-l] Manually resize partition and filesystem on a Contabo VPS after upgrading your storage

Turritopsis Dohrnii Teo En Ming via webadmin-list <[email protected]> Thu, 16 Apr 2026 09:05:45 +0000
Newsgroups gmane.comp.web.webmin.general
Message-ID <krxfYEVqWlyfqWMlsOL0tTMgdLnNWjXhtv8pDD02C7LT2Ktd8WoEgti2o-nuvTJn6rm8XkdvmiboV3ZM8SA95JXWTgRN6sX_J0mN-ZBuEtM=@protonmail.com>
Subject: Manually resize partition and filesystem on a Contabo VPS after upgrading your storage

Good day from Singapore,

To extend your filesystem on a Contabo VPS after upgrading your storage, you must manually resize the partition and filesystem to utilize the new space. 
For Linux, use growpart and resize2fs (for ext4) or xfs_growfs (for XFS). 
For Windows, use the Disk Management tool to extend the volume.

As I am using AlmaLinux 9.7, the steps are as follows:

# dnf check-update

# dnf search cloud-utils

# dnf install cloud-utils-growpart

[root@ns1 ~]# fdisk -l /dev/sda
GPT PMBR size mismatch (419430399 != 524287999) will be corrected by write.
The backup GPT table is not on the end of the device.
Disk /dev/sda: 250 GiB, 268435456000 bytes, 524288000 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5CF40873-4063-410D-9101-AF6A4D2A2CDF

Device       Start       End   Sectors  Size Type
/dev/sda1     2048      4095      2048    1M BIOS boot
/dev/sda2     4096   4100095   4096000    2G Linux filesystem
/dev/sda3  4100096 419428351 415328256  198G Linux filesystem

[root@ns1 ~]# growpart /dev/sda 3
CHANGED: partition=3 start=4100096 old: size=415328256 end=419428351 new: size=520187871 end=524287966

[root@ns1 ~]# resize2fs /dev/sda3
resize2fs 1.46.5 (30-Dec-2021)
Filesystem at /dev/sda3 is mounted on /; on-line resizing required
old_desc_blocks = 25, new_desc_blocks = 32
The filesystem on /dev/sda3 is now 65023483 (4k) blocks long.

[root@ns1 ~]# fdisk -l /dev/sda
Disk /dev/sda: 250 GiB, 268435456000 bytes, 524288000 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 5CF40873-4063-410D-9101-AF6A4D2A2CDF

Device       Start       End   Sectors  Size Type
/dev/sda1     2048      4095      2048    1M BIOS boot
/dev/sda2     4096   4100095   4096000    2G Linux filesystem
/dev/sda3  4100096 524287966 520187871  248G Linux filesystem

[root@ns1 ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs           3.8G     0  3.8G   0% /dev/shm
tmpfs           1.6G  145M  1.4G  10% /run
/dev/sda3       244G   20G  213G   9% /
/dev/sda2       1.9G  294M  1.5G  17% /boot
tmpfs           769M     0  769M   0% /run/user/0

Regards,

Mr. Turritopsis Dohrnii Teo En Ming
Extremely Democratic People's Republic of Singapore
16 Apr 2026 Thursday 5.05 pm Singapore Time







-
Forwarded by the Webmin mailing list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list