--- title: "Resize the disk of a VM" description: "Make the disk of a TIR Virtual Machine larger, up to 2,000 GB, while the VM runs, and use the added space with a restart or by growing the partition." content_type: "how-to" product: "tir-vm" platform: "TIR" url: "/tir/tir-vm/how-to/resize-the-disk-of-a-vm/" topic: ["data"] --- # Resize the disk of a VM 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 - A VM in your TIR project. See [Create a VM](/tir/tir-vm/how-to/create-a-vm/). - Permission to update VMs in the project. See [TIR Access Control](/tir/tir-iam/). - 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](https://www.e2enetworks.com/pricing). ## Make the disk larger 1. In **Manage VMs**, select the VM's name, then select the **Disk** tab. 2. Set a new size above the current one, in steps of 10 GB. 3. Select **Update**. 4. 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 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](/tir/tir-vm/how-to/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 Connect to the VM over SSH, as described in [Connect to a VM over SSH](/tir/tir-vm/how-to/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`. 1. List the disks and partitions, and find the partition that holds `/`: ```bash lsblk ``` Run `lsblk -f` instead to see which file system each partition uses. 2. Ask the system to read the new disk size: ```bash sudo partprobe ``` 3. Grow the partition to fill the larger disk. `` is the name of the disk that holds the partition from step 1, and `` is that partition's number: ```bash sudo growpart /dev/ ``` 4. Grow the file system to fill the partition. For an ext4 file system, name the partition, where `` is the partition from step 1: ```bash sudo resize2fs /dev/ ``` For an XFS file system, name the mount point: ```bash sudo xfs_growfs / ``` 5. Check the new size: ```bash df -h ``` The line for `/` shows the larger size. ## 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](/tir/tir-vm/how-to/mount-datasets-and-file-systems-on-a-vm/) instead of growing each disk. For help with a resize message, see [Troubleshooting TIR Virtual Machines](/tir/tir-vm/troubleshooting/tir-vm/#notebook-disk-size-must-be-between-30-and-2000-gb).