Please help guide how to resize/expand pve-data

xilex

New Member
Apr 7, 2022
3
0
1
Hi all, I initially set up a Proxmox running inside ESXi with a small drive and would like to expand it now (64gb > 80gb). In ESXi, I increased the size of the hard drive for Proxmox. I'm not sure what to do inside Proxmox, however. I was reading a few threads online and ran a command (which I have forgotten), and it expanded it a little bit, but not what I expected. Here is what is generated from various commands from reading articles online when they are resizing stuff: https://pastebin.com/JcvU7gcw. I also uploaded some screenshots of inside Proxmox here https://imgur.com/a/7FnNvyL

Of note, I only have one VM running in Proxmox and current has 37GB hard drive size. It was 32GB and I increased the size to 37GB. But I would like to learn how to increase the size of /data/ for more space for VMs. I have used ESXi mostly in the past, and only familiar with Windows environments, so the partition structure and commands in Proxmox are unfamiliar to me. Thank you.
 
You extended the (virtual) drive (in ESXi) but then you need to extend the (physical volume) partition otherwise lvm does not know that it can use the additional space.
I prefer booting (a VM or a physical system) with a GPartEd Live CD (or virtual ISO) to resize partitions.
 
  • Like
Reactions: xilex
Thanks, gparted makes things easier with the GUI. Afterwards, do I need to increase the size of pve-data or /dev/pve/data? If this is more of a Linux question, please let me know, I can ask on a Linux help forum.

Code:
root@pve:~# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda3
  VG Name               pve
  PV Size               <79.50 GiB / not usable 1.98 MiB
  Allocatable           yes
  PE Size               4.00 MiB
  Total PE              20351
  Free PE               4096
  Allocated PE          16255
 
root@pve:~# lsblk
NAME                                              MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda                                                 8:0    0   80G  0 disk
├─sda1                                              8:1    0 1007K  0 part
├─sda2                                              8:2    0  512M  0 part
└─sda3                                              8:3    0 79.5G  0 part
  ├─pve-swap                                      253:0    0    4G  0 lvm  [SWAP]
  ├─pve-root                                      253:1    0 15.8G  0 lvm  /
  ├─pve-data_tmeta                                253:2    0    1G  0 lvm 
  │ └─pve-data-tpool                              253:4    0 41.8G  0 lvm 
  │   ├─pve-data                                  253:5    0 41.8G  0 lvm 
  │   ├─pve-vm--100--disk--0                      253:6    0   37G  0 lvm 
  │   ├─pve-vm--100--disk--1                      253:7    0    4M  0 lvm 
  │   └─pve-vm--100--state--suspend--2021--03--21 253:8    0  8.5G  0 lvm 
  └─pve-data_tdata                                253:3    0 41.8G  0 lvm 
    └─pve-data-tpool                              253:4    0 41.8G  0 lvm 
      ├─pve-data                                  253:5    0 41.8G  0 lvm 
      ├─pve-vm--100--disk--0                      253:6    0   37G  0 lvm 
      ├─pve-vm--100--disk--1                      253:7    0    4M  0 lvm 
      └─pve-vm--100--state--suspend--2021--03--21 253:8    0  8.5G  0 lvm 
sr0                                                11:0    1 1024M  0 rom
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!