no swap on one node?

aweber1nj

Member
Dec 20, 2023
43
2
8
My "oldest" node that has been upgraded through a few versions of PVE does not appear to have any swap partitions/space defined. My "new" node that was installed recently from 8.3 ISO does have 8GB defined: "/dev/dm-0 partition"

Is there a specific/recommended way to add swap to a 8.3.x node? The lack of any configured swap on the node feels wrong and like "an accident waiting to happen."

Thanks again,
AJ
 
Hi!

This might depend on the disk setup that was selected during installation (ext4, zfs, btrfs, ...), which did you chose? Do you currently have unpartitioned space on the boot disk? Depending on the initial Proxmox VE version, there might be some intentionally free space to setup a swap partition manually at a later point.
 
Doesn't look like anything remains on the boot disks (which are mirrored). See pic, below.

Should I setup a swap "file" in the ZFS partition on boot?

Screenshot 2025-03-04 113711.png
 
A swap partition would imply me finding another physical disk to install. There is no available space on any of my current PDEVs.

I can certainly do this, but I'm surprised this happened...really not sure how, as this being my first node, I'm sure I would have followed any "defaults" I could have.
 
Today most installations were done with zfs and so there is no swap in zfs config at all defined.
Your installation is right and you don't need it. Compare with a lvm installation were you get a 8GB swap which isn't much difference to 0GB.
So you are fine and don't think about further.