These instructions are to create a new swapfile if I am not mistaken?
Yes, it is to create a new swapfile on your system. Having multiple swapfiles on your server is not a problem, and it will allow you to disable or enable them independently so you can easily control how much swap space available you have on your server instead of having to remove your current swap and creating a new one.
Note we highly recommend you to add a new swap file as needed.
I followed our guide and it worked just fine. My server is also showing the swap size adding the size of both swap files when I run
free -h command.
root@ip-172-31-54-152:/home/bitnami# swapon -s
Filename Type Size Used Priority
/mnt/.bitnami.swap file 649996 11008 -2
/mnt/swap.0 file 1048572 0 -3
root@ip-172-31-54-152:/home/bitnami# free -h
total used free shared buff/cache available
Mem: 987Mi 425Mi 67Mi 7.0Mi 494Mi 412Mi
Swap: 1.6Gi 10Mi 1.6Gi