HBOX Wiki

HBox Linux Filesystem

2014.02.22 01:49

호스트웨이 조회 수:8345

이 페이지는 호스트웨이 웹 스토리지(HBox) 베타서비스를 리눅스용 파일 시스템으로 탑재 하는 방법을 설명합니다. 이 내용은 centos6.3에서 테스트되었습니다. 베타 서비스용 accesskey/secretkey 를 발급 받았다고 가정합니다.

  1. root 계정으로 접속
  2. yum remove fuse fuse* fuse-devel
  3. yum install gcc libstdc++-devel gcc-c++ curl curl* curl-devel libxml2 libxml2* libxml2-devel openssl-devel mailcap
  4. cd /usr/local/src
  5. wget "http://sourceforge.net/projects/fuse/files/fuse-2.X/2.9.3/fuse-2.9.3.tar.gz"
  6. tar -xzvf fuse-2.9.3.tar.gz
  7. cd fuse-2.9.3/
  8. ./configure --prefix=/usr
  9. make
  10. make install
  11. export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib64/pkgconfig/
  12. ldconfig
  13. modprobe fuse
  14. echo "modprobe fuse" >> /etc/rc.local
  15. pkg-config --modversion fuse (confirm that 2.8.4 is the version displayed)
  16. cd ../
  17. wget https://s3fs.googlecode.com/files/s3fs-1.74.tar.gz (get URL for latest version)
  18. tar -xzvf s3fs-1.74.tar.gz
  19. cd s3fs-1.74
  20. ./configure --prefix=/usr
  21. make
  22. make install
  23. 사용할 버킷 생성 http://faq.hostway.co.kr/hbox/6725 참조
  24. echo "발급받은 access key:발급받은 secret key" > /etc/passwd-s3fs
  25. mkdir /mnt/cloudstorage
  26. echo "s3fs#버킷이름 /mnt/cloudstorage fuse url=http://hbox.a3c.co.kr 0 0" >> /etc/fstab
  27. mount /mnt/cloudstorage

완료

아래와 같이 버킷이 /mnt/cloudstorage 로 마운트 된것을 확인 할 수 있다. 여기에 표시된 256T는 전체용량이 아닙니다.
HBox는 무제한 용량을 제공하므로 256T는 s3fs에서 설정한 한계용량 입니다.
linux_mount1.PNG

linux_mount2.PNG