SWAP space on EC2 on separate volume
It’s an extension of my previous article – how to create SWAP on EC2 instance.
This time, we are going to create separate volume.
It’s an extension of my previous article – how to create SWAP on EC2 instance.
This time, we are going to create separate volume.
You can just open file with nano -c filename to make it permanent: nano ~/.nanorc and drop there set const save it… and you are done.
an easy way to extend your disc space on VM
…in most cases you have 2 options. Because we are living in Cloud and VPS era – it’s not a big deal. You can always bump up your volume and after while you can enjoy bigger more expensive instance with more space. But sometimes you need just a space for a while or… just something for a backup ? You can always use s3cmd , gsutil or another tool. Imagine that you have just regular folder on your drive, with almost unlimited space. Sounds good ? If so checkout – s3fs-fuse . Nice tool, which allows you to bind external storage as a director in your system.
(powerDNS)[https://www.powerdns.com] it’s a great alternative for large and complex BIND setup. Light footprint, and quick setup made that server as my obvious choice for slave server for primary BIND server. So let’s config begins:

Biggest advantage with AWS – EC2 service, is that you are paying for each minute of usage. So – why run instances 24/7 if you need them only for 12 hours par day ? You can just start and stop whenever you need them. Obviously we don’t want to forgot to shutdown our instance, or start when we need it. Here is a simple recipe how to automate whole task