ドキュメント

How To Set Up ObjectiveFS With Digital Ocean Spaces

This guide covers the steps to set up your ObjectiveFS filesystem with Digital Ocean Spaces.

Prerequisite
  • Digital Ocean Spaces account’s keys
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 digital ocean access key>
                                            Enter Secret Access Key: <your digital ocean secret key>
                                            Enter Default Region (optional): http://<your region>.digitaloceanspaces.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=<your region>.digitaloceanspaces.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. Create your filesystem (one-time only)

    $ sudo mount.objectivefs create <your filesystem name>
                                            Passphrase (for s3://<filesystem>): <your passphrase>
                                            Verify passphrase (for s3://<filesystem>): <your passphrase>
                                
  8. Mount your filesystem

    You need an existing empty directory to mount your file system, e.g. /ofs.
    Process will run in the background.

    $ sudo mkdir /ofs
                                            $ sudo mount.objectivefs <your filesystem name> /ofs
                                            Passphrase (for s3://<filesystem>): <your passphrase>
                                
Note
  • You can mount this filesystem on as many servers as you wish by running steps 1, 2 and 4 (in Part B above) on each server.
  • Each server can then read and write to the filesystem.
Reference

取り扱いが容易で、しかも安全な S3 ファイルシステム

14日間無料でお試しください