top of page
Writer's picturevP

AWS Storage: A Deep Dive into Elastic Block Store (EBS) - Day 14

Hello fellow AWS enthusiasts! Welcome to Day 14 of our #100DaysOfAWS series. Today, we're shining the spotlight on Elastic Block Store (EBS), a pivotal component in the AWS storage landscape. As we explore the EBS, we'll demystify the concept and guide you through the seamless process of attaching and detaching volumes to and from EC2 instances.


What is EBS?

Elastic Block Store, or EBS, is AWS's block-level storage solution, offering scalable and persistent storage volumes that can be attached to EC2 instances. Think of it as your EC2's trusty sidekick, providing the necessary storage for your applications, databases, and more.


Now, let's break down the key components that make up EBS:

  • Volume Types: EBS offers various volume types tailored to different use cases. From General Purpose (SSD) to Provisioned IOPS (SSD) for high-performance applications, and Throughput Optimized (HDD) for frequently accessed, large datasets, there's a volume type to suit your specific requirements.

  • Snapshots: EBS allows you to create point-in-time snapshots of your volumes. These snapshots serve as backups and can be used to create new volumes, ensuring data durability and recovery.

EBS Features:

  1. Scalable Storage: Need more space? EBS volumes can be easily resized on the fly to meet the growing needs of your applications.

  2. Data Persistence: EBS volumes persist independently of the life of an EC2 instance, ensuring that your data is safe and sound even if the instance is terminated.

  3. Snapshot Capabilities: EBS allows you to take point-in-time snapshots of your volumes, providing a backup mechanism for disaster recovery or cloning instances.

  4. Variety of Volume Types: Choose from different volume types based on your application's requirements, such as General Purpose (SSD), Provisioned IOPS (SSD), and Magnetic.

EBS Dataservices:

EBS doesn't stop at basic storage. AWS has introduced EBS Dataservices, enhancing the capabilities of EBS with features like:

  • Amazon EBS io2 Block Express Volumes: For high-performance workloads, offering 256K IOPS and 4,000 MB/s throughput.

  • Amazon EBS Multi-Attach: Allowing a volume to be attached to multiple EC2 instances simultaneously.


Attaching and Detaching Volumes:

Now, let's get hands-on with attaching and detaching EBS volumes to and from EC2 instances. Follow these steps:

  1. Navigate to EC2 Dashboard: Access the AWS Management Console and head to the EC2 service.

  2. Locate Volumes: In the left navigation pane, click on "Volumes" under the "Elastic Block Store" section.

  3. Create a New Volume (If Needed): If you don't have an existing volume, create one by clicking "Create Volume." Specify the volume type, size, and availability zone.

  4. Attach Volume to EC2 Instance: Select the volume and click "Actions" > "Attach Volume." Choose the target EC2 instance and specify the device name (e.g., /dev/sdf).

  5. Connect to EC2 Instance: Log in to your EC2 instance and run the command to discover the attached volume (e.g., lsblk or fdisk -l).

  6. Mount the Volume: If the volume isn't automatically mounted, use the mount command to mount it to a desired directory.

  7. Detach Volume (When Needed): To detach a volume, ensure it is unmounted, then in the AWS Management Console, select the volume and click "Actions" > "Detach Volume."

  8. Confirm Detachment: Confirm the detachment and ensure the volume state changes to "available."


And there you have it! A hands-on journey into the realm of Elastic Block Store. Understanding EBS and mastering the art of attaching and detaching volumes empowers you to manage your storage resources with agility.


Stay tuned for Day 13 as we continue our exploration of AWS, uncovering new facets of cloud computing. Happy learning, and remember to share your thoughts using #100DaysOfAWS!


Thank you for reading!


*** Explore | Share | Grow ***

11 views0 comments

Comentarios

Obtuvo 0 de 5 estrellas.
Aún no hay calificaciones

Agrega una calificación
bottom of page