Resize VM Disk: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Draft = This is for increasing a disk's size == Step 1 == To increase the disk 'physical' size: * On Proxmox web gui: select disk, click the 'Disk Action' dropdown and select 'Resize' * Fill in the size to increase the disk with == Step 2 == To increase the disk partition: * In the VM, first get the partition table for info (Assuming the disk is /dev/sda) with `fdisk -l /dev/sda | grep ^/dev` Output should something like this: thumb * Resize u...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Draft = | = Draft = | ||
This is for increasing a disk's size | This article is a draft. It only tells you how to increase a disk, and only if the disk is partitioned in a certain way. Also not tested by anyone else yet. (other then by the author of this article: Wouter) | ||
= Intro = | |||
This is for increasing a disk's size. | |||
These steps only work if the root partition is at the end of the disk. (The automated install config/preseed ensures this) | |||
== Step 1 == | == Step 1 == | ||
To increase the disk 'physical' size: | To increase the disk 'physical' size: | ||
Line 15: | Line 18: | ||
* resizepart 2 100% | * resizepart 2 100% | ||
* quit | * quit | ||
This is assuming that you need to resize /dev/sda2 (which the 'print' will help you determine) | |||
== Step 3 == | == Step 3 == | ||
To increase file system's size: | To increase file system's size: | ||
* 'resize2fs /dev/sda2' (Assuming you need to increase /dev/sda2) | * 'resize2fs /dev/sda2' (Assuming you need to increase /dev/sda2) |
Latest revision as of 02:53, 2 April 2024
Draft
This article is a draft. It only tells you how to increase a disk, and only if the disk is partitioned in a certain way. Also not tested by anyone else yet. (other then by the author of this article: Wouter)
Intro
This is for increasing a disk's size. These steps only work if the root partition is at the end of the disk. (The automated install config/preseed ensures this)
Step 1
To increase the disk 'physical' size:
- On Proxmox web gui: select disk, click the 'Disk Action' dropdown and select 'Resize'
- Fill in the size to increase the disk with
Step 2
To increase the disk partition:
- In the VM, first get the partition table for info (Assuming the disk is /dev/sda) with `fdisk -l /dev/sda | grep ^/dev`
Output should something like this:
- Resize using 'parted':
* parted /dev/sda * print * resizepart 2 100% * quit
This is assuming that you need to resize /dev/sda2 (which the 'print' will help you determine)
Step 3
To increase file system's size:
- 'resize2fs /dev/sda2' (Assuming you need to increase /dev/sda2)