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...") |
|||
Line 46: | Line 46: | ||
#Check the drmedia tapes list | #Check the drmedia tapes list | ||
#:<pre> | #:<pre> | ||
#:: | #::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 | ||
#::Ex: | #::Ex: | ||
#:: | #::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 | ||
#::Ex: | #::Ex: | ||
#:: | #::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 | ||
#:</pre> | #:</pre> | ||
#Let the server know tapes are inserted | #Let the server know tapes are inserted | ||
#:<pre> | #:<pre> | ||
#:: | #::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 | ||
#:</pre> | #:</pre> | ||
#See the status | #See the status | ||
#:<pre> | #:<pre> | ||
#:: | #::show slots TS4300 | ||
#:: | #::q libvol TS4300 | ||
#:</pre> | #:</pre> | ||
== Backup disk pool to tape offsite pool == | == Backup disk pool to tape offsite pool == |
Revision as of 12:34, 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
- 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
- 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
- Check the current tapes in the library
- show slots TS4300
- query libv TS4300
- Run the audit library for finding the newly inserted tapes
- audit library TS4300 checkl=yes refresh=yes
- Then checked in discovered (newly added tapes) to library as scratch
- label libvolume TS4300 search=yes checkin=scratch labelsource=barcode
- Monitor the status of above command
- q proc
- 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
- Insert the tape cartridges in tape media
- Check the drmedia tapes list
- query drmedia
- 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.
- Run below command for checkin
- label libvolume TS4300 <tape-name> checkin=scratch overwrite=yes
- Ex:
- label libvolume TS4300 GB7451L8 checkin=scratch overwrite=yes
- Get the pending request id by using below command
- query request
- Let the server know tapes are inserted
- reply <request-number>
- Wait for complete the task
- Checkin the tapes
- label libvolume TS4300 search=yes checkin=scratch labelsource=barcode
- See the status
- show slots TS4300
- q libvol TS4300
Backup disk pool to tape offsite pool
- 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
- Get the process number
- q proc
- Check the detail log based on process number
- q actlog search="PROCESS: <process-number>"
- Ex
- q actlog search="PROCESS: 1072"
- 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
- Before moving tape to vault status is as follows:
- query drmedia
- Move tape cartridge to vault status
- move drmedia KG7451L8 tostate=vault
- Check the process status
- q proc
- Check the status
- query drmedia
Home > RHEL > RHEL 8.x > Backup tools > Spectrum Protect Backup > Spectrum Protect Move backups to DR