Adding 1 swap partition on 3 physical disks (not ZFS) | PVE 6.2-12

wepicurien

Member
Oct 2, 2020
4
0
6
32
Hello,
I just installed PVE 6.2-12 on an OVH dedicated server with 3*NVMe SSD.
I choose to install PVE on a ZFS RAIDZ (raid5) of 100 Go. I want now to add a swap partition. After that I will add one new partition for data with a new ZFS pool.
Nevertheless, I now would like to add 1 swap partition on the 3 physical disks (3*4G). I don't want to add it on ZFS because it is not recommended on PVE Wiki, it causes some troubles.
I really don't know how to do it on PVE with SSH. I didn't find a precise answer to this question on other threads, only creating swap on ZFS.
Thank you so much for your help! :)
Romain.
 
Last edited:
Hi,

there is no easy way to create a swap partition on this dev where ZFS is located.
Also, it is not recommended to do so.
In the past swap has made many problems with ZFS on the same disk.