Give a TIR Virtual Machine more room by making its disk larger. The VM can keep running while you resize, and you then restart it or grow the partition to use the new space.
Before you begin
Section titled “Before you begin”- A VM in your TIR project. See Create a VM.
- Permission to update VMs in the project. See TIR Access Control.
- A new size in GB, above the disk’s current size. The disk goes up to 2,000 GB, or to your account’s disk limit if E2E has set a lower one. A disk can only grow, so choose a size you want to keep.
The disk is billed for each GB above the first 30 GB, so a larger disk costs more from the moment you resize. For the rate, see E2E’s pricing page.
Make the disk larger
Section titled “Make the disk larger”- In Manage VMs, select the VM’s name, then select the Disk tab.
- Set a new size above the current one, in steps of 10 GB.
- Select Update.
- If the VM is running, confirm the new size in Resize Disk and select Continue.
The disk takes its new size within a few minutes. The VM keeps running, and the operating system still sees the old size until you restart the VM or grow the partition.
Use the added space
Section titled “Use the added space”To use the added space, restart the VM or grow the partition. A restart keeps the disk and takes about 50 seconds. Choose it when the VM can be interrupted. See Stop, start, and restart a VM. Update the partition yourself when the programs in the VM must keep running.
Grow the partition while the VM runs
Section titled “Grow the partition while the VM runs”Connect to the VM over SSH, as described in Connect to a VM over
SSH, then work through these commands. They are general
Linux commands. Disk and partition names vary, so use the names lsblk shows on your VM. For
example, for the partition /dev/vda1, the disk is vda and the partition number is 1.
-
List the disks and partitions, and find the partition that holds
/:lsblkRun
lsblk -finstead to see which file system each partition uses. -
Ask the system to read the new disk size:
sudo partprobe -
Grow the partition to fill the larger disk.
<disk>is the name of the disk that holds the partition from step 1, and<partition-number>is that partition’s number:sudo growpart /dev/<disk> <partition-number> -
Grow the file system to fill the partition. For an ext4 file system, name the partition, where
<partition>is the partition from step 1:sudo resize2fs /dev/<partition>For an XFS file system, name the mount point:
sudo xfs_growfs / -
Check the new size:
df -hThe line for
/shows the larger size.
Ask for more storage
Section titled “Ask for more storage”At your account’s size limit, select Request on the Disk tab to ask E2E’s team for more storage. For data that several VMs share, you can also mount a Shared File System instead of growing each disk.
For help with a resize message, see Troubleshooting TIR Virtual Machines.