Configuring the Oracle Cloud Infrastructure Object Storage Service (CLI)

To configure the Oracle Cloud Infrastructure Object Storage service, set the shareoci property to read/write for a filesystem. A filesystem that has the shareoci property set to read/write can be specified as the default namespace used by clients that access the object storage service and do not specify a namespace. See the oci_default_path property in Enabling the Oracle Cloud Infrastructure Object Storage Service (CLI).

Note:

OCI API mode can be enabled only if no other share mode is enabled. If OCI API mode is enabled (the shareoci property is set to read/write for a filesystem), no other share mode can be enabled. OCI API mode cannot be disabled once it has been enabled.
  1. Go to shares.

    You can configure a project and then set the filesystems to inherit that configuration, or you can configure individual filesystems.

    By default, shares inherit all of their properties from their parent project. If a property is changed on a project, all shares on which that property has not been set locally are updated to reflect the new value.

  2. Optional: Configure a project.
    1. Select the parent project of the filesystem that you want to configure.

      hostname:shares (pool1)> select default
    2. Show the value of the shareoci property.

      hostname:shares (pool1) default> get shareoci
                            shareoci = off

      If the value of the shareoci property is rw, stop, you are finished.

    3. Set the shareoci property to rw.

      hostname:shares (pool1) default> set shareoci=rw
                            shareoci = rw (uncommitted)
    4. Commit the change.

      hostname:shares (pool1) default> commit
  3. Configure a filesystem.
    1. Select the filesystem that you want to configure.

      hostname:shares (pool1) default> select fs1
    2. Show the value of the shareoci property.

      hostname:shares default/fs1> get shareoci
                            shareoci = off

      If the value of the shareoci property is rw, stop, you are finished.

    3. Set the shareoci property to rw.

      hostname:shares default/fs1> set shareoci=rw
                            shareoci = rw (uncommitted)
    4. Commit the change.

      hostname:shares default/test1> commit