Previous Topic: Review PrerequisitesNext Topic: Create a GOA Script That Sends Alerts


Create a GOA Script That Frees Storage Space

You can create a storage engine GOA script to monitor available space in Storage Groups and free space automatically.

Use this procedure to create a GOA script to monitor available storage space and free storage space automatically.

Follow these steps:

  1. Open the back-end storage engine windows client by double-clicking its icon on your PC.
  2. Connect to the back-end storage engine system host that is setup for CA Chorus for Storage Management.
  3. Click z/OS, Object Scripting, Automation Scripts, General Object Automation in the windows client main menu.

    The Automation Scripts Builder opens.

    Note: Click the Help button on any page of the wizard to get a description of the options on the page.

  4. Click Next repeatedly until the Source Object Selection page opens.
  5. Select the Space and Other Attributes object in the Storage Groups folder and click Next to open the Script Name page.
  6. Select Create a script with this name:, enter MIGSTGRP in the Script Name: field, and click Next to open the Title and System Execution page.
  7. Enter Migrate From Storage Group in the Title field, enter Migrates unused data sets from Storage Groups in the Description field, and click Next to open the Timing for Events page.
  8. Select Weekday Schedules, click Add to display the Schedule the Action dialog.
  9. Select All (Every day), enter 2400 in the Time field, and click Set to specify you want the script to run on weekdays at midnight.
  10. Click Next repeatedly until the Filter/Sort page opens, and click Filter to open the Filter dialog.
  11. Create the following filter and click Apply and Execute:
    "% Allo" > 80
    

    This filters storage groups that have an allocated percentage of greater-than 80 of the space available. Adjust the value according to your policy.

  12. Click Next repeatedly until the Different Object Selection page opens.
  13. Select Base action on a different object, Zoom object, and click Next to open the Zoom/New Object page.
  14. Select DTOC4POL and click Next to open the Filter/Sort for New/Zoom Object page.
  15. Select the check-box Filter (optional), click Filter, create the following filter, and click Apply and Execute:
    DaysUn > 60
    

    This specifies you want to identify the data sets that have not been used for the last 60 days. Adjust the number of days in the filter according to your policy.

  16. Click Sort and do the following:
    1. Click DaysUn in the Available Fields column.
    2. Click the Move arrow so it moves to the Sort Order column.
    3. Click the sort icon so that it sorts in descending order and click Apply and Execute.

      This specifies you want to migrate the data sets that have not been used for the longest period first.

  17. Click Next to open the Record Inclusion page.
  18. Select Until Free Space % is Percentage and enter 25.

    This specifies you want to free space until 25 percent of the Storage Group is free. That is, the Storage Group is 75 percent allocated instead of 80 percent allocated. Adjust the value according to your policy.

  19. Click Next repeatedly until the Action Selection page opens, select Perform Object Action, and click Next to open the Perform Object Action page.
  20. Scroll down to Hsm Migrate Lvl1 and select it.
  21. (Optional) Enter 100 in the Block selection of lines (maximum number of rows available for Object Action) field.

    Adjust the value according to your policy.

    This specifies you want to migrate unused data sets in Storage Groups until either 25 percent of the space in the Storage Group is freed or a maximum of 100 data sets are migrated from the Storage Group. If you do not specify a maximum number of data sets to be migrated, then the system could migrate many more smaller data sets than desired to meet the maximum threshold of 75 percent allocated.

  22. Click Next, select the Save, Activate and Execute the script option, and click OK.

    The script is saved, activated, and executes at midnight each workday.

  23. Close the storage engine windows client.

    You have created a GOA script that automatically migrates data sets to free space in Storage Groups that are at least 80 percent allocated.