Difference between revisions of "RHEL 8.x Spectrum Protect Move backups to DR"

From Notes_Wiki
(Created page with "Home > RHEL > RHEL 8.x > Backup tools > Spectrum Protect Backup > Spectrum Protect Move backups to DR == Create storage pool for offsite pool == #Create storage pool for offsite pool #:<pre> #::DEFINE STGPOOL <offsite-tape-storage-pool-name> LTOCLASS pooltype=copy description="Description for the Offsite tape pool" maxscratch=2 collocate...")
 
 
(3 intermediate revisions by the same user not shown)
Line 19: Line 19:
If new tape cartridges inserted to tape library, then need to checkin the tapes cartridges to library by using below commands
If new tape cartridges inserted to tape library, then need to checkin the tapes cartridges to library by using below commands


#Check the current tapes in the library
#Verify the list of tapes currently in the library with the following command
#:<pre>
#:<pre>
#::show slots TS4300
#::show slots TS4300
#:</pre>
#Verify the list of tapes currently checked in with Spectrum Protect with the following command
#:<pre>
#::query libv TS4300
#::query libv TS4300
#:</pre>
#:</pre>
Line 32: Line 35:
#::label libvolume TS4300 search=yes checkin=scratch labelsource=barcode
#::label libvolume TS4300 search=yes checkin=scratch labelsource=barcode
#:</pre>
#:</pre>
#Monitor the status of above command
#Look at activity log of above command Or use web UI instead of doing below
#:<pre>
#:<pre>
#::q proc
#::q proc
#::query actlog search="MOVE DRMEDIA"
#:</pre>
#:</pre>
#Find the newly inserted tapes
#Find the newly inserted tapes
Line 46: Line 50:
#Check the drmedia tapes list  
#Check the drmedia tapes list  
#:<pre>
#:<pre>
#::> query drmedia
#::query drmedia
#:</pre>
#:</pre>
#This step is required for, If inserted tapes are part of drmedia. The inserted tapes status must be "Vault retrieve". Then Change the tapes state to onsite
#This step is required for, If inserted tapes are part of drmedia. The inserted tapes status must be "Vault retrieve". Then Change the tapes state to onsite
#:<pre>
#:<pre>
#::> move drmedia <tape-name> wherestate=vaultretrieve tostate=onsiteretrieve
#::move drmedia <tape-name> wherestate=vaultretrieve tostate=onsiteretrieve
#::Ex:
#::Ex:
#::> move drmedia GB7441L8 wherestate=vaultretrieve tostate=onsiteretrieve
#::move drmedia GB7441L8 wherestate=vaultretrieve tostate=onsiteretrieve
#:</pre>
#:</pre>
#:Note: If inserted tapes are not part of drmedia, avoid this step.  
#:Note: If inserted tapes are not part of drmedia, avoid this step.  
#Run below command for checkin
#Run below command for checkin
#:<pre>
#:<pre>
#::> label libvolume TS4300 <tape-name> checkin=scratch overwrite=yes
#::label libvolume TS4300 <tape-name> checkin=scratch overwrite=yes
#::Ex:
#::Ex:
#::> label libvolume TS4300 GB7451L8 checkin=scratch overwrite=yes
#::label libvolume TS4300 GB7451L8 checkin=scratch overwrite=yes
#:</pre>
#:</pre>
#Get the pending request id by using below command
#Get the pending request id by using below command
#:<pre>
#:<pre>
#::> query request
#::query request
#:</pre>
#:</pre>
#Let the server know tapes are inserted
#Let the server know tapes are inserted
#:<pre>
#:<pre>
#::> reply <request-number>
#::reply <request-number>
#:</pre>
#:</pre>
#:Wait for complete the task
#:Wait for complete the task
#Checkin the tapes
#Checkin the tapes
#:<pre>
#:<pre>
#::> label libvolume TS4300 search=yes checkin=scratch labelsource=barcode
#::label libvolume TS4300 search=yes checkin=scratch labelsource=barcode
#:</pre>
#:</pre>
#See the status
#See the status
#:<pre>
#:<pre>
#::> show slots TS4300
#::show slots TS4300
#::> q libvol TS4300
#::q libvol TS4300
#:</pre>
#:</pre>


== Backup disk pool to tape offsite pool ==
== Backup disk pool to tape offsite pool ==
Line 104: Line 107:
#::query volume * stgpool=MONTHLY_DR_OFFSITEPOOL devclass=LTOCLASS f=d
#::query volume * stgpool=MONTHLY_DR_OFFSITEPOOL devclass=LTOCLASS f=d
#::</pre>
#::</pre>
#Before moving tape to vault status is as follows:
#Before moving tape to vault, check the status
#:<pre>
#:<pre>
#::query drmedia
#::query drmedia

Latest revision as of 12:39, 12 May 2023

Home > RHEL > RHEL 8.x > Backup tools > Spectrum Protect Backup > Spectrum Protect Move backups to DR

Create storage pool for offsite pool

  1. Create storage pool for offsite pool
    DEFINE STGPOOL <offsite-tape-storage-pool-name> LTOCLASS pooltype=copy description="Description for the Offsite tape pool" maxscratch=2 collocate=no
    Ex
    DEFINE STGPOOL MONTHLY_DR_OFFSITEPOOL LTOCLASS pooltype=copy description="Monthly OFFSITE TAPE Storage Pool for DR" maxscratch=2 collocate=no
  2. Check the status
    q stgpool


If new tape cartridges inserted to tape library

If new tape cartridges inserted to tape library, then need to checkin the tapes cartridges to library by using below commands

  1. Verify the list of tapes currently in the library with the following command
    show slots TS4300
  2. Verify the list of tapes currently checked in with Spectrum Protect with the following command
    query libv TS4300
  3. Run the audit library for finding the newly inserted tapes
    audit library TS4300 checkl=yes refresh=yes
  4. Then checked in discovered (newly added tapes) to library as scratch
    label libvolume TS4300 search=yes checkin=scratch labelsource=barcode
  5. Look at activity log of above command Or use web UI instead of doing below
    q proc
    query actlog search="MOVE DRMEDIA"
  6. Find the newly inserted tapes
    query libv TS4300

If Old/Used/Offsite tape cartridges inserted to tape library

If old/used tape cartridges inserted to tape library, then need to remove the data and insert as a scartch by using below

  1. Insert the tape cartridges in tape media
  2. Check the drmedia tapes list
    query drmedia
  3. This step is required for, If inserted tapes are part of drmedia. The inserted tapes status must be "Vault retrieve". Then Change the tapes state to onsite
    move drmedia <tape-name> wherestate=vaultretrieve tostate=onsiteretrieve
    Ex:
    move drmedia GB7441L8 wherestate=vaultretrieve tostate=onsiteretrieve
    Note: If inserted tapes are not part of drmedia, avoid this step.
  4. Run below command for checkin
    label libvolume TS4300 <tape-name> checkin=scratch overwrite=yes
    Ex:
    label libvolume TS4300 GB7451L8 checkin=scratch overwrite=yes
  5. Get the pending request id by using below command
    query request
  6. Let the server know tapes are inserted
    reply <request-number>
    Wait for complete the task
  7. Checkin the tapes
    label libvolume TS4300 search=yes checkin=scratch labelsource=barcode
  8. See the status
    show slots TS4300
    q libvol TS4300

Backup disk pool to tape offsite pool

  1. Backup disk pool to tape offsite pool
    BACKUP STGP <Diskpool> <offsite-tape-storage-pool-name> wait=no
    Ex
    BACKUP STGP HANADISKPOOL MONTHLY_DR_OFFSITEPOOL wait=no
  2. Get the process number
    q proc
  3. Check the detail log based on process number
    q actlog search="PROCESS: <process-number>"
    Ex
    q actlog search="PROCESS: 1072"
  4. Check the tape cartridge name and other information
    query volume * stgpool=<offsite-tape-storage-pool-name> devclass=LTOCLASS f=d
    Ex
    query volume * stgpool=MONTHLY_DR_OFFSITEPOOL devclass=LTOCLASS f=d
  5. Before moving tape to vault, check the status
    query drmedia
  6. Move tape cartridge to vault status
    move drmedia KG7451L8 tostate=vault
  7. Check the process status
    q proc
  8. Check the status
    query drmedia


Home > RHEL > RHEL 8.x > Backup tools > Spectrum Protect Backup > Spectrum Protect Move backups to DR