hi,
I recently set up my homeserver with PVE 6.2. Hardware is as follows:
Intel Xeon E3-1275v3
Supermicro X10SAE
32GB ECC Memory
2x Samsung 850 EVO SATA-SSDs as ZFS mirrored system drives for proxmox on the 2-port ASM1061 SATA controller of the board
3x Seagate 16TB drives on the C226 SATA controller passed through to a TrueNAS core VM
I don't know if it matters, but one of the Samsung SSDs is damaged, ZFS state degraded (explains my issues with my windows hyper-v server that i replaced with proxmox now). Replacement SSD is in the mail.
I allocated 16 of the 32GB of RAM to the TrueNAS VM. Another 8 went to my windows server VM, 1 to my opnsense VM. the rest is available for proxmox and various small LXC containers running mysql, openhab etc.
The last couple of days I noticed that randomly the TrueNAS vm crashed, so I kept an eye on this and found out, that sometimes I run out of RAM and then proxmox kills the TrueNAS vm, which is arguably the most important one for me.
So I googled a bit and activated an 8GB swapfile using the command
Also I reduced the allocated RAM of the TrueNAS VM to 12GB, leaving a little more headroom for proxmox. Now I converted an old vhdx of my last server over to qcow by using qemu-img convert. This slowly filled the swapfile to the brim without using the RAM which ultimately crashed the whole server.
I guess something is fundamentally ill configured here, as I am completely new to proxmox, only having some experience with little debian server vms I set up in the past on my windows server.
How can I prevent proxmox from killing a vm because of a lack of ram (not just gracefully shutting them down, straight up crashing them)?
why does proxmox even crash when swap is full but ram isn't?
Is 8GB of swap too little? Harddrive space is not an issue at the moment.
And last but not least: where da logfiles at? /var/log/syslog does not tell me anything about a lack of ram, killing a vm or a full on crash.
best regards,
RockNLol
I recently set up my homeserver with PVE 6.2. Hardware is as follows:
Intel Xeon E3-1275v3
Supermicro X10SAE
32GB ECC Memory
2x Samsung 850 EVO SATA-SSDs as ZFS mirrored system drives for proxmox on the 2-port ASM1061 SATA controller of the board
3x Seagate 16TB drives on the C226 SATA controller passed through to a TrueNAS core VM
I don't know if it matters, but one of the Samsung SSDs is damaged, ZFS state degraded (explains my issues with my windows hyper-v server that i replaced with proxmox now). Replacement SSD is in the mail.
I allocated 16 of the 32GB of RAM to the TrueNAS VM. Another 8 went to my windows server VM, 1 to my opnsense VM. the rest is available for proxmox and various small LXC containers running mysql, openhab etc.
The last couple of days I noticed that randomly the TrueNAS vm crashed, so I kept an eye on this and found out, that sometimes I run out of RAM and then proxmox kills the TrueNAS vm, which is arguably the most important one for me.
So I googled a bit and activated an 8GB swapfile using the command
zfs create -V 8G -b $(getconf PAGESIZE) -o logbias=throughput -o sync=always -o primarycache=metadata -o com.sun:auto-snapshot=false rpool/swap
. Before that no swap partition or file was created by the initial proxmox setup routine (i guess because of zfs?).Also I reduced the allocated RAM of the TrueNAS VM to 12GB, leaving a little more headroom for proxmox. Now I converted an old vhdx of my last server over to qcow by using qemu-img convert. This slowly filled the swapfile to the brim without using the RAM which ultimately crashed the whole server.
I guess something is fundamentally ill configured here, as I am completely new to proxmox, only having some experience with little debian server vms I set up in the past on my windows server.
How can I prevent proxmox from killing a vm because of a lack of ram (not just gracefully shutting them down, straight up crashing them)?
why does proxmox even crash when swap is full but ram isn't?
Is 8GB of swap too little? Harddrive space is not an issue at the moment.
And last but not least: where da logfiles at? /var/log/syslog does not tell me anything about a lack of ram, killing a vm or a full on crash.
best regards,
RockNLol