Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:services:storage_services:backup:tsm:admin:undocumented [2019/03/19 11:13]
bnachtw [Delete orphaned volumes from volhist]
en:services:storage_services:backup:tsm:admin:undocumented [2019/03/19 12:03] (current)
bnachtw [Delete orphaned volumes from volhist]
Line 4: Line 4:
 ===== Library Manager ===== ===== Library Manager =====
 ==== Delete orphaned volumes from volhist ==== ==== Delete orphaned volumes from volhist ====
-* Identify "​old"​ owner:\\ ''​select * from volhistory where volume_name='<​NAME>'​ ''​+  ​* Identify "​old"​ owner:\\ ''​select * from volhistory where volume_name='<​NAME>'​ ''​
  
-* Delete volhistory entry by //giving the name of the volume//:\\ ''​del volhist type=remote volume=<​NAME>​ tod=+0 force=yes''​+  ​* Delete volhistory entry by //giving the name of the volume//:\\ ''​del volhist type=remote volume=<​NAME>​ tod=+0 force=yes''​
  
-* remove all tapes with a certain patter from volhistory using a bash shell on the libman'​ config folder, e.g. all LTO5 tapes on Libman ​''​lm101'':​+  ​* remove all tapes with a certain patter from volhistory using a bash shell on the libman'​ config folder,\\ e.g. remove ​all LTO5 tapes on a LibMan called ​''​lm101'':​<​code>​
   for i in $(grep "​Volume Name" volhist.dat | grep "​L5"​ | cut -f 2 -d '"'​)   for i in $(grep "​Volume Name" volhist.dat | grep "​L5"​ | cut -f 2 -d '"'​)
   do    do 
Line 17: Line 17:
   lm101: del volhist type=remote volume=HU2135L5 tod=+0 force=yes   lm101: del volhist type=remote volume=HU2135L5 tod=+0 force=yes
   lm101: del volhist type=remote volume=HU2138L5 tod=+0 force=yes   lm101: del volhist type=remote volume=HU2138L5 tod=+0 force=yes
 +</​code>​
  
   ​   ​