<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The NetWorker Blog &#187; sjisn</title>
	<atom:link href="http://nsrd.info/blog/tag/sjisn/feed/" rel="self" type="application/rss+xml" />
	<link>http://nsrd.info/blog</link>
	<description>EMC NetWorker commentary from a long term backup consultant and theorist</description>
	<lastBuildDate>Mon, 21 May 2012 21:37:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Basics – Bypassing NetWorker for media movement</title>
		<link>http://nsrd.info/blog/2010/03/15/basics-%e2%80%93%c2%a0bypassing-networker-for-media-movement/</link>
		<comments>http://nsrd.info/blog/2010/03/15/basics-%e2%80%93%c2%a0bypassing-networker-for-media-movement/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 10:26:06 +0000</pubDate>
		<dc:creator>Preston de Guise</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[NetWorker]]></category>
		<category><![CDATA[inquire]]></category>
		<category><![CDATA[jbconfig]]></category>
		<category><![CDATA[sjimm]]></category>
		<category><![CDATA[sjisn]]></category>

		<guid isPermaLink="false">http://nsrd.info/blog/?p=2012</guid>
		<description><![CDATA[Sometimes NetWorker may not want to cooperate when it comes to moving media in and out of drives, or around in a tape library. While nsrjb -n will do the trick for some media load operations where you don&#8217;t want to mount media, it&#8217;s not always available. Sometimes you will need to do a media <a href='http://nsrd.info/blog/2010/03/15/basics-%e2%80%93%c2%a0bypassing-networker-for-media-movement/' class='excerpt-more'>[...]</a>
No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Sometimes NetWorker may not want to cooperate when it comes to moving media in and out of drives, or around in a tape library. While <em>nsrjb -n</em> will do the trick for some media load operations where you don&#8217;t want to mount media, it&#8217;s not always available. Sometimes you will need to do a media move operation without NetWorker – either in situations where NetWorker isn&#8217;t running, or at times when NetWorker is disagreeing with the output of <em>sjirdtag</em>.</p>
<p>In these cases, you want to work with <em>sjimm</em>.</p>
<p>The usage for <em>sjimm</em> is:</p>
<pre>[root@tara ~]# sjimm
1642:sjimm: usage: sjimm jukebox {drive|slot|inlt|mt} src {drive|slot|inlt|mt} dst</pre>
<p>In this case, &#8216;jukebox&#8217; will be the <em>x.y.z</em> component of the SCSI device ID as output from <em>inquire</em> (or as determined by checking the control port field for the jukebox.)</p>
<p>For instance, on my lab system, inquire shows me:</p>
<pre>[root@tara ~]# inquire -l | grep Autochanger
scsidev@0.0.0:SPECTRA PYTHON          5500|Autochanger (Jukebox), /dev/sg6</pre>
<p>So I know then that the <em>jukebox</em> component of my <em>sjimm</em> command will be <em>0.0.0</em>.</p>
<p>So say I wanted to move the tape in slot 23 into the first drive in my autochanger. I&#8217;d use the command:</p>
<pre>[root@tara ~]# sjimm 0.0.0 slot 23 drive 1</pre>
<p>Note though that this doesn&#8217;t <em>mount</em> the tape. If I then run nsrjb, for my drive area I see:</p>
<pre>drive 1 (/dev/nst0) slot   :   
drive 2 (/dev/nst1) slot   :   
drive 3 (/dev/nst2) slot   :   
drive 4 (/dev/nst3) slot   :   
drive 5 (/dev/nst4) slot   :   
drive 6 (/dev/nst5) slot   :</pre>
<p>Note too that I didn&#8217;t give the drive to load the tape into as a operating system device, but instead a device number as per the autochanger&#8217;s definition. (I&#8217;ll get to tracing that in a minute.)</p>
<p>I can verify that there is a tape in the given drive at this point by running the command:</p>
<pre>[root@tara ~]# nsrmm -p -f /dev/nst0
Verified LTO Ultrium-4 tape 800823L4 on /dev/nst0</pre>
<p>When you&#8217;re done with the tape, you can then move it back:</p>
<pre>[root@tara ~]# sjimm 0.0.0 drive 1 slot 23</pre>
<p>Note that depending on the drive type, it may be necessary before issuing the above command to issue the <em>mt</em> command to take the media &#8220;offline&#8221;, which usually issues an eject command to the drive &#8211; e.g.,:</p>
<pre>[root@tara ~]# mt -f /dev/nst0 rewoff</pre>
<p>Other than that, there&#8217;s actually not a lot to <em>sjimm</em>. You can move tapes from slots to drives, slots to CAP slots, drives to slots, slots to slots, etc.</p>
<p>However, I did mention that I&#8217;d help you work out what drive number corresponds to what operating system device. Obviously if you&#8217;ve got the library configured, you can just use nsrjb&#8217;s output to see see the autochanger device &lt;-&gt; OS device path mapping. If you don&#8217;t yet have a tape library configured in NetWorker, or the issue is determining which drive is currently mapped to which path (after say, a tape drive replacement), you need to do a little more digging.</p>
<p>So, in this case you&#8217;d run <em>sjisn</em> – which is designed to report serial numbers and device details for tape library components. Like <em>sjimm</em>, <em>sjisn</em> takes the control port of the tape library we want to communicate with &#8211; e.g.:</p>
<pre>
<pre>[root@tara ~]# sjisn 0.0.0</pre>
<p>Serial Number data for 0.0.0 (SPECTRA  PYTHON          ):<br />
Library:<br />
Serial Number: XYZZY<br />
SCSI-3 Device Identifiers:<br />
ATNN=SPECTRA PYTHON          XYZZY<br />
WWNN=11223344ABCDEF00<br />
Drive at element address 1:<br />
SCSI-3 Device Identifiers:                         ATNN=ZF7584364<br />
Drive at element address 2:<br />
SCSI-3 Device Identifiers:<br />
ATNN=ZF7584366<br />
Drive at element address 3:<br />
SCSI-3 Device Identifiers:<br />
ATNN=ZF7584368<br />
Drive at element address 4:<br />
SCSI-3 Device Identifiers:<br />
ATNN=ZF7584370<br />
Drive at element address 5:<br />
SCSI-3 Device Identifiers:<br />
ATNN=ZF7584372<br />
Drive at element address 6:<br />
SCSI-3 Device Identifiers:<br />
ATNN=ZF7584374</pre>
<p>The number given in the &#8220;Drive at element address&#8221; line for each drive represents, literally, the drive number according to the tape library itself. I.e., when it refers to drive 1, it means the drive with serial number ZF7584364.</p>
<p>Moving on, we can then run <em>inquire -l</em> to provide the device details so as to align internal library drive numbers to operating system paths, cross-referencing by the serial numbers (or WWNs when using a fibre-channel tape library).  In this case, I&#8217;ll just show the details for two of the tape drives:</p>
<pre>scsidev@0.3.0:IBM     ULT3580-TD4     5500|Tape, /dev/nst2
                                           S/N:    ZF7584368
                                           ATNN=IBM     ULT3580-TD4     ZF7584368
                                           WWNN=11223344ABCDEF03
scsidev@0.4.0:IBM     ULT3580-TD4     5500|Tape, /dev/nst3
                                           S/N:    ZF7584370
                                           ATNN=IBM     ULT3580-TD4     ZF7584370
                                           WWNN=11223344ABCDEF04</pre>
<p>So, you can see from the above that we can map the drives as follows:</p>
<ul>
<li>The drive known to the OS as /dev/nst2, which has a serial number of ZF7584368 maps to the library device number 3.</li>
<li>The drive known to the OS as /dev/nst3, which has a serial number of ZF7584370 maps to the library device number 4.</li>
</ul>
<p>So this would give us the drive numbers to use in <em>sjimm</em> if we needed to move tapes in or out of those drives without using NetWorker&#8217;s NMC or <em>nsrjb</em>.</p>
<p>As a side-note, that&#8217;s also how you&#8217;d go about identifying the correct device order for a manual <em>jbconfig</em> operation when the library device order is out of sync with the operating system devices – cross-checking via <em>sjisn</em> and <em>inquire</em>.</p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Share this using...</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;submitHeadline=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;title=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;title=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;title=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;bm_description=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;T=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;title=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;title=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement+@+http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fnsrd.info%2Fblog%2F2010%2F03%2F15%2Fbasics-%25e2%2580%2593%25c2%25a0bypassing-networker-for-media-movement%2F&amp;t=Basics+%E2%80%93%C2%A0Bypassing+NetWorker+for+media+movement" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://nsrd.info/blog/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://nsrd.info/blog/2010/03/15/basics-%e2%80%93%c2%a0bypassing-networker-for-media-movement/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic

Served from: nsrd.info @ 2012-05-25 00:38:21 -->
