Proxmox Help
from notdeadyet@lemmy.dbzer0.com to selfhosted@lemmy.world on 30 May 2024 00:49
https://lemmy.dbzer0.com/post/21256821

Hey everyone, I’m currently using proxmox to virtualize my OPNsense and another VM. Today when I went to create a third VM, everything crashed with I/O errors, and I realized my local-lvm was out of space. This was odd to me since I have a 1TB drive and only have two small VMs.

To my surprise, proxmox is only using 100GB of my disk. Can someone please guide me on how I can fix this without having to reinstall proxmox? I would prefer to have my OPNsense VM running while I fix this. Here are some diagnostics to help. Thanks

pastebin.com/1N7fwmYy

#selfhosted

threaded - newest

monkeyman512@lemmy.world on 30 May 2024 01:11 next collapse

I can’t give you specifics but generally what is likely necessary:

  1. Backup anything important. You will be doing things that risk loosing data.
  2. Make a bootable USB with a live Linux.
  3. Look up instructions on resizing partitions.
  4. Boot into the live Linux from the USB
  5. Resize your existing Proxmox partition
notdeadyet@lemmy.dbzer0.com on 30 May 2024 01:18 collapse

I’ll give that a shot with gparted on the weekend if all else fails. Thanks!

monkeyman512@lemmy.world on 30 May 2024 03:53 collapse

I would also make sure you have a Proxmox install USB ready to go just in case.

AbidanYre@lemmy.world on 30 May 2024 01:53 collapse

Edit: nevermind, sda3 is already being used. The lv group needs to be embiggened.

notdeadyet@lemmy.dbzer0.com on 30 May 2024 01:56 collapse

Would you know how I would go about doing that?

AbidanYre@lemmy.world on 30 May 2024 02:11 collapse

I’ve done it before, but there’s always a lot of googling involved. I think a combination of vgdisplay and vgextend may help: www.redhat.com/sysadmin/resize-lvm-simple

If sda3 is really <100GB it gets a lot scarier but is likely still doable.

I’m not a fan of Proxmox’s partitioning scheme and usually use a separate drive for the OS and the VMs because of this exact scenario.

notdeadyet@lemmy.dbzer0.com on 30 May 2024 02:58 collapse

That led me in the right direction!

Fixed it with:

pvresize /dev/sda3
lvresize --extents +100%FREE --resizefs /dev/pve/data

Thank you!