MultiCloud Classroom notes 12/Sep/2026

EBS storage (elastic block storage)

  • ebs is storage service provided by aws that is used in ec2 instance
  • its acts a storage disk (vloume)

Key features:

  1. block-level storage: data is fixed storage disk – not object like s3
  2. one instance at a time : an ebs will attach one device only\
  3. low latency: heavy workloads and faster access
  4. performace: high performace for read/wirte operations
  5. snapshots: back up of ebs vloume ==> stored in s3
  6. Manual scalling: increasing vloume size / modify vloume

Note: ebs volume and ec2 instance must be same avialbilty zone

How its works

flowchart LR
    A[Create EBS volume] --> B[Attach to EC2 instance]
    B --> C[Format & mount as a disk]
    C --> D[Use it for storing data]

  1. create ebs vloume
    1. select volume type like gp2, gp3, iop1, iop2, …etc
    2. size of vloume 10 gb
    3. select az location same as ec2 location
  2. attach volume to ec2
    1. ec2 instance
    2. mount path like /dev/dvfc
  3. format disk and paration volume
### show all disks 
```lsblk```
### parted vloume 
```sudo parted /dev/nvme1n1```

```bash
GNU Parted 3.6
Using /dev/nvme1n1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(parted) mkpart primary ext4 0% 100%
(parted) quit                                                           
Information: You may need to update /etc/fstab.

format parted

sudo mkfs -t ext4 /dev/nvme1n1

sudo mkdir /data sudo mount /dev/nvme1n1 /data

update fstab

sudo lsblk -o +UUID

vi /etc/fstab

UUID=d6166c7c-d716-4a25-926d-f00ff49d49fb /data ext4 defaults,nofail 0 2

sudo umount /data systemctl daemon-reload sudo mount -a

verify disk

df -h ==> disk free space (-h human readable) lsblk ==> disk and parted mount ==> mounted disks

refer document to mount ebs volume

Leave a ReplyCancel 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

Exit mobile version
%%footer%%