[SOLVED] Increase size of OS storage

Nov 27, 2023
193
42
28
Netherlands
daniel-dog.com
Hello everyone,

I am trying to increase the storage space for the OS since my hosting company only adds 10GB for the OS via there automated installer.
This in turn creates the problem that I cannot upload ISOs bigger then 4GB (so at the moment I cannot upload a windows ISO :( ) as ISOs bigger then this causes the OS/tmp dir to run out of disk space since uploads uses the tmp dir before copying it to the local storage.

My OS is on /dev/sda2 and the storage local is on /dev/sda3.
The storage on /dev/sda3 is 1.99TB big since the SSD itself is 2TB big.

So what I am trying to do / want to do is:
Decrease the size of /dev/sda3 by 22GB and then add the 22GB to the /dev/sda2 so that the OS partition is 32GB big.

I have found the way to add unallowcated space to the /dev/sda2 but I cannot find the way to unallowcated the 22GB from the /dev/sda3

Does anyone know ow I can do this?
 

Attachments

  • disks.png
    disks.png
    24 KB · Views: 13
  • local.png
    local.png
    35.8 KB · Views: 12
How are you planning to upload the ISOS? Are you using Proxmox GUI? If you click on "ISO Images", you can upload from there.

Other option is to use SFTP, rsync or SCP to copy directly the ISO using SSH to the folder where you have mounted /dev/sda3

I mention that because doing a full disk resize requires to boot the server into a Live CD and then perform the resizing tasks, such as, reducing /dev/sda3, move the partition and then expand /dev/sda2 in the free space between /dev/sda2 and /dev/sda3
 
How are you planning to upload the ISOS? Are you using Proxmox GUI? If you click on "ISO Images", you can upload from there.

Other option is to use SFTP, rsync or SCP to copy directly the ISO using SSH to the folder where you have mounted /dev/sda3

I mention that because doing a full disk resize requires to boot the server into a Live CD and then perform the resizing tasks, such as, reducing /dev/sda3, move the partition and then expand /dev/sda2 in the free space between /dev/sda2 and /dev/sda3
I am using the web GUI.
When I go to the ISO Images tab in the local storage tab and upload a big ISO, it starts uploading it from my PC but eventually will error out with error code 0.

When I then look in my summary tab, it tells me that HD is 99% full.
And I found the ISO tmp files in /var/tmp since there names started with pveupload in the filename and there size match the size of the ISO before the HD would run out of space.
 
Glad to help you solve your issue!

I also suggest that you can use rsync or sftp to copy the ISO directly to the folder you wanted, and I'm pretty sure in this case there's no need to use /tmp.

Probably it is in /var/lib/vz/templates/iso