134 lines
8.4 KiB
HTML
134 lines
8.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="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="reference" />
|
|||
|
<meta name="DC.Title" content="Volume, directory, and file considerations" />
|
|||
|
<meta name="abstract" content="Several special considerations will make your optical programming easier." />
|
|||
|
<meta name="description" content="Several special considerations will make your optical programming easier." />
|
|||
|
<meta name="DC.Relation" scheme="URI" content="rzau8concept.htm" />
|
|||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2000, 2006" />
|
|||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2000, 2006" />
|
|||
|
<meta name="DC.Format" content="XHTML" />
|
|||
|
<meta name="DC.Identifier" content="considerations" />
|
|||
|
<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>Volume, directory, and file considerations</title>
|
|||
|
</head>
|
|||
|
<body id="considerations"><a name="considerations"><!-- --></a>
|
|||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|||
|
<h1 class="topictitle1">Volume, directory, and file considerations</h1>
|
|||
|
<div><p>Several special considerations will make your optical programming
|
|||
|
easier.</p>
|
|||
|
<div class="section"><h4 class="sectiontitle">Volume considerations</h4><div class="p">Consider the following terms
|
|||
|
when referring to volumes:<ul><li><strong>Online</strong>. The volume is mounted in a drive under the read/write heads.</li>
|
|||
|
<li><strong>Near online</strong>. The volume is in the optical media library, but not
|
|||
|
online. The volume may be in a storage slot or the opposite side of an online
|
|||
|
volume.</li>
|
|||
|
<li><strong>Removed</strong>. The volume is not physically in an optical media library,
|
|||
|
but volume information for the volume was kept when the volume was removed.</li>
|
|||
|
<li><strong>Offline</strong>. The volume is in an optical device, but the device is
|
|||
|
either powered off, varied off, or no longer connected.</li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
<div class="p">Consider the following characteristics of optical volumes: <ul><li>An optical volume is one side of an optical cartridge.</li>
|
|||
|
<li>Some optical cartridges contain two volumes, others contain one.</li>
|
|||
|
<li>All volume names must be unique.</li>
|
|||
|
<li>Depending on the optical media density and type, the capacity of a volume
|
|||
|
can range from a few hundred megabytes to many gigabytes.</li>
|
|||
|
<li>Normally, a near online volume takes less than 10 seconds to become an
|
|||
|
online volume. This requires the volume to be mounted into a drive.</li>
|
|||
|
<li>The number of drives in the optical media library determines how many
|
|||
|
volumes can be online at any time. Only one volume can be mounted in a drive
|
|||
|
(online) at one time. The remaining volumes in the library are near online. </li>
|
|||
|
<li>Volumes are generally independent of each other, with one exception. The
|
|||
|
two volumes on the same cartridge can never be completely independent. Both
|
|||
|
volumes on a cartridge can never be online at the same time. Copying between
|
|||
|
two volumes on the same cartridge can be done, but it requires the cartridge
|
|||
|
to be <span class="q">"flipped"</span> several times to copy all of the requested files.</li>
|
|||
|
<li>There is no limit to the number of removed volumes that can exist.</li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
<p>How an application manages volumes depends almost entirely on
|
|||
|
the requirements of the application. Data should be written to volumes strategically,
|
|||
|
depending on the desired retrieval time in the future. If it is not desirable
|
|||
|
to wait for a near online volume to become online, the application might need
|
|||
|
to be set up so that the most likely volumes to be accessed are online.</p>
|
|||
|
</div>
|
|||
|
<div class="section"><h4 class="sectiontitle">Directory considerations</h4><p>The only limit to the number
|
|||
|
of directories that can be created on a volume is the capacity of the media.
|
|||
|
This restriction also applies to the number of files that can exist in an
|
|||
|
optical directory. Directories are not required to exist for files to be stored
|
|||
|
on a volume. If you want, all files can be stored in the root directory of
|
|||
|
a volume. The root directory is the ″/″ directory that is created when a volume
|
|||
|
is initialized. This root is not considered a directory in the traditional
|
|||
|
sense since it cannot be created or deleted like other directories. The root
|
|||
|
directory will always exist on initialized optical volumes.</p>
|
|||
|
<div class="p">Directories
|
|||
|
can be used to categorize optical files into more manageable subsets. Directories
|
|||
|
can contain files from a particular time period, subject, characteristic,
|
|||
|
or any combination of these. For example, there may be a directory <samp class="codeph">SPOOLFILES</samp> with
|
|||
|
subdirectories <samp class="codeph">YEAR_1994</samp> and <samp class="codeph">YEAR_1995</samp>.
|
|||
|
Taking this one step further, there could be subdirectories within these subdirectories
|
|||
|
named <samp class="codeph">MONTH_MARCH</samp> and <samp class="codeph">MONTH_APRIL</samp>. See the
|
|||
|
following for an example of this structure:<pre>/SPOOLFILES /YEAR_1994 /MONTH_MARCH
|
|||
|
86 Optical Support V5R3
|
|||
|
|
|
|||
|
|
|
|||
|
/MONTH_APRIL /YEAR_1995 /MONTH_MARCH /MONTH_APRIL</pre>
|
|||
|
In this example,
|
|||
|
the following are the fully qualified directory names:<pre>/SPOOLFILES
|
|||
|
/SPOOLFILES/YEAR_1994
|
|||
|
/SPOOLFILES/YEAR_1994/MONTH_MARCH
|
|||
|
/SPOOLFILES/YEAR_1994/MONTH_APRIL
|
|||
|
/SPOOLFILES/YEAR_1995
|
|||
|
/SPOOLFILES/YEAR_1995/MONTH_MARCH
|
|||
|
/SPOOLFILES/YEAR_1995/MONTH_APRIL</pre>
|
|||
|
</div>
|
|||
|
<p>Directories can be useful
|
|||
|
when categorizing files, but they are not necessary. Like volume names, directory
|
|||
|
names must be unique within the same volume. For example, volume VOL001 cannot
|
|||
|
have two directories named DIR001. Volume VOL001 can, however, have a DIR001
|
|||
|
directory and a DIR000/DIR001 directory. Also, a DIR001 directory can exist
|
|||
|
on volume VOL001 and volume VOL002. For information about directory
|
|||
|
naming conventions, see <a href="rzau8pathnames.htm">Path names</a>.</p>
|
|||
|
</div>
|
|||
|
<div class="section"><h4 class="sectiontitle">File considerations</h4><p>The size of optical files depends
|
|||
|
almost entirely on the requirements of the application and the users of those
|
|||
|
files. The size of an optical file (accessible through HFS or the integrated
|
|||
|
file system) can range from 0 bytes to 4 294 705 152 bytes
|
|||
|
depending on the capacity of a volume. The physical size of the target piece
|
|||
|
of media is limited by the amount of free space available.</p>
|
|||
|
<div class="p">When selecting
|
|||
|
optimal file sizes for your application, pay special attention to the following
|
|||
|
considerations:<ul><li>The amount of system disk unit or main storage on the iSeries™ server</li>
|
|||
|
<li>How the data will be read (sequentially or randomly)</li>
|
|||
|
<li>Whether the entire file will typically be retrieved, or just a small portion</li>
|
|||
|
<li>Whether files will be updated once they are written to the volume</li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
<p>Generally, the larger the file, the better the performance and
|
|||
|
media use. When larger files are used, less media space is taken up by file
|
|||
|
directory information and more is used for actual data. Also, the performance
|
|||
|
related to file size is not a linear comparison. It does not take twice as
|
|||
|
long to write 20 KB of data as it does to write 10 KB of data. Performance
|
|||
|
(KB/second) improves as the amount of data being read or written increases.</p>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div>
|
|||
|
<div class="familylinks">
|
|||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzau8concept.htm" title="Read this topic collection for basic concepts of optical device programming. Basic concepts that are described for optical device programming include the i5/OS optical storage system, integrated file system, hierarchical file system, and considerations for volumes.">Optical device programming concepts</a></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
</html>
|