Automatically configure swap #663

Closed
opened 2026-08-14 16:30:57 +00:00 by raucao · 0 comments
Owner

Half of RAM by default

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
Half of RAM by default ```bash sudo fallocate -l 2G /swapfile sudo chmod 600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab ```
raucao added the enhancement label 2026-08-14 16:30:57 +00:00
raucao added this to the 2026 project 2026-08-14 16:31:11 +00:00
raucao moved this to To Do in 2026 on 2026-08-14 16:31:14 +00:00
raucao changed title from Configure swap via cloudinit to Automatically configure swap 2026-08-14 18:03:13 +00:00
greg closed this issue 2026-08-14 19:17:22 +00:00
raucao moved this to Done in 2026 on 2026-08-17 15:14:40 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kosmos/chef#663