270 likes | 523 Views
Amazon Storage as a Service. Recall IaaS. Server as a Service Storage as a Service Connectivtiy as a Service. Amazon’s Storage as a Service. Amazon Simple Storage Service (Amazon S3) Amazon Elastic Block Store (EBS). Amazon Elastic Block Store (EBS): Features.
E N D
Recall IaaS • Server as a Service • Storage as a Service • Connectivtiy as a Service
Amazon’s Storage as a Service • Amazon Simple Storage Service (Amazon S3) • Amazon Elastic Block Store (EBS)
Amazon Elastic Block Store (EBS): Features • EBS can provide an persistant storage to an EC2 instance • “EBS volume data is replicated across multiple servers” • A EBS volume can be up to 1TB. You can attache multiple EBS volume to your instance (For this course, we only use a capacity allowed by the free usage tier). • A EBS volume can be easily ported to another instance • EBS IO rates can be even faster than local disk IO Referece: http://aws.amazon.com/articles/1663
EBS: How to use • 1. Create a volume with a proper size (Say 20GB for this course). • Attach this EBS volume to your EC2 instance • Format your EBS volume • Mount the volume • Move data to this volume • Create snapshots of the EBS volume • Instantiate new volume from a snapshots
Format EBS Volume #sudo mkfs –t ext4 /dev/sdf
Mount EBS volume #sudo mkdir /vol #sudo mount /dev/sdf /vol #echo "/dev/sdf /vol ext3 defaults 0 0" | sudo tee –a /etc/fstab
Amazon Simple Storage Service (S3) • Amazon S3 provides storage as a service to store and retrieve any amount of data at any time, from anywhere on the web. Figure from docs.amazonwebservices.com