Internal error: Reserved memory not enough during snapshoting an offline VM

udo

Distinguished Member
Apr 22, 2009
5,980
203
163
Ahrensburg; Germany
Hi,
we had an error massage during snapshotting an switched off VM:
snapshotting 'drive-scsi0' (ssd-lvm:vm-1117-disk-0)
Logical volume "snap_vm-1117-disk-0_xxx" created.
Internal error: Reserved memory (31006720) not enough: used 31928320. Increase activation/reserved_memory?


Code:
pveversion
pve-manager/8.4.1/2a5fa54a8503f96d (running kernel: 6.8.12-10-pve)

free
               total        used        free      shared  buff/cache   available
Mem:       396140412   113412204   238438444       84744    47557228   282728208


The snapshot task show status OK - ist there anything to worry about?

Udo
 
Hi,
you could increase the reserved memory to something higher by editing lvm.conf.
Regarding the risks, this is the comment from the lvm.conf
# Configuration option activation/reserved_memory.
# Memory size in KiB to reserve for use while devices are suspended.
# Insufficent reserve risks I/O deadlock during device suspension.
# This configuration option has an automatic default value.

The automatic default value, in your case 31006720 Bytes, is obviously not sufficient for your usecase. As you have more than enough free memory, just double it, like reserved_memory = 65536
Reload the service with systemctl restart lvm2-monitor.service
Verify the change with lvmconfig activation/reserved_memory