sábado, 14 de noviembre de 2026

Resize lvm proxmox





1. See how much free space the storage really has
pvesm status | grep storage-lvm 

vgs 

lvs


2. Grow the mount point

Use the VFree value, rounded down slightly. For example, if VFree is 23.47g:
pct resize 100 mp0 +23G


pct resize grows both the logical volume and the ext4 filesystem inside it. It works while the container is running, and Frigate doesn't need a restart.

To use every last free extent instead of a rounded number:
lvextend -l +100%FREE /dev/<vgname>/vm-100-disk-0 pct rescan # updates size= in 100.conf




3. Check it worked
grep mp0 /etc/pve/lxc/100.conf pct exec 100 -- df -h /cctv_clips



4. Restart the lxc to get all the data
pct stop 100
lvchange -ay storage-lvm/vm-100-disk-0
ls -l /dev/storage-lvm/vm-100-disk-0         # should exist now
e2fsck -f /dev/storage-lvm/vm-100-disk-0
resize2fs /dev/storage-lvm/vm-100-disk-0
pct start 100
pct exec 100 -- df -h /cctv_clips

No hay comentarios:

Publicar un comentario