We've added the nobootwait flag so that the machine boots even if due to some kind of error the system can't find /mnt/home. We added a line to the fstab so that our filesystem reconfiguration survives reboot. etc/fstab is the file the server uses to keep tabs on the filesystem. ![]() ![]() Like this:Įcho /mnt/home /home bind bind,nobootwait 0 0 > /etc/fstab To move his home directory to instance storage Alon is going to copy it over to /mnt and then configure his server to bind /mnt/home to /home. The solution: moving directories to instance storage You can install and run it on TurnKey like this:Īs you can see in this example /home is our main disk space hog so that's the directory we will move to instance storage. The ncdu program is a quick and easy way to find out what is eating up disk space on any Linux system. Once you attach an EBS volume to a server you can move data from the root filesystem to the EBS volume as described below, except you'll be using a different path (e.g., /media/ebs/869c3f instead of /mnt).įind out what is taking up space on your server Note that Amazon charges $0.10/month per GB for EBS volumes compared with instance storage which is free. When you restart your server (e.g., a year later) it will probably be resurrected on an entirely different physical host.įor S3-backed instances: instance storage survives reboots but doesn't survive if you destroy the server.Ĭreate EBS volumes: If you want to create storage volumes that survive a server being stopped or destroyed please create an appropriately sized EBS volume. This is because stopping an EBS-backed instance detaches it from the physical host. You can still reboot because rebooting doesn't move an instance to a different physical server.įor EBS-backed instances: instance storage survives reboots but doesn't survive if you stop an instance or destroy it. ![]() That means you can rely on instance storage not to be deleted so long as you don't stop or destroy the server. Instance storage is guaranteed to be available only as long as an instance is running on the same physical host. Limitations: instance storage is ephemeral, use EBS-backed volumes for persistent storageīefore you stop or destroy an instance, please make sure to backup any data you want to keep (e.g. So how does Alon move data to instance storage? The server has an additional 160GB of instance storage attached to /mnt. The problem is that there is only 10GB in the server's root filesystem. After a couple of months Alon notices that space on his root filesystem has almost run out.įilesystem 1K-blocks Used Available Use% Mounted on Alon launches a Small type server via the TurnKey Hub. Here's an example to illlustrate the problem. The problem: the 10GB root filesystem is running out of space ![]() Or alternatively move your instance to a larger root volume. All other instances sizes available from the Hub (T2, M4 & C4) DO NOT have instance storage available.įor newer generation instances, if you need more space, please see the page on how to expand your existing root volume (recommended). Please note that for v14.0+ Hub launched servers this only applies to the I3 instances.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |