Resize VM Disk

From Delft Solutions
Revision as of 02:42, 2 April 2024 by Dortund (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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:

Fdisk-output.png
  • Resize using 'parted':
 * parted /dev/sda
 * print
 * resizepart 2 100%
 * quit

Step 3

To increase file system's size:

  • 'resize2fs /dev/sda2' (Assuming you need to increase /dev/sda2)