First, close all TiNa apps (GUI TiNa, etc.).
Connection
Connect to the Tina Server:
# ssh TINA-SERVER-001 |
Recycle cartridges
Seach for the cartridge ready to be recycled with tina_cart_control -list
:
# /usr/TiNa_Path/Bin/tina_cart_control -list -v_name -v_location -v_recyclable -v_recycle_age -v_status -v_close_status -status_filter recyclable |
Name Location Recyclable Cycle Age Overall Status Status |
Recycle the expired and closed cartrides on ROBOT-T800 and VLS:
# /usr/TiNa_Path/Bin/tina_cart_control -recycle -label P_6M-0001338 |
Errors encountered
Possible errors when recycle:
Recycling cartridge P_1Y-0001592 may corrupt backup integrity: Unselected |
Maybe they are simply not ready for recycle…
Name Location Recyclable Cycle Age Overall Status Status |
Possible forcing (Not Tested)
# /usr/TiNa_Path/Bin/tina_cart_control -reopen -label P_1Y-0001592 // Error, TiNa refused |
Purge catalog
Purge the unused entries from the catalog:
# /usr/TiNa_Path/Bin/tina_odbgc -purge -sync -catalog MyCatalogName |
Check current jobs before stopping catalog
None job
Check if jobs are running or scheduled:
# /usr/TiNa_Path/Bin/tina_acct -display_active_jobs_only |
Jobs running
If jobs are running like below:
# /usr/TiNa_Path/Bin/tina_acct -display_active_jobs_only |
Wait the end of running jobs
Jobs scheduled
If jobs are scheduled like below:
# /usr/TiNa_Path/Bin/tina_acct -display_active_jobs_only |
Look when they will be launched and unschedule them if needed:
# /usr/TiNa_Path/Bin/tina_job_control -view -jobid <ID_Job> |
Unschedule a job:
# /usr/TiNa_Path/Bin/tina_job_control -cancel -jobid <ID_Job> |
Stop catalog
Put the catalog in maintenance:
# /usr/TiNa_Path/Bin/tina_catalog_ctrl -maintenance |
Then stop it:
# /usr/TiNa_Path/Bin/tina_catalog_ctrl -stop |
Backup the catalog:
Catalog size
# du -sh /BACKUP/TiNa/catalogs/catalog_$(date +%d-%m-%Y).cod |
Backup the catalog (may take a long time):
# /usr/TiNa_Path/Bin/tina_odbsave -catalog MyCatalogName -file /BACKUP/TiNa/catalogs/catalog_$(date +%Y-%m-%d).cod |
Delete old version of catalog :
# rm -fr /BACKUP/TiNa/Data.MyCatalogName.old |
And rename the current catalog to .old
# mv /BACKUP/TiNa/Data.MyCatalogName /BACKUP/TiNa/Data.MyCatalogName.old_$(date +%Y-%m-%d) |
Defrag the catalog:
Defrag and Rebuild the catalog from last backup file (very long 20-25min):
# /usr/TiNa_Path/Bin/tina_init -file /BACKUP/TiNa/catalogs/catalog_$(date +%Y-%m-%d).cod -catalog_name MyCatalogName |
Catalog size
# du -sh /BACKUP/TiNa/catalogs/catalog_$(date +%Y-%m-%d).cod |
The catolog should be lighter
Sart catalog
Start it:
# /usr/TiNa_Path/Bin/tina_catalog_ctrl -start |
Stop/Start TiNa
Not needed below for above tasks, but usefull to know:
Stop Tina
# /etc/init.d/tina.MyCatalogName stop |
Verify and kill if some processes still exists:
# ps aux | grep tina |
# pkill -9 tina |
Start TiNa
Start the TiNa service:
# /etc/init.d/tina.MyCatalogName start |
Check the status of the catalog:
# /usr/TiNa_Path/Bin/tina_catalog_ctrl -statu |
Documentation
TiNa help