Adding disk space to the image is so that you do not loose any data when terminating the image. Not quite sure how this works yet, but hey, I’m setting it up:
Using the Amazon EBS Volume Inside an Instance
Inside the instance, the Amazon EBS volume is exposed as a normal block device and can be formatted as any file system and mounted. In this example, the user creates an ext3 file system on the Amazon EBS volume and mounts it as /mnt/data-store.
$ yes | mkfs -t ext3 /dev/sdh
$ mkdir /mnt/data-store
$ mount /dev/sdh /mnt/data-store
To make this permanent:
echo “/dev/sdh /mnt/data-store ext3 noatime 0 0” >> /etc/fstab
Any data written to this file system is written to the Amazon EBS volume and is transparent to applications using the device.
I might just test this by shutting it down and restarting it now that I have installed Postgres, Tomcat, etc
Leave a comment
No comments yet.