Installing s3fs on CentOS
I wanted to use s3fs on a CentOS 5.7 release but the latest s3fs release requires fuse > 2.8.4 whereas the CentOS 5.x repository contains only fuse 2.7.4 so I had to upgrade it my self.
I could successfully install fuse and s3fs using the following procedure but unfortunately, fuse 2.8.4 uses the –no-canonicalize option which requires util-linux >2.18 but CentOS 5.7 comes with util-linux 2.13.
I changed my mind and tried on CentOS 6 and will come back later to see how to make it work on CentOS 5.7…
Install latest fuse release
Start first by removing existing fuse packages installed on your system.
Install development tools and required packages if you don’t already have them.
Download, compile and install fuse. Use this link to get the latest fuse release.
Load fuse module and confirm we use our compiled version
Cleanup a bit…
Now that prerequisite are satisfied, it is time to download, compile and install s3fs. Browse to repository to get the link of the latest s3fs release.
Again some cleanup…
Time to test our installation. First, we need to create a credential file to connect to our s3 bucket. Replace bucketName, accessKeyId and secretAccessKey with your own.
Finally, use this command to mount your bucket, replacing bucketName and mountpoint by your own parameters.
The option -ouse_cache=/tmp directive enable local caching to speedup access and avoid downloading content from s3 everytime which would lead to extra charge for the get requests. See s3fs website for more information.
blog comments powered by Disqus