Deleting a STU fails if still defined in any SLP version

Article:TECH212238  |  Created: 2013-11-06  |  Updated: 2014-06-16  |  Article URL http://www.symantec.com/docs/TECH212238
Article Type
Technical Solution


Issue



When trying to delete a Storage Unit when decommissioning a storage server, getting this error:


Error



Storage unit or storage unit group cannot be deleted because it is referenced in a storage lifecycle policy. The referencing SLP may be an older version. Use the nbstl command to view/change older SLP versions
Status code: 228

Cause



You cannot delete a storage unit or storage unit group if a storage lifecycle policy (SLP) references it. The SLP may be an older version. The NetBackup Administration Consoledisplays the most recent version of an SLP while the reference to the storage unit or storage unit group may be located in a earlier version.


Solution



Run this command to find all versions of all SLPs:

nbstl -L -all_versions > /admin/nbstl_all_versions.txt

Name: Example-SLP-Name
                 Data Classification: (none specified)
            Duplication job priority: 0
                               State: active
                             Version: 0                          <---------- Note The Version Needing Change
Operation  1              Use for: 0 (backup)
                             Storage: stu_adv_example12
                         Volume Pool: (none specified)
                        Server Group: (none specified)
                      Retention Type: 0 (Fixed)
                     Retention Level: 1 (2 weeks)
               Alternate Read Server: (none specified)
               Preserve Multiplexing: false
      Enable Automatic Remote Import: false
                               State: active
                              Source: 0 (client)
                        Operation ID: 0
                     Operation Index: 1
Operation  2              Use for: 1 (duplication)
                             Storage: Original_PD_STU             <---------- Remove this one
                         Volume Pool: (none specified)
                        Server Group: (none specified)
                      Retention Type: 0 (Fixed)
                     Retention Level: 1 (2 weeks)
               Alternate Read Server: (none specified)
               Preserve Multiplexing: false
      Enable Automatic Remote Import: true
                               State: active
                              Source: Operation 1 (backup:stu_adv_example12)
                        Operation ID: 0
                     Operation Index: 2
Operation  3              Use for: 3 (replication to remote master)
                             Storage: Remote Master
                         Volume Pool: (none specified)
                        Server Group: (none specified)
                      Retention Type: 0 (Fixed)
                     Retention Level: 1 (2 weeks)
               Alternate Read Server: (none specified)
               Preserve Multiplexing: false
      Enable Automatic Remote Import: false
                               State: active
                              Source: Target 2 (duplication:Original_PD_STU)
                        Operation ID: 0
                     Operation Index: 3


Need to change  Original_PD_STU to stu_disk_chang-to14 for version 0, operation 2, of this SLP in EMM SLP tables.  There must be the same number of arguments as the number of operations in the SLP (in this case, 3 operations means 3 arguments after "-residence").  We must specify the arguments in the same order as the operations.  So in the example below, only the second argument is different than what is already defined.


nbstl Example-SLP-Name  -modify_version -version 0 -residence stu_adv_example12,stu_disk_change-to14,__NA__


Once this was done, we were able to delete the Storage Unit in the Admin Console.  This change does not alter any historical Storage Lifecycle Operations; in other words, this will NOT re-duplicate any images to the altered storage unit.  This change is ONLY for deleting the Storage Unit.
 





Article URL http://www.symantec.com/docs/TECH212238


Terms of use for this information are found in Legal Notices