AWS
DevOps
  • knowledge
    • glossary
    • network knowledge
      • CIDR Block
      • OSI
      • List of Ports
      • Network model
    • AWS best practices
      • Least privilege principle
      • Support Plan
      • Well-architected framework
        • Well-architected framework
        • Cost optimization
        • Operational Excellence
        • Performance efficiency
        • Reliability
        • Security
    • Exams
      • DOP-C02
        • DOP-C02 topics
        • DOP-C02 Labs
      • DVA-C02
      • SOA-C02
  • services
    • access management
      • Directory Service
      • IAM
        • PassRole
      • IAM Identity Center (SSO)
      • Organizations
        • Organizational Unit
        • Control Tower
      • AD Domain Service
    • analytics
      • data analytic
        • Athena
        • QuickSight
        • Redshift
      • data collection
        • Data Lake
        • Lake Formation
      • data processing
        • EMR
        • Kinesis
        • Glue
          • Glue Data Catalog
      • OpenSearch
    • compute
      • Batch
      • EC2
        • Auto Scaling
        • AMI
        • ELB
          • Global accelerator
        • Security Group
        • EBS
        • EC2 Instance Store
        • Spot Fleet
      • Elastic Beanstalk
      • Lambda
        • Layer
        • Lambda API
      • Outposts
      • Wavelength
      • SAM
      • VMWare Cloud
    • container
      • Copilot
      • ECR
      • ECS
        • ECS Anywhere
      • EKS
        • EKS Anywhere
        • EKS Distro
      • Fargate
    • cost management
      • Budgets
      • Cost Explorer
      • Saving Plans
      • Compute Optimizer
    • database
      • Data Engineer
      • Document DB
      • DynamoDB
        • DynamoDB API
        • Scan
      • ElastiCache
      • Keyspaces
      • MemoryDB for Redis
      • Neptune
      • Quantum Ledger Database
      • RDS
        • Aurora
          • Aurora Global Database
          • Aurora Serverless
      • Timestream
    • devTools
      • CICD
        • CodeArtifact
        • CodeCommit
        • CodeBuild
        • CodeDeploy
        • CodePipeline
      • CloudFormation
      • CodeGuru
      • CodeStar
      • CodeWhisperer
      • X-Ray
      • Deployment strategies
    • finance
      • Cost explorer
    • integration
      • AppFlow
      • AppSync
      • EventBridge
      • MQ
      • SNS
      • SQS
      • Step Functions
      • SWF
    • management
      • AppConfig
      • AWS Backup
      • AWS CDK
      • Config
      • Grafana
      • Health Dashboard
      • Proton
      • Service Catalog
      • System Manager
      • SSM
      • Resource Group
      • OpsWorks (discontinued)
    • media
      • Elemental MediaConvert
      • Transcoder
    • messaging
      • SES
    • migration
      • Application Migration Service
      • DataSync
      • DMS
      • Migration Evaluator
      • Migration Hub
      • Server Migration Service
      • Snow Family
      • Transfer Family
    • ML
      • Comprehend
      • Forecast
      • Kendra
      • Lex
      • Rekognition
      • SageMaker
        • SageMaker Data Wrangler
        • SageMaker ML Lineage Tracking
    • monitoring
      • CloudTrail
      • CloudWatch
      • TrustedAdvisor
    • networking
      • CloudFront
      • Customer gateway
      • Edge Location
      • hybrid networking
        • Direct Connect
          • Direct Connect Gateway
        • Site-to-site VPN
      • PrivateLink
      • Region
        • AZ
      • Route 53
      • Transit Gateway
      • VPC
        • VPC Lattice
        • Subnet
          • NACL
        • Internet Gateway
        • Network Firewall
        • VPN
        • NAT Gateway
      • Virtual Private Gateway
    • security
      • Artifact
      • ACM
      • CloudHSM
      • Cognito
      • Detective
      • Firewall Manager
      • GuardDuty
      • Inspector
      • KMS
      • Macie
      • Network Firewall
      • Resource Access Manager
      • Security Hub
      • Secret Manager
      • Secret Hub
      • Shield
      • STS
      • Trusted Advisor
      • WAF
    • storage
      • Backup
      • EBS
      • EFS
      • FSx
      • S3
        • S3 Glacier
        • S3 Snippet
        • S3 Mountpoint
      • Snow family
      • Storage gateway
      • WorkDocs
    • web & mobile
      • Amplify
      • API Gateway
      • Device Farm
      • Pinpoint
Powered by GitBook
On this page
  • Overview
  • Type of EBS
  • EBS Snapshot
  • EBS Snapshot Archive
  • Recycle Bin for EBS snapshot
  • Fast Snapshot Restore (FSR)
  • EBS Multi-attach
  • Data Lifecycle Manager (DLM)
  • Trivia
  1. services
  2. compute
  3. EC2

EBS

Elastic Block Store: storage that's attached with EC2 instance

PreviousSecurity GroupNextEC2 Instance Store

Last updated 1 year ago

| |

EBS như một USB chứa dữ liệu, còn EC2 như một virtual PC chỉ có CPU, memory mà không có disk. EBS đóng vai trò như disk của EC2 instance. Khi cắm USB vào thì EC2 sẽ truy cập được dữ liệu bên trong EBS. Do đó mỗi EBS chỉ cắm được vào 1 EC2 instance. Nhưng 1 EC2 instance thì có thể có nhiều EBS (nhiều USB cắm cùng lúc)

Overview

  • BLOCK level storage volumes.

  • EBS volume stores data in a single AZ. It is within the same AZ as the EC2 instance. (like ENI)

    • If you would like to copy an EBS, you need to take a snapshot and move it across-AZ or to different Region.

  • 1 EC2 can have multiple EBS volumes, but 1 EBS volume can have only one instance at a time.

    • If it is Linux, it multi-multi

    • There is a EBS io1/io2 volume which support Multi-Attach. So you can attach the same EBS to multiple EC2 (16) in the same AZ.

  • Offer 99.999% SLA.

Type of EBS

  • General purpose (SSD)

  • Magnetic (HDD)


EBS Snapshot

  • Snapshot: is a backup of your EBS at a point in time.

  • ONLY data that has changed since the most recent snapshot is backed up.

EBS Snapshot Archive

  • Move a snapshot to archive tier that is 75% cheaper.

  • Take 24 - 72 hours for restore an archive.

Recycle Bin for EBS snapshot

  • Set up rules to retain deleted snapshot so you can recover.

  • Specify retaintion (from 1 day to 1 year)

  • Cost can occur.

Fast Snapshot Restore (FSR)

  • Retain a snapshot immediately.

  • Enables you to create a volume from a snapshot that is fully initialized at creation. This eliminates the latency of I/O operations on a block when it is accessed for the first time.

  • Cost lot of money.

  • Fast snapshot restore must be explicitly enabled on a per-snapshot basis.

  • Fast snapshot restore can be enabled on snapshots with a size of 16 TiB or less.

EBS Multi-attach

Attach the same EBS volume to multiple EC2 instances in the same AZ.

Data Lifecycle Manager (DLM)

DLM can be used to automate the creation, retention, and deletion of EBS snapshots and EBS-backed Amazon Machine Images (AMIs).las


Trivia

  • EBS lives within a single AZ. When you create an EBS volume in an AZ, it is automatically replicated within that zone only.

  • EBS lives within the same AZ as EC2 instance.

  • When EC2 instance is terminated, the root EBS volume will be deleted, but other will remain. (This feature can be setted through CLI/Console).

  • EBS volume can be scaled using EBS Snapshot.

  • When creating EC2 instances, you can only use the following EBS volume types as boot volumes: gp2, gp3, io1, io2, and Magnetic (Standard).

  • General Purpose SSD storage is 3 IOPS / GiB.

  • Support live configuration change while in production.

  • All snapshots that are created from an encrypted volume are encrypted.

  • All EBS volume types can be encrypted.

Snapshot lifecycle
EBS instance storage
FSR
EBS's overview
copy EBS across-AZ