Local-LVM Disk Space query

natharas

New Member
Sep 4, 2022
20
0
1
Hi, I've got an 256gb SSD drive in my Proxmox environment, it shows up as /dev/sdi and it has the below partitions:

Code:
NAME                         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sdi                            8:128  0 238.5G  0 disk
├─sdi1                         8:129  0  1007K  0 part
├─sdi2                         8:130  0   512M  0 part /boot/efi
└─sdi3                         8:131  0   238G  0 part
  ├─pve-swap                 252:0    0     8G  0 lvm  [SWAP]
  ├─pve-root                 252:1    0  59.3G  0 lvm  /
  ├─pve-data_tmeta           252:2    0   1.6G  0 lvm
  │ └─pve-data-tpool         252:4    0 151.6G  0 lvm
  │   ├─pve-data             252:5    0 151.6G  1 lvm
  │   ├─pve-vm--102--disk--0 252:6    0    32G  0 lvm
  │   ├─pve-vm--103--disk--0 252:7    0     4M  0 lvm
  │   ├─pve-vm--103--disk--3 252:8    0     4M  0 lvm
  │   ├─pve-vm--106--disk--0 252:9    0     4M  0 lvm
  │   └─pve-vm--106--disk--1 252:10   0    80G  0 lvm
  └─pve-data_tdata           252:3    0 151.6G  0 lvm
    └─pve-data-tpool         252:4    0 151.6G  0 lvm
      ├─pve-data             252:5    0 151.6G  1 lvm
      ├─pve-vm--102--disk--0 252:6    0    32G  0 lvm
      ├─pve-vm--103--disk--0 252:7    0     4M  0 lvm
      ├─pve-vm--103--disk--3 252:8    0     4M  0 lvm
      ├─pve-vm--106--disk--0 252:9    0     4M  0 lvm
      └─pve-vm--106--disk--1 252:10   0    80G  0 lvm

I'm trying to restore a backup to VM 106 but am running into issues due to the lack of disk space, is there anything that I can clean up and assign more disk to the pve-data-tpool?

Apologies, I'm a beginner when it comes to Proxmox so any assistance is greatly appreciated.
 
If you want to make this easy: add another disk; create a ZFS single-disk pool on it; use it as the storage for VM 106.
With compression, you shouldn't need to worry about resizing until you want to upgrade that to a larger disk (or it dies. But this is what Backups are for. I hope you have at least some separate storage for that - and have scheduled recurring backups.)

The pve-data pool is already allocated to pretty much all of the existing disk. Trying to extend the existing LVM by adding another PV is generally not recommended unless there is some kind of RAID underneath it. You would arguably be better off by defining a separate storage as indicated above.

If the backup's disk is the same size (80GB) and you have no ability to add another disk, you may need to delete the existing 106 VM before restoring it. Note that you do this at your own risk, I take no responsibility for data loss, this is just free advice.

In the long run, I would look into at upgrading to least 1TB of disk space to give you some headroom for further development. 128-256GB is the least amount that I would personally recommend just for Proxmox OS, LVM-thin and housekeeping (including a few ISO images); it's IMHO not really enough to start experimenting with virtualization unless you're running a really stripped-down minimal setup.
 
Last edited:
If you want to make this easy: add another disk; create a ZFS single-disk pool on it; use it as the storage for VM 106.
With compression, you shouldn't need to worry about resizing until you want to upgrade that to a larger disk (or it dies. But this is what Backups are for. I hope you have at least some separate storage for that - and have scheduled recurring backups.)

The pve-data pool is already allocated to pretty much all of the existing disk. Trying to extend the existing LVM by adding another PV is generally not recommended unless there is some kind of RAID underneath it. You would arguably be better off by defining a separate storage as indicated above.

If the backup's disk is the same size (80GB) and you have no ability to add another disk, you may need to delete the existing 106 VM before restoring it. Note that you do this at your own risk, I take no responsibility for data loss, this is just free advice.

In the long run, I would look into at upgrading to least 1TB of disk space to give you some headroom for further development. 128-256GB is the least amount that I would personally recommend just for Proxmox OS, LVM-thin and housekeeping (including a few ISO images); it's IMHO not really enough to start experimenting with virtualization unless you're running a really stripped-down minimal setup.

Thanks for the reply, yeah I would like to add another disk or a larger disk, though I will need to rework my storage to accommodate it, I do have scheduled daily backups as well.

I've done some housekeeping with the disk and removed that 80gb, it was corrupted anyway and did a restore of the VM from backup.

Ideally I will be going larger though I've also just got a Dell Optiplex SFF and I'm going to sit down and need to create a post about it as I will be looking for some advice, I do appreciate your reply though.
 

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!