RHEL 8.x Spectrum Protect Move backups to DR
From Notes_Wiki
Revision as of 12:37, 12 May 2023 by Saurabh (talk | contribs) (→If new tape cartridges inserted to tape library)
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
- Verify the list of tapes currently in the library with the following command
- show slots TS4300
- Verify the list of tapes currently checked in with Spectrum Protect with the following command
- 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