본문 바로가기
인프라 개념

[AWS] EBS Volume 2025 - 3 - 7

by 집돌이디벨로퍼 2025. 3. 7.

- An EBS (Elastic Block Store) Volume is a network drive you can attach to your instances while they run

- 인스턴스가 종료된 후에도 데이터 지속

- CCP 레벨에서의 EBS는 한번에 하나의 인스턴스에만 마운트 될수있다

- Associate Level 에서는 multi attach 가 몇몇 EBS에서 가능하다. 

- EBS생성시 특정 가용성 존에 묶인다.

==> 네트워크 USB 스틱이라고 생각하면 편함

프리티어 30GB 사용가능 

 

EBS Volume

- 물리적 드라이브가 아닌 네트워크 드라이브

- 네트워크 상호작용이어서 약간의 지연이 생길수도있다

- EC2 인스턴스에서 분리되어 빠르게 부착될수있음 => 장애조치시 유용

- 서울에서 생성하면 오사카에서는 사용이 불가능함 snapshot 사용하면 다른 가용성 영역에 걸쳐 볼륨이동가능

==> SNAPSHOT 뜻은 백업

 

 

1개의 EBS 볼륨을 여러개의 인스턴스에 사용할수는 없지만 인스턴스는 여러개의 EBS를 사용할수있다

==>

io1과 io2 볼륨 유형에서는 가능하다 이를 EBS 멀티 어태치(Multi-Attach) 기능이라고 한다

AWS Cloud Practitioner 시험의 관점에서 보면, 이 내용은 시험 범위에 포함되지 않기때문에 없다 생각한다 일단은

 

AWS CLI , AWS console에서

- EBS behaviour 컨트롤에서 EC2가 종료될때 저장공간이 삭제될지 안될지 선택할수 있는 기능이 존재함

- 루트 볼륨(디폴트값에선 삭제됨에 체크)

 


AMI (Amazon Machine Image)

AMI are a customization of an EC2 instance

나만의 EC2 를 만들수있고 마켓플레이스에 내놓을수도 있고 거기 있는걸 사용할수도 있는 기능?

 


EC2 Image Builder

가상 컴퓨터나 컨테이너 이미지 생성을 자동화하는데 사용된다

=> Automate the creation, maintain, validate and test EC2 AMIs

=> 일정에 따라 생성될 수도 있음

 


EC2 Instance Store

- EBS volumes are network drives with good but "limited" performance

- If you need a high-perfomance hardware disk, use EC2 Instance Store

 

- Better I/O performance

- EC2 Instance Store lose their storage if they're stopped (ephemeral)

=> 장기간 데이터 보관소로 사용하기 부적합함

=> buffer / cache / scratch data / temporary content 같은 것들은 ㄱㅊ

장기 저장할거면 EBS ㄱㄱ

 

암튼 사용하게 된다면 백업도 잘해놓고 해야함 데이터 손실의 위험이 있기때문에


EFS - Elastic File System

=> 오직 Linux EC2 인스턴스에서만 작동함

=> 여러 가용성 영역에 걸쳐 작동한다.

 

EC2 인스턴스에 첨부할수있는 세번째 유형의 저장소 => NFS(관리되는 네트워크 파일 시스템)

한번에 수백개의 EC2에 설치가능 = > EBS 한번씩 부착 하는것이 아님

EFS 로 수백개를 한번에 부착 

 

EBS vs EFS

- 하나의 EBS는 하나의 인스턴스, 옮기고 싶으면 스냅샷 사용해서 옮김 => 복사본

- EFS는 마운트된것 모두 공유가 가능하다

 

 

 

EFS Infrequent Access (EFS -IA)

- Storage class that is cost-optimized for files not accessed every day

- Up to 92% lower cost compared to EFS Standard

- 마지막 접근했던 시간에 기반하여  EFS는 자동적으로 당신의 파일들을 EFS-IA로 옮긴다

- EFS IA 는 Lifecycle 정책을 정의할수있다

 

==> 결론적으로 비용절감 최적화에 필요한 시스템인 것

 


Amazon FSx

 

  • 고성능 파일 시스템 관리:
    Amazon FSx는 초당 수백 기가바이트의 처리량과 수백만 개의 I/O 작업을 처리할 수 있는 고성능 파일 시스템을 제공합니다. 이 기능은 매우 높은 트래픽을 처리할 수 있도록 스케일링이 가능하며, 서브 밀리초 수준의 지연 시간도 지원합니다. 이 서비스는 타사의 고성능 파일 시스템을 AWS에서 제공하는 완전히 관리되는 서비스로, EFS나 S3와 비교해 더 높은 성능이 필요할 때 적합합니다.
  • Windows 파일 시스템 관리:
    Amazon FSx는 Windows 파일 시스템용으로도 제공됩니다. 이 경우, AWS에서 완전히 관리되고 매우 신뢰할 수 있는 Windows 파일 시스템을 구축할 수 있습니다. 주로 Windows 환경에서 파일 서버로 사용되며, Active Directory 통합, Windows ACLs, SMB 프로토콜 지원 등의 기능을 제공합니다. Windows 파일 서버를 클라우드에서 손쉽게 운영하고 싶을 때 적합합니다.

 

 

초당 수백 기가바이트와 수백만개의 IO작업, 서브 밀리초의 지연이라는 측면에서 극도로 높은 트래픽을 스케일 할 수 있게 해준다.

 

AWS에서 타사의 고성능 파일 시스템을 확보하는 관리된 서비스이다

=> EFS 나 S3 가 싫을때 사용해 시스템을 관리할수있음

 

완전히 관리되고, 아주 믿을수있고 윈도우 파일 시스템이다. (윈도우 파일서버에 구축되있음) 

 


요약

EBS volumes:

- network drives attached to one EC2 instance at a time

- Mapped to an Availability Zones

- Can use EBS Snapshots for backups/ transferring EBS volumes across AZ

 

AMI:

- create ready-to-use EC2 instances with our customizations

 

EC2 Image Builder:

automatically build, test and distribute AMIs

 

EC2 Instance Store:

- High performance hardware disk attached to our EC2 instance

- Lost if our instance is stopped / terminated

 

EFS:

- network file system, can be attached to 100s of instances in a region

EFS-IA : cost-optimized storage class for infrequent accessed files

 

FSx for Windows :

- Network File system for Windows servers

 

FSx for Lustre :

- High Perfomance Computing Linux file system

 


오답노트

 

- An EC2 Instance Store provides temporary block-level storage for your instance. It is not a network file system

- Amazon EFS is a fully managed service that makes it easy to set up, scale, and cost-optimize file storage in the Amazon Cloud.

- EC2 Image Builder is an automated pipeline for the creation, maintenance, validation, sharing, and deployment of Linux or Windows images for use on AWS and on-premises.

 

- Amazon FSx makes it easy and cost effective to launch and run popular file systems that are fully managed by AWS. It comes in two offerings: FSx for Windows File Server (used for business applications), and FSx for Lustre (used for high-performance computing).

 

-You cannot use AMIs to add your IP addresses. IP addresses are added to an instance as you create it.

 

- EBS Volumes can be attached to only one EC2 Instance, but EC2 Instances can have multiple EBS Volumes attached to them.

 

(까먹을듯) - 문제: An EBS Volume is a network drive you can attach to your instances while they run, so your instances' data persist even after their termination.

- EBS Volumes allows instances' data to persist even after their termination. EC2 Instance Stores do not keep data after termination.

 

 

- EC2 Instance Store has a better I/O performance, but data is lost if: the EC2 instance is stopped or terminated, or when the underlying disk drive fails.

 

- You can use AWS Marketplace AMIs to use someone else's AMI.

 

 

- EBS Volumes are tied to only one availability zone.

=> A region, A data center , An edge location 에 묶여있진 않습니다.

'인프라 개념' 카테고리의 다른 글

[AWS] EC2 공부  (0) 2025.03.05
하이퍼바이저  (0) 2025.02.27