How To Set Up ObjectiveFS With Oracle Cloud

This guide covers the steps to set up your ObjectiveFS filesystem with Oracle Cloud Object Storage.

Prerequisite

  1. Oracle Cloud Object Storage Account Keys See Oracle Cloud -> User Settings -> Customer Secret Keys

  2. Get Namespace See Oracle Cloud -> Storage -> Object Storage & Archive Storage -> Bucket Information -> General -> Namespace

Set Up ObjectiveFS

  1. Download and install ObjectiveFS. (Note: use version 6.7.2 for compatibility)

  2. Configure objectivefs (config parameters will be stored in /etc/objectivefs.env).

    $ sudo mount.objectivefs config
    Enter ObjectiveFS license: <your ObjectiveFS license>
    Enter Access Key Id: <your oracle cloud access key>
    Enter Secret Access Key: <your oracle cloud secret key>
    Enter Default Region (optional): http://<namespace>.compat.objectstorage.<region>.oraclecloud.com
    

  3. Install stunnel

    $ yum install stunnel

  4. Edit /etc/stunnel/stunnel.conf with the following lines:

    [s3]
    client=yes
    delay=yes
    accept=127.0.0.1:8086
    connect=<namespace>.compat.objectstorage.<region>.oraclecloud.com:443
    

  5. Start stunnel on your command line (or using your init tools)

    $ stunnel

  6. Set up the http_proxy config parameter with the content http://127.0.0.1:8086.

    $ echo http://127.0.0.1:8086 > /etc/objectivefs.env/http_proxy

  7. Set the STUNNEL and PATHSTYLE variables to 1

    $ echo 1 > /etc/objectivefs.env/STUNNEL
    $ echo 1 > /etc/objectivefs.env/PATHSTYLE

  8. Set the SIGNATURE variable to v4

    $ echo v4 > /etc/objectivefs.env/SIGNATURE

  9. Create your filesystem (one-time only).

    $ sudo mount.objectivefs create <your filesystem name>
    Passphrase (for http://<namespace>.compact.objectstorage.<region>.oraclecloud.com/<filesystem>): <your passphrase>
    Verify passphrase (for http://<namespace>.compact.objectstorage.<region>.oraclecloud.com/<filesystem>): <your passphrase>
    

  10. Mount your filesystem.
    You need an existing empty directory to mount your file system, e.g. /ofs.
    The ObjectiveFS process will run in the background.

    $ sudo mkdir /ofs
    $ sudo mount.objectivefs <your filesystem name> /ofs
    Passphrase (for http://<region>.digitaloceanspaces.com/<filesystem>): <your passphrase>
    

Note

  1. You can mount this filesystem on as many servers as you wish by repeating the steps in Part B except for step 9 on each server.
  2. Each server can then read and write to the filesystem.

Reference

Last updated by ObjectiveFS staff, October 1, 2021


ObjectiveFS is a shared file system for OS X and Linux that automatically scales and gives you scalable cloud storage. If you have questions or article idea suggestions, please email us at support@objectivefs.com