scan=true
If this is "true", the sis operation will scan the file system to process all the existing data.
The scan will include whatever is enabled on the volume. For example: If compression is not enabled on the volume, the scan will not include compression. This default behavior can be changed by using the run-dedupe-scan and run-compression-scan parameters.
If scan is false only data added since the last sis operation will be processed. Default value: "false"
if scan is true, it will scan entire volume but that does not mean it will compress entire volume, it said " This default behavior can be changed by using the run-dedupe-scan and run-compression-scan parameters."
Now question is where we can find that parameter?
when we move volume from 7 mod to CDOT, first need to dedup and compress old data.
as of now i am doing this way but tyring to find how can we do this using proper API call.
api = NaElement("system-cli")
xi = NaElement("args")
s1="set -privilege advanced;volume efficiency start -vserver vserver1-volume vol1-dedupe true -compression true -qos-policy background -scan-old-data true -scan-all true -snapshot-blocks true"
xi.child_add(NaElement("arg",s1))
if you see command line has 2 parameter "-dedupe true" and "-compression true" with "-scan-old-data true".
now api has option for "-scan-old-data true", you can use scan bollean "true" but donot see options for other 2.