[SOLVED] Storage questions - improving my system

Hammerhand

Member
Dec 6, 2021
20
0
6
44
Hello. I have proxmox 7 working from moths ago and I want to introduce some modifications but I'm struggling with my lack of technical knowledge of english language so some of the wiki pages are very hard for me to understand.

My system has a nvme disk with 500 gb. of space which I formatted when I created the system. I used 100 gb. for proxmox, thinking that it would be needed for the system and I would use the rest for VMs and containers.

Now I am reading and I see I didn't understood correctly how it works, but can't figure out exactly how it does.


1700754981206.png

1700755000242.png

1700754957248.png

local:
1700755037746.png
local-lvm:
1700755059946.png
Home assistant (100):
1700755235758.png


What I want is to have storage and memory as most adjusted as I can.

For example, Home Assistant was given 2gb memory and 32 gb. storage space but now I see maybe it's not enough. So I stopped the machine and assigned 4gb. memory (and even there, it seems not enough yet). I want to give it more storage too but here I am completely lost: I don't know if it's on local or local-lvm because I can't deeply understand storage.

I don't know how to check where are my other conainers either.

I swear I developed it reading a lot and all works fine but now I am trying to improve it and don't know how to go further.

Hope you can help me.
 
Hi,

if you selected the default ext4 option during installation, the installer sets up a LVM (see maybe here for an introduction on what that is and what it does [0]) with a logical volume group called pve, you can list this via vgs and vgdisplay on your cli. On that, 3 logical volumes are created, called data, root and swap. Use lvs and lvdisplay to inspect these. The logical volume root is formated with ext4 as filesystem and mounted at boot. This is what you see as your local storage. data is configured as a storage called local-lvm and used to create logical volumes when you create disks on that storage.

If you want to increase the disk size for a VM, then you will have to increase the logical volume size, which you can do via the WebUI in the VMs Hardware tab, selecting the disk and clicking Disk Actions > Resize. Once the logical volume is increased, you will have to increase the partitions and filesystems from within the VM, e.g. by tools such as gparted [1].

[0] https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)
[1] https://gparted.org/

Edit: In general, you find all the possible storage backends and how to configure them in the docs here https://pve.proxmox.com/pve-docs/pve-admin-guide.html#chapter_storage
 
Last edited:
Hi,

if you selected the default ext4 option during installation, the installer sets up a LVM (see maybe here for an introduction on what that is and what it does [0]) with a logical volume group called pve, you can list this via vgs and vgdisplay on your cli. On that, 3 logical volumes are created, called data, root and swap. Use lvs and lvdisplay to inspect these. The logical volume root is formated with ext4 as filesystem and mounted at boot. This is what you see as your local storage. data is configured as a storage called local-lvm and used to create logical volumes when you create disks on that storage.

If you want to increase the disk size for a VM, then you will have to increase the logical volume size, which you can do via the WebUI in the VMs Hardware tab, selecting the disk and clicking Disk Actions > Resize. Once the logical volume is increased, you will have to increase the partitions and filesystems from within the VM, e.g. by tools such as gparted [1].

[0] https://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)
[1] https://gparted.org/

Edit: In general, you find all the possible storage backends and how to configure them in the docs here https://pve.proxmox.com/pve-docs/pve-admin-guide.html#chapter_storage
So root (local) should only have proxmox system files? If so I oversized it and I should resize it ( have 21 gb. used from 100 gb.)

If so I think I should move all my vms to local-lvm but I'mg getting "unable to clone mountpont 'mp0' (type bind) (500)"

Edit, now I see the problem is with mountpoint not being able to be cloned. Gonna delete it from config and then set it again.
 
Last edited:
So root (local) should only have proxmox system files?
Yes, best practice is to store VM/CT disks as logical volumes on the LVM in such a setup. Even better would be to completely separate storages for VM/CT data and the host, making recovery/reinstall in case of a node failure easier.
 
  • Like
Reactions: Hammerhand

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!