Added storage

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:

Here’s how

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.

Comments RSS TrackBack Identifier URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s