이 페이지는 호스트웨이 웹 스토리지(HBox) 베타서비스를 리눅스용 파일 시스템으로 탑재 하는 방법을 설명합니다.
이 내용은 centos6.3에서 테스트되었습니다. 베타 서비스용 accesskey/secretkey 를 발급 받았다고 가정합니다.
- root 계정으로 접속
- yum remove fuse fuse* fuse-devel
- yum install gcc libstdc++-devel gcc-c++ curl curl* curl-devel libxml2 libxml2* libxml2-devel openssl-devel mailcap
- cd /usr/local/src
- wget "http://sourceforge.net/projects/fuse/files/fuse-2.X/2.9.3/fuse-2.9.3.tar.gz"
- tar -xzvf fuse-2.9.3.tar.gz
- cd fuse-2.9.3/
- ./configure --prefix=/usr
- make
- make install
- export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib64/pkgconfig/
- ldconfig
- modprobe fuse
- echo "modprobe fuse" >> /etc/rc.local
- pkg-config --modversion fuse (confirm that 2.8.4 is the version displayed)
- cd ../
- wget https://s3fs.googlecode.com/files/s3fs-1.74.tar.gz (get URL for latest version)
- tar -xzvf s3fs-1.74.tar.gz
- cd s3fs-1.74
- ./configure --prefix=/usr
- make
- make install
- 사용할 버킷 생성 http://faq.hostway.co.kr/hbox/6725 참조
- echo "발급받은 access key:발급받은 secret key" > /etc/passwd-s3fs
- mkdir /mnt/cloudstorage
- echo "s3fs#버킷이름 /mnt/cloudstorage fuse url=http://hbox.a3c.co.kr 0 0" >> /etc/fstab
- mount /mnt/cloudstorage
완료
아래와 같이 버킷이 /mnt/cloudstorage 로 마운트 된것을 확인 할 수 있다. 여기에 표시된 256T는 전체용량이 아닙니다.
HBox는 무제한 용량을 제공하므로 256T는 s3fs에서 설정한 한계용량 입니다.