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 in IBM
Spectrum Scale: Concepts,
Planning, and Installation Guide, and Managing
object capabilities in IBM
Spectrum Scale: Administration
and Programming Reference.
- To create a new storage policy with the unified file and
object access feature enabled, use 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, use the following
command:
mmobj policy list --verbose
The
system displays output similar to this:
Index Name Deprecated Fileset Fileset Path Functions Function Details
------------------------------------------------------------------------------------------------------------------------------------
0 SwiftDefault object_fileset /ibm/cesSharedRoot/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, use the
following command:
mmobj policy change
For more information about the mmobj
policy command, see mmobj command.