160 lines
9.4 KiB
HTML
160 lines
9.4 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="en-us" xml:lang="en-us">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2005" />
|
|
<meta name="DC.rights.owner" content="(C) Copyright IBM Corporation 2005" />
|
|
<meta name="security" content="public" />
|
|
<meta name="Robots" content="index,follow" />
|
|
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
|
|
<meta name="DC.Type" content="task" />
|
|
<meta name="DC.Title" content="Sharing iSeries tape and optical drives with Linux" />
|
|
<meta name="abstract" content="This topic discusses how to share optical drives with your integrated Linux server." />
|
|
<meta name="description" content="This topic discusses how to share optical drives with your integrated Linux server." />
|
|
<meta name="DC.Relation" scheme="URI" content="rzau9mandrives.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rzau9shareopdrive" />
|
|
<meta name="DC.Language" content="en-us" />
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
|
|
<link rel="stylesheet" type="text/css" href="./ic.css" />
|
|
<title>Sharing iSeries tape
|
|
and optical drives with Linux</title>
|
|
</head>
|
|
<body id="rzau9shareopdrive"><a name="rzau9shareopdrive"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">Sharing iSeries tape
|
|
and optical drives with Linux</h1>
|
|
<div><p>This topic discusses how to share optical drives with your integrated Linux<sup>®</sup> server.</p>
|
|
<div class="section"><p>Another advantage of using integrated Linux servers is the ability for Linux to share iSeries™ tape
|
|
and optical devices. Your ability to use iSeries tape drives from Linux depends
|
|
on the tape device model, tape controller, and media type. If you have logical
|
|
partitions on your iSeries, a Linux server can only see the tape and
|
|
optical drives that are allocated to the <span class="keyword">i5/OS™</span> partition
|
|
where the server is hosted.</p>
|
|
<p>The main reason why you would share an iSeries tape
|
|
drive with Linux is
|
|
so that you do not need to buy additional tape drives specifically for Linux to
|
|
use. All Linux servers
|
|
can share an iSeries tape
|
|
drive in the same host <span class="keyword">i5/OS</span> partition,
|
|
although not at the same time. </p>
|
|
<p>Each xSeries<sup>®</sup> server comes with its own optical
|
|
drive. Therefore, Integrated xSeries Adapter-attached xSeries machines are unlikely to need
|
|
to share an iSeries optical
|
|
drive. An exception can be if the iSeries optical drive is a DVD-RAM device.
|
|
However, at the time of writing, the Linux integration software did not support
|
|
writing to DVD-RAM from Linux. </p>
|
|
<p>The Integrated xSeries Server does not come with its
|
|
own optical device. Therefore, it is likely that you would need to share your iSeries optical
|
|
device with your Integrated xSeries Servers. </p>
|
|
<p>Before you can use iSeries tape
|
|
and optical devices from a Linux server, you must make the devices
|
|
available to Linux.
|
|
An iSeries tape
|
|
device must first be made unavailable (varied off) before a Linux server
|
|
can use it, whereas an optical drive must be made available (varied on) before Linux can
|
|
use it. </p>
|
|
<p>The latest information on backup device support is available
|
|
at: </p>
|
|
<p><a href="http://www.ibm.com/servers/eserver/iseries/integratedxseries/linux/backup.html" target="_blank">http://www.ibm.com/servers/eserver/iseries/integratedxseries/linux/backup.html</a> <img src="www.gif" alt="Link outside information center" /></p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzau9mandrives.htm" title="This topic describes information and advice on how to manage iSeries disk storage allocated to integrated Linux servers.">Managing Linux drives</a></div>
|
|
</div>
|
|
</div><div class="nested1" xml:lang="en-us" id="rzau9transconop"><a name="rzau9transconop"><!-- --></a><h2 class="topictitle2">Transferring control of an optical drive from <span class="keyword">i5/OS</span> to Linux</h2>
|
|
<div><div class="section"><p>Sharing an iSeries optical drive with Linux involves
|
|
transferring control of the optical drive from <span class="keyword">i5/OS</span> to Linux,
|
|
and transferring control back from Linux to <span class="keyword">i5/OS</span>.</p>
|
|
<p>To
|
|
transfer control of an iSeries optical drive from <span class="keyword">i5/OS</span> to Linux with
|
|
CL commands, complete the following steps:</p>
|
|
</div>
|
|
<ol><li class="stepexpand"><span>On an <span class="keyword">i5/OS</span> command
|
|
line, use this CL command to check the status of the optical drives (you cannot
|
|
check the status of an optical device using iSeries Navigator):</span> <pre>WRKCFGSTS *DEV *OPT</pre>
|
|
<p>On
|
|
the Work with Configuration Status display, find the optical device you want
|
|
to transfer control of to Linux. Check that it is varied on. If not, type <kbd class="userinput">1</kbd> next
|
|
to the device and press <span class="uicontrol">Enter</span>.</p>
|
|
</li>
|
|
<li class="stepexpand"><span>To lock the optical device to Linux, start a Linux terminal session and log in as root.</span></li>
|
|
<li class="stepexpand"><span>At the command prompt enter the ixsdev command and press Enter.
|
|
The syntax is:</span> <pre>ixsdev [-list] | [[-lock | -unlock] device name]</pre>
|
|
<p>For
|
|
example, to list the tape and optical drives accessible by Linux enter the
|
|
following command:</p>
|
|
<pre>ixsdev -list</pre>
|
|
<p>To
|
|
lock OPT01 to Linux you would enter the following command:</p>
|
|
<pre>ixsdev -lock OPT01</pre>
|
|
<p>You
|
|
could also use the Linux name:</p>
|
|
<pre>ixsdev -lock /dev/scd0</pre>
|
|
<p>The
|
|
status of OPT01 shows as <samp class="codeph">LOCKED</samp>.</p>
|
|
<div class="note"><span class="notetitle">Note:</span> In Linux, commands
|
|
are case sensitive. Make sure you use the same case as in the examples. For
|
|
example, use <samp class="codeph">OPT01</samp>, not <samp class="codeph">opt01</samp>.</div>
|
|
</li>
|
|
<li class="stepexpand"><span>Because Linux sees optical drives as block devices, you need
|
|
to mount the optical device (<strong>NOTE:</strong> If the optical device has been mounted,
|
|
you will need to unmount the device before unlocking it.) :</span><ol type="a"><li class="substepexpand"><span>Create a mount point using the Make directory (mkdir) command.
|
|
For example:</span> <pre>mkdir /mnt/scd0</pre>
|
|
</li>
|
|
<li class="substepexpand"><span>Mount the optical device. For example:</span> <pre>mount /dev/scd0 /mnt/scd0</pre>
|
|
</li>
|
|
</ol>
|
|
</li>
|
|
</ol>
|
|
<div class="section">After the optical drive has been logically switched to the integrated Linux server,
|
|
you can use it in the same way as you would use an optical drive directly
|
|
attached to a standalone Linux server.</div>
|
|
</div>
|
|
</div>
|
|
<div class="nested1" xml:lang="en-us" id="rzau9transconfromlinux"><a name="rzau9transconfromlinux"><!-- --></a><h2 class="topictitle2">Transferring control of an optical drive from Linux to <span class="keyword">i5/OS</span></h2>
|
|
<div><div class="section"><p>To transfer control of an iSeries optical drive back to <span class="keyword">i5/OS</span> all you need to do is unlock
|
|
it in Linux.
|
|
Note that if you either shut down the integrated Linux server before you unlock the optical
|
|
drive, or the server fails before you unlock the optical drive, it unlocks
|
|
automatically.</p>
|
|
<p>To transfer control of an iSeries optical drive back to <span class="keyword">i5/OS</span> from Linux, complete
|
|
the following steps:</p>
|
|
</div>
|
|
<ol><li class="stepexpand"><span>To unlock the optical drive from Linux, start a Linux terminal session and log in as root.</span></li>
|
|
<li class="stepexpand"><span>At the command prompt enter the ixsdev command and press <span class="uicontrol">Enter</span>.
|
|
The syntax is:</span> <pre>ixsdev [-list] | [[-lock | -unlock] device name]</pre>
|
|
<p>To
|
|
unlock OPT01 from Linux you would enter the following command:</p>
|
|
<pre>ixsdev -unlock OPT01</pre>
|
|
<div class="note"><span class="notetitle">Note:</span> In Linux,
|
|
commands are case sensitive. Make sure you use the same case as in the examples.
|
|
For example, use <samp class="codeph">OPT01</samp>, not <samp class="codeph">opt01</samp>.</div>
|
|
</li>
|
|
<li class="stepexpand"><span>You could also use the Linux name:</span> <pre>ixsdev -unlock /dev/scd0</pre>
|
|
<p>The
|
|
status of OPT01 shows as <samp class="codeph">UNLOCKED</samp>.</p>
|
|
</li>
|
|
<li class="stepexpand"><span>On an <span class="keyword">i5/OS</span> command
|
|
line, follow these steps:</span><ol type="a"><li class="substepexpand"><span>Use the following CL command to check that the optical drive
|
|
is still varied on:</span> <pre>WRKCFGSTS *DEV *OPT</pre>
|
|
</li>
|
|
<li class="substepexpand"><span>On the Work with Configuration Status display, find the optical
|
|
device you previously unlocked. Its status should be VARIED ON. If not, type <kbd class="userinput">1</kbd> next
|
|
to the device and press <span class="uicontrol">Enter</span>.</span></li>
|
|
</ol>
|
|
</li>
|
|
</ol>
|
|
<div class="section">You can now use the optical drive from <span class="keyword">i5/OS</span>.</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html> |