본문 바로가기

퍼블릭 클라우드

[aws] 3fs-fuse를 설치하는 방법

반응형

3fs-fuse를 설치하는 방법

테스트 환경

$ cat /etc/os-release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"

$ uname -a
Linux krop-aaa-ek01 4.14.186-146.268.amzn2.x86_64 #1 SMP Tue Jul 14 18:16:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

s3fs-fuse 설치

sudo amazon-linux-extras install -y epel
sudo yum install -y s3fs-fuse

s3fs : https://github.com/s3fs-fuse/s3fs-fuse 

s3fs 설정

  • AWS ACCESS KEY/SECRET KEY 설정
echo ACCESS_KEY_ID:SECRET_ACCESS_KEY > ${HOME}/.passwd-s3fs
chmod 600 ${HOME}/.passwd-s3fs

마운트 포인트 디렉토리 생성

mkdir -p /apps/s3log

s3fs로 mount 설정
#s3fs bucket[:/path] mountpoint [options]

s3fs logcenter /apps/s3log
df -h | grep s3fs
$ df -h | grep s3fs
s3fs            256T     0  256T   0% /apps/s3log

 

728x90
반응형