How to resize the local (directory)

SimPos

New Member
Aug 14, 2024
6
0
1
Hello, I will try to translate my question

I have 1 disk, this disk has 40GB (There is no other disk), it was formatted and inserted ProxMox all default

By default, ProxMox defined:
local (Directory) 19.19GB for Backups/ISO
local-lvm (LVM-Thin) 12.29GB for VM

In this situation for me it is more useful to have more directory volume than local-lvm

I would like to add more volume in local (Directory), so how can I increase the 19.19GB storage of local (Directory) in this scenario?
 
Please post the output of the following commands in code tags:
  • lsblk
  • lvs

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 40G 0 disk
├─sda1 8:1 0 1007K 0 part
├─sda2 8:2 0 512M 0 part
└─sda3 8:3 0 39.5G 0 part
├─pve-swap 252:0 0 2.8G 0 lvm [SWAP]
├─pve-root 252:1 0 18.3G 0 lvm /
├─pve-data_tmeta 252:2 0 1G 0 lvm
│ └─pve-data-tpool 252:4 0 11.4G 0 lvm
│ ├─pve-data 252:5 0 11.4G 1 lvm
│ └─pve-vm--100--disk--0 252:6 0 7G 0 lvm
└─pve-data_tdata 252:3 0 11.4G 0 lvm
└─pve-data-tpool 252:4 0 11.4G 0 lvm
├─pve-data 252:5 0 11.4G 1 lvm
└─pve-vm--100--disk--0 252:6 0 7G 0 lvm
sr0 11:0 1 1024M 0 rom

LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- <11.45g 45.31 1.71
root pve -wi-ao---- <18.33g
swap pve -wi-ao---- <2.84g
vm-100-disk-0 pve Vwi-a-tz-- 7.00g data 74.12

Regarding this situation, if I delete this directory and create it again, the same amount of volume is inserted

I looked for something in ProxMox to edit volume, but apparently I didn't find it
 
I looked for something in ProxMox to edit volume, but apparently I didn't find it
Volumes like you have are managed by LVM. In your setup with so little space, it may be easier to handle to just have everything in one storage / filesystem so that you will not have the situation that you have enough space, yet not on the storage you need.

You can try to move your VM from local-lvm to local if you set local to also accept disk images. After moving all VMs, you can then delete local-thin. Please have a backup ready if something goes wrong.
 

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!