We're using a 3rd party DR backup and its causing the cold data to be moved to SSD hot tier. The DR backup process has some scan/backup algorithm and it apparently does not "read sequentially" . Depending on the read pattern, Ontap will keep the data blocks in cold storage ("sequential read" process like antivirus scan), or ("random read" process like a typical workload)
I have to login via ssh and run the below commands right before the DR backup process runs in order for Netapp to not to detect "random reads" and start to tier all my cold data in the volume into my SSD and overfill it.
set advanced
(user input y/n)
volume modify -vserver name -volume vol -cloud-retrieval-policy never
set admin
exit
Once the scan\backup process is done, I revert my Ontap config to normal business hours teiring by running the same commands, replacing 'never' with 'default' so that during the coming business hours the tiering works correclty (since this DR backup scan only runs at night).
How can I automate this?