S3 Mount Point
Install S3 mount to Amazon bucket
1. Install prerequisites
yum -y install gcc libstdc++-devel install gcc-c++ curl-devel libxml2-devel openssl-devel mailcap make
tmp_dir="/root/tmp/fuse" mkdir -p ${tmp_dir} cd /root/tmp/fuse wget "https://downloads.sourceforge.net/project/fuse/fuse-2.X/2.8.4/fuse-2.8.4.tar.gz?r=&ts=1299709935&use_mirror=cdnetworks-us-1" tar -xzvf fuse-2.8.4.tar.gz rm fuse-2.8.4.tar.gz cd fuse-2.8.4 ./configure --prefix=/usr make make install export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib64/pkgconfig/ ldconfig modprobe fuse pkg-config --modversion fuse # Confirm that 2.8.4 is the version displayed
3. Install s3fs
tmp_dir="/root/tmp/s3fs-install" mkdir -p ${tmp_dir} cd ${tmp_dir} wget http://s3fs.googlecode.com/files/s3fs-1.61.tar.gz tar -xvf s3fs-1.61.tar.gz rm s3fs-1.61.tar.gz cd s3fs-1.61
See install notes and here for more details
./configure --prefix=/usr make make install
4. Configure credentials and mount points
vim /etc/passwd-s3fs # Write <ID>:<SECRET> # Save. chmod 600 /etc/passwd-s3fs bucket_name='bucket.example.com' mount_point="/mnt/s3/${bucket_name}" echo ${bucket_name} ${mount_point} # Confirm that these details are correct! mkdir -p ${mount_point} s3fs ${bucket_name} ${mount_point} ls -lah ${mount_point}
5. Mount additional buckets
bucket_name='<bucket_name>' mount_point="/mnt/s3/${bucket_name}" echo ${bucket_name} ${mount_point} # Confirm that these details are correct! mkdir -p ${mount_point} s3fs ${bucket_name} ${mount_point} ls -lah ${mount_point}