Video Screencast Help

Replaced tape drives at replication site - now need to point incomplete duplications to new storage unit

Created: 14 Jan 2013 • Updated: 23 Jan 2013 | 10 comments
This issue has been solved. See solution.

So I had a number of incomplete duplications running to my old LTO5 storage unit at my replication site (replicating via AIR).  I replaced the LTO5 drives at the replication site with LTO6 drives and configured a new storage unit for the LTO6.

My question is - how do I "redirect" the duplications which are pointing at the old LTO5 storage unit?  For example:

 

Image denorap7b_1358040906 for Lifecycle DEN-DENSYM_ADV_PRD01-stu_disk_densyma03p is IN_PROCESS

  Copy to vwcsyma01p_I500-LTO5 of type DUPLICATE is NOT_STARTED
I need to redirect this duplication job to the new storage unit "vwcsyma01p_I500-LTO6" which is the new storage unit.  I have quite a few images which need to have their destination changed.
 
Thanks,
 
-Mike-
Discussion Filed Under:

Comments 10 CommentsJump to latest comment

mph999's picture

This TN shows the command.

http://www.symantec.com/docs/HOWTO34796

nbstl <slp name>  -modify_current -residence stu1,stu2

Eg.

My SLP has backup dest stu advanced_sp1 and duplication destination stu advanced_sp2

root@womble admincmd $ nbstl -L
                                Name: slp_sp1_sp2
                 Data Classification: (none specified)
            Duplication job priority: 0
                               State: active
                             Version: 0
 Operation  1              Use for: 0 (backup)
                             Storage: advanced_sp1
                         Volume Pool: (none specified)
                        Server Group: (none specified)
                      Retention Type: 1 (Capacity Managed)
                     Retention Level: 10 (1 hour)
               Alternate Read Server: (none specified)
               Preserve Multiplexing: false
      Enable Automatic Remote Import: false
                               State: active
                              Source: 0 (client)
                        Operation ID: (none specified)
                     Operation Index: 1
 Operation  2              Use for: 1 (duplication)
                             Storage: advanced_sp2
                         Volume Pool: (none specified)
                        Server Group: (none specified)
                      Retention Type: 0 (Fixed)
                     Retention Level: 10 (1 hour)
               Alternate Read Server: (none specified)
               Preserve Multiplexing: false
      Enable Automatic Remote Import: false
                               State: active
                              Source: Operation 1 (backup:advanced_sp1)
                        Operation ID: (none specified)
                     Operation Index: 2
 
I can change the '2nd' destination (the duplication) to womble-hcart lilke this ...

nbstl slp_sp1_sp2  -modify_current -residence advanced_sp1,womble-hcart

 
root@womble admincmd $ nbstl -L
                                Name: slp_sp1_sp2
                 Data Classification: (none specified)
            Duplication job priority: 0
                               State: active
                             Version: 0
 Operation  1              Use for: 0 (backup)
                             Storage: advanced_sp1
                         Volume Pool: (none specified)
                        Server Group: (none specified)
                      Retention Type: 1 (Capacity Managed)
                     Retention Level: 10 (1 hour)
               Alternate Read Server: (none specified)
               Preserve Multiplexing: false
      Enable Automatic Remote Import: false
                               State: active
                              Source: 0 (client)
                        Operation ID: (none specified)
                     Operation Index: 1
 Operation  2              Use for: 1 (duplication)
                             Storage: womble-hcart
                         Volume Pool: NetBackup
                        Server Group: Any
                      Retention Type: 0 (Fixed)
                     Retention Level: 10 (1 hour)
               Alternate Read Server: (none specified)
               Preserve Multiplexing: false
      Enable Automatic Remote Import: false
                               State: active
                              Source: Operation 1 (backup:advanced_sp1)
                        Operation ID: (none specified)
                     Operation Index: 2
 
So, as you see, although I only wanted to change the duplication detination, I had to list all the STUs.
 
Martin

 

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805
 
elanmbx's picture

Thanks for the reference - however, I have modified the SLPs to reflect the new storage unit.  The issue is that there were images already in progress which currently are destined for the *old* storage unit.  I'm wondering if there is a way to modify an "in progress" SLP image to change the destination storage unit?

I have tested and current *new* duplications *are* successfully being duped to the new storage unit.  It's just the dupes that had been in progress before swapping the tape drives that I need to try to change.

Thanks!

-Mike-

elanmbx's picture

Just to make sure I'm being clear.  Here is one of the incomplete images that was started before I swapped the drives:

 

vwcsyma01p:/tmp # nbstlutil -U list -backupid denorap1b_1356221302 -image_incomplete

Image:

 Master Server            : vwcsyma01p

 Backup ID                : denorap1b_1356221302

 Client                   : denorap1b

 Backup Time              : 1356221302 (Sat Dec 22 17:08:22 2012)

 Policy                   : DB-Oracle-PRD01

 Client Type              : 4

 Schedule Type            : 2

 Storage Lifecycle Policy : DEN-DENSYM_ADV_PRD01-stu_disk_densyma03p

 Storage Lifecycle State  : 2 (IN_PROCESS)

 Time In Process          : 1356403357 (Mon Dec 24 19:42:37 2012)

 Data Classification ID   : (none specified)

 Version Number           : 0

 OriginMasterServer       : oxfordc

 OriginMasterServerID     : 4a395130-0dc2-de11-8000-bbcd4f1b86b9

 Import From Replica Time : 1356403296 (Mon Dec 24 19:41:36 2012)

 Required Expiration Date : 1364256502 (Mon Mar 25 18:08:22 2013)

 Created Date Time        : 1356403221 (Mon Dec 24 19:40:21 2012)


 Copy:

   Master Server       : vwcsyma01p

   Backup ID           : denorap1b_1356221302

   Copy Number         : 1

   Copy Type           : 4 (IMPORT)

   Expire Time         : 2147483647 (Mon Jan 18 20:14:07 2038)

   Expire LC Time      : 2147483647 (Mon Jan 18 20:14:07 2038)

   Try To Keep Time    : 1364256502 (Mon Mar 25 18:08:22 2013)

   Residence           : (none specified)

   Copy State          : 3 (COMPLETE)

   Job ID              : 42397

   Retention Type      : 0 (FIXED)

   MPX State           : 0 (FALSE)

   RetryCount          : 0

   Last Retry Time     : 0 (Wed Dec 31 17:00:00 1969)

   Source              : 0

   Destination ID      : (none specified)

   Last Retry Time     : 0

   Replica:            : 0

   DataFormat          : 0 (DF_UNDEFINED)

   SLP Index           : 1


   Fragment:

     Master Server     : vwcsyma01p

     Backup ID         : denorap1b_1356221302

     Copy Number       : 1

     Fragment Number   : -2147482648

     Resume Count      : 0

     Media ID          : @aaaab

     Media Server      : vwcsyma01p

     Storage Server    : (none specified)

     Media Type        : 0 (DISK)

     Media Sub-Type    : 6 (STSDYNAMIC)

     Fragment State    : 1 (ACTIVE)

     Fragment Size     : 1257

     Delete Header     : 0

     Fragment ID       : @aaaab

     Snap MountHost    : (none specified)

     Media Description : 1;PureDisk;vwcsyma01p;dp_disk_vwcsyma01p;PureDiskVolume;0


   Fragment:

     Master Server     : vwcsyma01p

     Backup ID         : denorap1b_1356221302

     Copy Number       : 1

     Fragment Number   : -1

     Resume Count      : 0

     Media ID          : @aaaab

     Media Server      : vwcsyma01p

     Storage Server    : (none specified)

     Media Type        : 0 (DISK)

     Media Sub-Type    : 6 (STSDYNAMIC)

     Fragment State    : 1 (ACTIVE)

     Fragment Size     : 646

     Delete Header     : 0

     Fragment ID       : @aaaab

     Snap MountHost    : (none specified)

     Media Description : 1;PureDisk;vwcsyma01p;dp_disk_vwcsyma01p;PureDiskVolume;0


   Fragment:

     Master Server     : vwcsyma01p

     Backup ID         : denorap1b_1356221302

     Copy Number       : 1

     Fragment Number   : 1

     Resume Count      : 0

     Media ID          : @aaaab

     Media Server      : vwcsyma01p

     Storage Server    : (none specified)

     Media Type        : 0 (DISK)

     Media Sub-Type    : 6 (STSDYNAMIC)

     Fragment State    : 1 (ACTIVE)

     Fragment Size     : 1081344

     Delete Header     : 0

     Fragment ID       : @aaaab

     Snap MountHost    : (none specified)

     Media Description : 1;PureDisk;vwcsyma01p;dp_disk_vwcsyma01p;PureDiskVolume;0


 Copy:

   Master Server       : vwcsyma01p

   Backup ID           : denorap1b_1356221302

   Copy Number         : 2

   Copy Type           : 1 (DUPLICATE)

   Expire Time         : 2147483647 (Mon Jan 18 20:14:07 2038)

   Expire LC Time      : 2147483647 (Mon Jan 18 20:14:07 2038)

   Try To Keep Time    : 1364256502 (Mon Mar 25 18:08:22 2013)

   Residence           : vwcsyma01p_I500-LTO5

   Copy State          : 1 (NOT_STARTED)

   Job ID              : 0

   Retention Type      : 0 (FIXED)

   MPX State           : 0 (FALSE)

   RetryCount          : 0

   Last Retry Time     : 0 (Wed Dec 31 17:00:00 1969)

   Source              : 1

   Destination ID      : (none specified)

   Last Retry Time     : 0

   Replica:            : 0

   DataFormat          : 0 (DF_UNDEFINED)

   SLP Index           : 2
 
You'll note that the "DUPLICATE" copy of this image is "NOT_STARTED" and the Residence is the old "vwcsyma01p_I500-LTO5" storage unit.  I'd like some way to modify *just* that copy of the image to reflect the new storage unit.
revaroo's picture

Never tried modifying the stu for a job already in progress, but I would say it's not possible. The allocations are made and there is no way of changing them whilst the job is active. Why would you do that? You could corrupt the backup if it were already writing to a valid stu and then you changed it mid way. Even though the job in this case is not actively 'running'

elanmbx's picture

Well - I did it because the SLP processing is a bit behind, I had a maintenance window on the tape library, and needed to get the drives replaced. smiley

I will continue to look around to see if there is any elegant way of doing this... if there isn't I will probably just whack the SLP duplication jobs...

Thanks again.

mph999's picture

EDITED TO ADD  -  looks like I'm wrong and wr is right - see his post below ...  I wasn't aware that old SLPs would pick up the change, but thinking about it, as nbstserv runs in cycles, it must be able to pick up the change ... 

A manual way ...

Simple cancel the SLP job and duplicate manually ...

(nbstlutil cancel -backupid <backup ID> )

But, beware, be very aware ;o)

If you cancel an SLP, where the backup copy has past it's 'try-to-keep time' (that is, the expiration time it would get if it had duplicated) it will instantly expire.

Martin

 

Regards,  Martin
 
Setting Logs in NetBackup:
http://www.symantec.com/docs/TECH75805
 
Will Restore's picture

Sounds like you can do it per this old technote

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

 

The old SLP duplication jobs are not picking up the changed SLP settings while newly started duplication jobs are using the new settings.

 

solution: modify the specific version

nbstl -L -all_versions

 

Suppose you want to change the backup storage unit for SLP1 version 0 to STU1, the command is:

# nbstl  SLP1  -modify_version -version 0 –residence STU1,STU2

 

Will Restore -- where there is a Will there is a way

SOLUTION
elanmbx's picture

wr - had a chance to test this and it worked like a charm!  Thanks for the assistance.

-Mike-

elanmbx's picture

I simply cancelled the duplications which were going to the old storage unit... so I wasn't able to test the -modify_version option.

Thanks for all the help!