Technical Tip: Adding an additional SWAP disk
Description
This article describes how to add an additional SWAP disk.
Scope
FortiSIEM.
Solution
Add a new HDD of 20 to 30 GB from the Hypervisor.
Under FortiSIEM:
lsblk # to review the available disks. fdsik /dev/vdX (or sdX - the newly added device) n # to create a new partition Utilize the whole space of the new drive. As a type choose: 82 Linux swap w # to write the changes
mkswap /dev/vdX # to create the new swap disk swapon /dev/vdX
To make it permanent.
blkid # to find the UUID simmilar to the example below /dev/mapper/rl-swap: UUID="b4486d6e-a991-4575-9373-cc7c9c8a9c3b" TYPE="swap" echo "UUID=b4486d6e-a991-4575-9373-cc7c9c8a9c3b swap swap defaults 0 0" >> /etc/fstab