![]() The way to do that is different for different distributions, for Ubuntu 16. Then you'll have to make sure the script is executed during boot time. Mount -o discard /dev/nvme1n1 /home/ubuntu/spda usr/local/sbin/mount-instance-store.sh with roughly this content: mkfs.ext4 -E nodiscard -m0 /dev/nvme1n1 To resolve your problem you will have to create a custom script, e.g. That's why simply adding it to /etc/fstab isn't enough - the disk won't be formatted at the time the boot script attempts to mount it. ![]() The next time you stop/start it will be blank again and you must mkfs it again. Anything that can be easily recreated if it's lost.Įvery time you start the instance the disk is blank - you must format it first (e.g. In order to launch an instance on the EC2 cloud, you first need to locate its ID. Each AMI is a machine template from which you can instantiate new servers. These instance storage disks are great for caches, temporary dirs, swap space, etc. As Ubuntu cloud images are uploaded and registered on the Amazon EC2 cloud, they are referred to as AMI (Amazon Machine Images). The 200GB SSD disk that you see is called Instance storage (or ephemeral storage) and is destroyed everytime you stop the instance and created new every time you start the instance.ĭon't store any precious data you want to retain over stop/start - it will be all gone when you stop it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |