#FSx Ontap | Automate 'volume modify' command

1 messages · Page 1 of 1 (latest)

wide estuary
#

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?

vivid merlin
#

SSH cron job from a Linux box?

#

The other option might be to set the cloud retrieval policy to all read if you want all reads to be promoted.

#

AWS's tiering is honestly pretty fast so it should be decent enough.

wide estuary
#

I ended up fixing this using Ontap API, forgot to circle back. will update this post tomorow with resolution.