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 [2016/11/18 11:08]
bnachtw [Delete orphaned volumes from volhist]
en:services:storage_services:backup:tsm:admin:undocumented [2019/03/19 12:03]
bnachtw [Delete orphaned volumes from volhist]
Line 1: Line 1:
 +====== not documented option of admin commands ======
 +here we collect some not documented options sometime useful. The list actually is not ordered properly by topic just  "as it is" :-)
 +
 +===== Library Manager =====
 +==== Delete orphaned volumes from volhist ====
 +  * 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''​
 +
 +  * 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 '"'​)
 +  do 
 +    echo "​lm101:​ del volhist type=remote volume="​$i"​ tod=+0 force=yes"​
 +  done
 +  lm101: del volhist type=remote volume=HU2194L5 tod=+0 force=yes
 +  lm101: del volhist type=remote volume=HU2195L5 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
 +</​code>​
 +
 +  ​