Swap not detected in all lxc containers in a node

Feb 27, 2020
48
3
28
51
Hi all
I have a 3 node-cluster for my development environment, all three nodes are basically same hardware. Cluster is pve6 and all lxc containers are centos7.
In one of the nodes, all the containers have 0 swap memory, no matter what the configured amount is for any lxc. The main node las 16GB swap, nearly all unused.
The other two nodes of the cluster do not have these issue. See below

Affected NODE:
CPU(s) 48 x Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz (2 Sockets)
Kernel Version Linux 5.4.140-1-pve #1 SMP PVE 5.4.140-1 (Wed, 08 Sep 2021 16:21:59 +0200)
PVE Manager Version pve-manager/6.4-13/9f411e79
SWAP usage 2.99% (490.25 MiB of 16.00 GiB)
root@p-4:~# free -hm
total used free shared buff/cache available
Mem: 236Gi 93Gi 12Gi 53Gi 130Gi 87Gi
Swap: 15Gi 490Mi 15Gi

ANY CONTAINER on the node:
root@api-core2-devel ~]# free -hm
total used free shared buff/cache available
Mem: 8.0G 3.1G 1.2G 2.2G 3.6G 4.9G
Swap: 0B 0B 0B

This line, Swap = 0B is the same in all the containers, no matter what info the WEB_UI is showing.


Other NODE
PU(s) 48 x Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz (2 Sockets)
Kernel Version Linux 5.4.140-1-pve #1 SMP PVE 5.4.140-1 (Wed, 08 Sep 2021 16:21:59 +0200)
PVE Manager Version pve-manager/6.4-13/9f411e79
SWAP usage 15.34% (4.91 GiB of 32.00 GiB)
root@proxmox-2:~# free -hm
total used free shared buff/cache available
Mem: 251Gi 33Gi 105Gi 83Gi 112Gi 133Gi
Swap: 31Gi 4.9Gi 27Gi
root@proxmox-2:~#

ANY CONTAINER on the unaffected node is showing swap size according to what is configured in the Web_UI.
[root@mysql-restore ~]# free -hm
total used free shared buff/cache available
Mem: 32G 10G 19G 1.8G 2.1G 21G
Swap: 31G 72K 31G


Any ideas to fix this?
 

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!