AWS Classroomnotes 19/Apr/2023

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
    Preview
  • 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
      Preview
  • 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
    Preview
    Preview
    Preview
  • Make a note of volumes created
    Preview
  • Create a snapshot of volume
    Preview
    Preview
    Preview
  • From snapshot create a new volume in different AZ
    Preview
    Preview
    Preview
    Preview
  • From snapshot create a new volume in different Region
    • Select Snapshot
    • Copy snapshot to any region
    • from there create ebs volume
      Preview
      Preview

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.

Published
Categorized as Uncategorized Tagged

By continuous learner

devops & cloud enthusiastic learner

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Please turn AdBlock off
Animated Social Media Icons by Acurax Responsive Web Designing Company

Discover more from Direct DevOps from Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading

Visit Us On FacebookVisit Us On LinkedinVisit Us On Youtube