Knowledgebase

How to Expand a Linux Disk Partition After Upgrading VPS Storage Print

  • 0

Claim newly upgraded NVMe storage without rebooting or losing data.

Step-by-Step Instructions

  1. Check new disk size with lsblk.
  2. Grow the partition using growpart and resize the filesystem with resize2fs.
sudo apt install -y cloud-guest-utils
sudo growpart /dev/sda 1
sudo resize2fs /dev/sda1
df -h

Pro Tip: For XFS filesystems (common on AlmaLinux), use xfs_growfs / instead of resize2fs.

Need assistance? Open a ticket in the A1 Client Area or contact our 24/7 NOC Engineering Team on WhatsApp at +1 (406) 229-9597.


Was this answer helpful?

« Back