Expanding Free Space on newly cloned drive in ProxMox

lumper5

New Member
Mar 16, 2021
4
0
1
62
I've looked through the forums enough to know that this topic is reviewed constantly and I am hesitant in asking. However, as neophyte, I am still uncertain as to my best course.

Background: I installed ProxMox VE using an old Lenovo micro computer to get a feel from creating VMs and containers and I found I liked it. I found that other than the old spinning HD, that the rest of this machine's hardware (8 core/16 gb memory) was sufficient to my needs. I decided to clone that 500gb spinning drive onto a 1 tb sdd. I used clonezilla. That worked without a hitch and has significantly reduced io delay and has dramatically increased boot times, etc.

The issue: I now have my functioning environment spanning just under 500 gb of this larger drive. I would like to take the ~465mb of free space and add it into the LVM (in my case /dev/sda3. (Here's a cfdisk of this new sdd:

Disk: /dev/sda
Size: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Label: gpt, identifier:

Device Start End Sectors Size Type
>> /dev/sda1 34 2047 2014 1007K BIOS boot
/dev/sda2 2048 1050623 1048576 512M EFI System
/dev/sda3 1050624 976773134 975722511 465.3G Linux LVM
Free space 976775168 1953525134 976749967 465.8G

)

So, to add in this free space to the "pool" without erasing, impacting or otherwise disabling my running VMs and CTs, which the following do I need do?

pvresize /dev/sda3

or is it

lvresize --extents +100%FREE --resizefs /dev/sda3

or, is there a method I should use instead to combine /dev/sda3 and the free space without impacting my existing machines and containers. What else - if anything - am I missing?

Thanks for your guidance and patience.
 
I'm still looking for the "right" way to handle the addition of the un-formatted free space into this "production" server. I've used gparted and other tools to grow partitions on bare metal, but I have never attempted this on a VM. Thanks.
 

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!