Knowledge Base


« Object Store Feature Docs

Cloudfuse - mount your object store in Linux

Use Cloudfuse (Source: Github) to mount the CloudVPS Object Store as directory on your Linux environment. Be aware that this is not a fully functional filesystem as you are used to, but can be used as a simple file storage directory.

On your Centos / Redhat environment (as the root user):

Install packages:
yum install gcc make fuse-devel curl-devel libxml2-devel openssl-devel git

Download the cloudfuse files:
cd /tmp/
git clone https://github.com/redbo/cloudfuse.git
Go in to the cloudfuse directory and build the cloudfuse binary.
        cd cloudfuse/
        ./configure
        make
        make install

Then create the credentials file in:

vi /root/.cloudfuse

Copy the lines below and fill in the blanks <>:

username=<username>
tenant=<tenant/project id>
password=<password>
authurl=https://identity.stack.cloudvps.com/v2.0
# You can use SSL if you want (a bit slower but secure)
verify_ssl=True

Set the correct permissions:

chmod 600 /root/.cloudfuse

Now mount the directory on your filesystem:

cloudfuse /path/to/mount

Or use fstab to mount at startup (Not safe as other users can read the fstab file!):

cloudfuse /mnt/cloudfiles fuse username=<username>,tenant=<tenant/project id>,password=<password>,authurl=https://identity.stack.cloudvps.com/v2.0,verify_ssl=True,root 0 0

BUGS/SHORTCOMINGS (From: https://github.com/redbo/cloudfuse):

  • rename() doesn't work on directories (and probably never will).
  • When reading and writing files, it buffers them in a local temp file.
  • It keeps an in-memory cache of the directory structure, so it may not be usable for large file systems.  Also, files added by other applications will not show up until the cache expires.
  • The root directory can only contain directories, as these are mapped to containers in cloudfiles.
  • Directory entries are created as empty files with the content-type "application/directory".
  • Cloud Files limits container and object listings to 10,000 items. Cloudfuse won't list more than that many files in a single directory.

 

VPS Bestellen
VPS Bestellen