Use the following information to create, list, and change
storage policies for object storage.
Before creating a storage policy with the file-access (unified file and object access)
function enabled, the file-access object capability must be enabled.
For
more information, see Object capabilities and
Managing object capabilities.
- To create a new storage policy with the unified file and object access feature enabled, run the
following command:
mmobj policy create sof-policy --enable-file-access
The system displays output similar to this:
[I] Getting latest configuration from ccr
[I] Creating fileset /dev/gpfs0:obj_sof-policy
[I] Creating new unique index and build the object rings
[I] Updating the configuration
[I] Uploading the changed configuration
- To list storage policies for object storage with details of functions available with those
storage policies, run the following command:
mmobj policy list --verbose
The system displays output similar to this:
Index Name Default Fileset Fileset Path Functions Function Details
------------------------------------------------------------------------------------------------------------------------------------
0 policy-0 yes object_fileset /mnt/gpfs0/object_fileset
11751509160 sof-policy obj_sof-policy /ibm/cesSharedRoot/obj_sof-policy file-and-object-access regions="1"
11751509230 mysofpolicy obj_mysofpolicy /ibm/cesSharedRoot/obj_mysofpolicy file-and-object-access regions="1"
- To change a storage policy for object storage, run the following command:
mmobj policy change
- To change the default storage policy, run the following command:
mmobj policy change sof-policy --default
The system displays sof-policy as the default storage
policy.
For more information about
the mmobj policy command, see mmobj command.