#carchi8py0396
1 messages · Page 1 of 1 (latest)
To enable volume efficiency use API - PATCH /api/storage/volumes/{uuid}
you have to set any one of the following efficiency options to enable volume efficiency
efficiency.compaction, efficiency.compression, efficiency.cross_volume_dedupe, efficiency.dedupe
or
for FSx for ONTAP, you can set {'efficiency.state': 'enabled'}
to disable set all the efficiency options to 'none'
{'efficiency': {'compaction': 'none', 'compression': 'none', 'cross_volume_dedupe': 'none', 'dedupe': 'none'}}
Hi Raj,
thank you for your reply,
I am working to automate a manual process,
which has a step similar to the one I posted.
Do you know which efficiency type is being enabled by the "volume efficiency on" command?
I want automated process to achieve exactly the same configuration as manual one
REST doc description for volume efficiency, but I cannot find mapping of cli to REST for enabling volume efficiency.
Storage efficiency
Storage efficiency is used to remove duplicate blocks in the data and to compress the data. Efficiency has deduplication, compression, cross volume deduplication, compaction, policy-name, enabled, application_io_size, compression_type and storage_efficiency_mode options. On All Flash systems, all efficiencies are enabled by default, on volume creation. Options such as "background/inline/both" are treated as both, which means both background and inline are enabled for any efficiency option. The option "none" disables both background and inline efficiency. Application-io-size and compression-type decides type of compression behavior in the system. Storage efficiency mode decides if the system is to run in default/efficient mode. Detailed information about each field is available under efficiency object for storage efficiency fields.
To enable any efficiency option on all-flash or FAS systems, background deduplication is always enabled.
so I tried enable vol efficiency in CLI and get the record from REST, I could see dedupe is set to background.
"name": "test_eff",
"efficiency": {
"compression": "none",
"dedupe": "background",
"cross_volume_dedupe": "none",
"compaction": "none",
"schedule": "sun-sat@0",
"volume_path": "/vol/test_eff",
"state": "enabled",
"op_state": "idle",
"type": "regular",
....
"policy": {
"name": "-"
}
}
Setting this in PATCH storage/volumes/{uuid}
{'efficiency': {'dedupe': 'background'}}
enables volume efficiency but also set policy to default.
if policy not be assigned then {'efficiency': {'dedupe': 'background', 'policy': {'name': '-'}}} will help to enable volume efficiency.