AWS Disk Storages
Amazon Elastic Block Storage
- This is a service that offers a persistent storage for ec2 instances.
- EBS has to be os disk in AWS
- EBS will be from the same zone in a region where ec2 is launched
- EBS is physically located in different server in the same zone where ec2 is launched where as instance store comes from the same physical location
- Instance store is supported only by few instance types
- AWS uses a term called as volume to represent disk
- root volume is disk with os which has to be EBS

- EBS can be attached to only one ec2 instance at any given moment
- Backups of EBS volumes are called as snapshots
- Snapshots can be taken manually or AWS Backup service can automatically take backups according to schedules
- EBS Volumes types
- General Purpose SSD:
- IOPS: 100 to 16,000 IOPS
- good performace at low cost
- Provisioned IOPS SSD:
- IOPS: 100 to 100000 iops
- Size to IOPS ratio has to be between (1:50)
- HDD-Backed Volume
- Throughput Optimized HDD
- ColdHDD

- General Purpose SSD:
- AWS can provide
- empty disks to EC2
- disks from snapshots to EC2
- EC2 disk sizes can be increased, but not decreased
Amazon Elastic File Share
- Fully managed file share which can be mounted to multiple linux instances
- This is storage from network, so it comes with security group
- Performance Mode:
- General Purpose
- Max I/O Mode
- EFS cannot be mounted as os disk, where as can be mounted on any other disk.
Experiments
- Create two ubuntu ec2 instances in any region



- Make a note of volumes created

- Create a snapshot of volume



- From snapshot create a new volume in different AZ




- From snapshot create a new volume in different Region
- Select Snapshot
- Copy snapshot to any region
- from there create ebs volume


Next Steps
- Create a new empty volume (Size 1 GB)
- Mount this to one ec2 instance
- Create a xfs based file system
- Restart the machine
- See what are mounts attached.
