ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • AWS EFS
    Computer Science/Aws 2022. 6. 28. 20:33

    Elastic File Service

    EC2와 통신을 하기 위해서는 security group이 있어야한다.

    mount-target이 통신을 허용할 수 있도록 하는 규칙이 있어야한다.

     

    VPC -> Security group ->

    NFS type으로 Inbound rule 추가.

    그룹은 EFS에 적용했던 security group 적용

    이 security group으로 EFS에 적용.

     

    EFS로 이동.

    사용자 지정 ->

    가용성 및 내구성 - 여러 Availability zone에서 사용한다면 리전.

     

    lifecycle - 일정 시간이상 접근하지 않은 파일에 대해 Standard에서 IA(Infrequent Access)로 전환하여 비용을 효과적으로 적용한다.

    성능 모드 - 높은 처리량을 할 때만 최대 설정 다만 파일 메타데이터에 대한 작업이 지연 될 수 있다.

    처리량 모드 - 버스트(순간적으로 필요하면 빠르게 처리)

     

    네트워크

    기본적으로 하나의 Availibility zone은 하나의 Mount target 가능

     

    EC2에 mount(생성 후 바로가 아닌 1,2분후에 진행하는 것을 권장)

    yum install amazon-efs-utils

    해당 efs에 들어가 연결 -> 위 커맨드는 EFS mount helper로 진행하려고 다운한 것.

     

     

    Failed to resolve "fs-0ee0621bc2ae15fd8.efs.ap-northeast-2.amazonaws.com" - check that your file system ID is correct, and ensure that the VPC has an EFS mount target for this file system ID.
    See https://docs.aws.amazon.com/console/efs/mount-dns-name for more detail.
    Attempting to lookup mount target ip address using botocore. Failed to import necessary dependency botocore, please install botocore first.

    해당 오류는 VPC에서 DNS hostname과 DNS resolution 옵션이 활성화 되어 있지 않을 경우 생김.

    VPC메뉴에서 DNS hostname과 DNS resolution 옵션을 Enable로 활성화 후 리부트 진행.

     

    df -h 를 하면 확인 가능.

    'Computer Science > Aws' 카테고리의 다른 글

    private subnet/EC2 접근 방법  (0) 2022.06.28
    AWS Application Load Balancer  (0) 2022.06.28
    AWS LAMP 기본 네트워크 환경 구성  (0) 2022.06.28
    AWS S3 & CloudFront  (0) 2022.06.26
    EC2  (0) 2022.06.26
Designed by Tistory.