Project

General

Profile

Actions

Azure VPS setup notes » History » Revision 1

Revision 1/49 | Next »
Jon Goldberg, 06/08/2020 08:44 PM


Azure VPS setup notes

I have a lot more to put here, but for now:

Swap

By default, Azure VPSes don't have swap. Creating a swapfile (as opposed to a swap partition) is an excellent use of the ephemeral disk that Azure VPSes come with. More detailed documentation is available, but as root:

# This first command takes a few minutes.
dd if=/dev/zero of=/mnt/resource/swap bs=1024 count=8G
chmod 600 /mnt/resource/swap
mkswap /mnt/resource/swap
swapon /mnt/resource/swap
echo "/mnt/resource/swapfile       none    swap    sw      0       0" >> /etc/fstab 

Updated by Jon Goldberg almost 4 years ago · 1 revisions