Skip to main content

volume flexcache config modify

Contributors
Suggest changes

Modify cache configuration

Availability: This command is available to cluster and Vserver administrators at the advanced privilege level.

Description

The `volume flexcache config modify` command is used to modify the configuration for a FlexCache volume.

Parameters

-vserver <Vserver Name> - Vserver Name (privilege: advanced)

This specifies the Vserver in which the FlexCache volume exists.

-volume <volume name> - Cache Volume Name (privilege: advanced)

This specifies the name of the FlexCache volume.

[-is-relative-size-enabled {true|false}] - Is Relative Sizing Enabled (privilege: advanced)

This parameter specifies whether the relative sizing is enabled for the FlexCache volume. Relative sizing is introduced as a part of follow the origin feature. When relative sizing is enabled, it will block any modifications done manually in the absolute size of the FlexCache. The size of FlexCache will be calculated and entered automatically based on the size of the origin. The default value for create is false .

[-relative-size-percentage <integer>] - Relative FlexCache Size Percentage (privilege: advanced)

This parameter specifies the percent size FlexCache should have relative to the total size of the origin. The default value for create is 10%.

[-is-atime-scrub-enabled {true|false}] - Is atime based Scrubbing Enabled/Disabled (privilege: advanced)

This parameter specifies if the files can be scrubbed out automatically if they have not been accessed for a specified duration. This feature to scrub out inactive files is dependent on enabling the atime feature on the FlexCache volume. The default value for create is disabled .

[-atime-scrub-period <integer>] - Days after which an inactive file is scrubbed (privilege: advanced)

This parameter specifies the duration in days after which the inactive files can be scrubbed out from the cache volume. The default value for create is 30 days when atime-scrub is enabled.

[-is-cifs-change-notify-enabled {true|false}] - Is CIFS CHANGE_NOTIFY Enabled/Disabled (privilege: advanced)

This parameter specifies whether the FlexCache volume sends change notifications to CIFS clients. The default value is false .

Examples

The following example triggers FlexCache volume configuration modify:

cluster1::> volume flexcache config modify -vserver vs34 -volume fc1 -is-cifs-enabled true
cluster1::> volume flexcache config modify -volume originvol -is-cifs-enabled false
  (volume flexcache config modify)
Error: command failed: FlexCache config modify is only applicable for volumes
       with "flexcache-endpoint-type" cache.