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.
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.