{"id":459,"date":"2011-01-28T00:30:38","date_gmt":"2011-11-21T21:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/netbackup-101-for-me\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-11-21T21:51:50","slug":"netbackup-101-for-me","status":"publish","type":"post","link":"\/blog\/index.php\/netbackup-101-for-me\/","title":{"rendered":"NetBackup 101 (for me)"},"content":{"rendered":"<p>ok, just hang with me while I learn NB.<br \/>\nsome jobs were stalled in a machine, so we went to the media server and checked if the jobs were pending<br \/>\nand the tape drives were not in &#8220;TSD&#8221;:<br \/>\nbash-3.00# \/usr\/openv\/volmgr\/bin\/vmoprcmd<br \/>\nPENDING REQUESTS<br \/>\n&lt;NONE&gt;<br \/>\nDRIVE STATUS<br \/>\nDrv Type Control User Label RVSN EVSN Ready Wr.Enbl. ReqId<br \/>\n0 dlt TSD &#8211; No &#8211; &#8211;<br \/>\n1 dlt TSD root Yes EBI219 EBI219 Yes Yes 1<br \/>\nADDITIONAL DRIVE STATUS<br \/>\nDrv DriveName Multihost Assigned Comment<br \/>\n0 QUANTUMDLT70000 No &#8211;<br \/>\n1 QUANTUMDLT70001 No ebitdb1<br \/>\nIn the &#8220;pending&#8221; section there were jobs pending on drv 1 and 0, and the tape drives were unavailable, so we<br \/>\nreset them:<br \/>\n# vmoprcmd -deny 0<br \/>\n# vmoprcmd -deny 1<br \/>\n# vmoprcmd -up 0<br \/>\n# vmoprcmd -up 1<br \/>\nWe assumed the drives were recently fed with tapes, so after this jobs were running ok.<br \/>\nTo see the active jobs&#8230;<br \/>\n#bpdbjobs -report |grep -i act<br \/>\nTo see the queued jobs&#8230;<br \/>\n#bpdbjobs -report | grep -i que<br \/>\nTo kill a job<br \/>\n#bpdbjobs -kill &lt;job#&gt;<br \/>\nTo see the job summary&#8230;<br \/>\n#\/usr\/openv\/netbackup\/bin\/bpdbjobs -summary<br \/>\n#bpps -a<br \/>\nTo run an inventory on a tape library&#8230;<br \/>\n#bpinvent 0<br \/>\n259\/433<br \/>\nCheck last 24 hour&#8217;s errors<br \/>\n#bperror -U -backstat -hoursago 24<br \/>\nSee available tapes<br \/>\n# available_media<br \/>\nOr go to bpadm &#8211; media mgmt &#8211; special actions &#8211; Inventory a Robot and Compare with Volume Configuration<br \/>\nTo see if a tape is in the correct pool<br \/>\n#vmquery -m &lt;mediaid&gt;<br \/>\nTo change a tape of pool<br \/>\n# vmchange -h ntxldb2 -p 1 -m NTXD53<br \/>\n(Where 1 is NetBackup and 2 is systems)<br \/>\nTo see the pools<br \/>\n#vmpool -listall<br \/>\nA monitoring loop:<br \/>\n# while true;do clear; vmoprcmd; echo &#8220;active&#8221;; bpdbjobs -report |grep -i act;echo &#8220;queued&#8221;; bpdbjobs -report<br \/>\n|grep -i que;bpdbjobs -summary; bperror -U -backstat -hoursago 24| tail -15l; sleep 5; clear; done<br \/>\nRun bpadm for interactive actions<br \/>\n# bpadm<br \/>\ndocument<br \/>\ntoo<br \/>\n260\/433<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ok, just hang with me while I learn NB. some jobs were stalled in a machine, so we went to the media server and checked if the jobs were pending and the tape drives were not in &#8220;TSD&#8221;: bash-3.00# \/usr\/openv\/volmgr\/bin\/vmoprcmd PENDING REQUESTS &lt;NONE&gt; DRIVE STATUS Drv Type Control User Label RVSN EVSN Ready Wr.Enbl. ReqId [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-459","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=459"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/459\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=459"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}