AWS_FAQ

Goofys 설치

2016.11.29 19:21

호스트웨이 조회 수:7814

AWS EC2에서 S3를 파일시스템으로 마운트하고자 할때 기존에는 
S3FS를 많이 이용하였으나 속도가 느렸습니다.
최근 GooFys 라는 S3 Mount 오픈 소스가 성능이 월등해 많이 이용하는 추세입니다.

소스 다운로드 및 가이드
https://github.com/kahing/goofys

Step1 : 먼저  GOLANG 를 설치합니다.
(환경 : Redhat 계열)
yum -y install golang fuse
mkdir -p /usr/local/golang
vi /etc/profile.d/go.sh
# 아래 내용 입력
export GOROOT=/usr/lib/golang
export GOBIN=$GOROOT/bin
export GOPATH=/usr/local/golang
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
wq!

vi ~/.bashrc
# 아래내용 입력
# Golang Path
export GOROOT=/usr/lib/golang
export GOBIN=$GOROOT/bin


export GOPATH=/usr/local/golang
export PATH=$PATH:$GOROOT/bin$GOPATH/bin
wq!

source ~/.bashrc
source /etc/profile
ldconfig
go version
go env

Step 2 Goofys 설치 및 마운트

mkdir /usr/src/goofys
cd /usr/src/goofys
go get github.com/kahing/goofys
go install github.com/kahing/goofys
mkdir ~/.aws/
vi ~/.aws/credentials
mkdir /mnt/goofys

$ vi /etc/fstab
goofys #bucket 명 /mnt/mountpoint fuse _netdev,allow_other,--file-mode=0666 0 0


번호 제목 글쓴이 날짜 조회 수
31 AWS Volume Resize 안내 호스트웨이 2017.03.22 6872
30 MarketPlace 비용이 발생 할 경우 file 호스트웨이 2016.07.26 6751
29 EC2는 오토스케일링로 확장 가능한데, DB는 불가능한가? 호스트웨이 2015.09.10 3592
28 aws s3 bucket size 확인 방법 호스트웨이 2015.09.11 3308
27 S3 browser tool 호스트웨이 2015.09.11 3147
26 Cloudfront 콘텐츠 갱신 방법 호스트웨이 2015.09.13 3129
25 S3 bucket 마운트하기 호스트웨이 2015.09.04 3078
24 Auto-scaling 정책으로 생성 된 EC2에 이름 부여하기 file 호스트웨이 2015.09.08 2881
23 AWS 서비스 갯수 제한 해제. 호스트웨이 2015.09.24 2858
22 aws key pair 등록 방법 호스트웨이 2015.09.07 2783
21 route53 Domain import / export - 1편 호스트웨이 2015.09.11 2556
20 AWS EC2 Instance 생성 후 접속 호스트웨이 2015.09.08 2334
19 WEB 서비스 ELB 사용 시, Health check 설정 방법(권장) 호스트웨이 2015.09.22 2183
18 AWS EC2 instance 시동시 cloud-init가 hostname을 IP 주소로 설정 호스트웨이 2015.09.13 1969
17 S3 DNS CNAME 설정 주의 사항 호스트웨이 2015.09.15 1849
16 apache와 iELB 간 이슈 호스트웨이 2015.09.06 1848
15 AWS Linux Bastion instance SSH Tunneling 사용 방법 file 호스트웨이 2016.06.01 1800
14 sub domain route53 으로 위임 호스트웨이 2015.09.25 1491
13 AWS를 직접 사용하는 것과 호스트웨이를 통했을 때의 차이점은 무엇인가요? 호스트웨이 2015.10.26 1431
12 EC2 Type 별 EIP를 몇개까지 할당 할 수 있나? 호스트웨이 2016.04.28 1412