Creating storage policy for object compression
Use the following information to create a storage policy with the compression function enabled and to create a storage policy with the compression schedule defined.
- To create a storage policy with the compression function enabled, use the
--enable-compression option with the mmobj policy create
command:
mmobj policy create CompressionTest --enable-compression --compression-schedule "MM:HH:dd:ww" - To create a storage policy with the compression function enabled and a compression
schedule that is defined, use the --enable-compression and the
--compression-schedule options with the mmobj policy create
command:
mmobj policy create CompressionTest --enable-compression --compression-schedule "MM:HH:dd:ww" where MM = 0-59 minutes HH = 0-23 hours dd = 1-31 day of month ww = 0-7 (0=Sun, 7=Sun) day of week- Use an asterisk (
*) for specifying every instance of a unit. For example,dd = *means that the job is scheduled to run every day. - Comma-separated lists are allowed. For example,
dd= 1,3,5 means that the job is scheduled to run on every 1st, 3rd, 5th of a month. - If
wwandddboth are specified, the union is used. - Specifying a range by using a dash (
-) is not supported. - Empty values are allowed for dd and
ww. If empty,ddand orwware not considered. - Empty values for
mmandhhare treated as*.
mmobj policy create CompressionTest --enable-compression --compression-schedule "50:23:*:*"Every object that is stored by using a storage policy that is enabled is compressed according to the specified schedule. You do not need to decompress an object in advance of a get request or any other object request. IBM Storage Scale automatically returns the decompressed object.
Note:- The download performance of objects in a compressed container is reduced compared to the download performance of objects in a non-compressed container.
- The compression function enables the file system compression over the object file set. The same compression functions and restrictions apply to object compression and file compression.
- Use an asterisk (