Skip to main content

Extend Volume

After creating a volume, you may need to extend its size to accommodate growing data needs. This guide will help you extend a volume in Vietnix Cloud.

Prerequisites

Steps to Extend Volume

  1. Navigate to the Compute section and select Volumes. Navigate to Volumes
  2. Find the volume you want to extend and click on it. Select Volume
  3. At properties section, click the 🖊 icon at the Size field.
  4. In the Size field, enter the new size for the volume (e.g., 100GiB). New Size

    Note: Make sure the new size is larger than the current size.

  5. Click the button to apply the changes.
Important

Extending a volume does not automatically resize the filesystem. After extending the volume, you need to resize the filesystem on your instance to utilize the new space.

Resize Filesystem

After extending the volume, you need to resize the filesystem on your instance to utilize the new space. The steps to resize the filesystem depend on the operating system and filesystem type.

For Linux Instances

  1. SSH into your instance.

  2. Use the lsblk command to list the block devices and identify the extended volume

    lsblk
  3. Use the appropriate command to resize the filesystem based on the filesystem type:

    • For ext4 filesystem:

      sudo resize2fs /dev/sdX
    • For xfs filesystem:

      sudo xfs_growfs /mount/point

    Replace /dev/sdX with the actual device name of the extended volume and /mount/point with the actual mount point of the filesystem.

  4. Verify the new size using the df -h command:

    df -h

For Windows Instances

  1. RDP into your Windows instance.
  2. Open the Disk Management tool by right-clicking on the Start button and selecting Disk Management.
  3. Locate the extended volume in the list of disks.
  4. Right-click on the volume and select Extend Volume.
  5. Follow the prompts in the Extend Volume Wizard to complete the process.
  6. Verify the new size in the Disk Management tool.