Administrator's Reference
Use the DEFINE DRIVE command to define a drive that ADSM can use to access
data on storage volumes. Each drive is assigned to a single library,
which must be defined prior to issuing this command. You can define
more than one drive for a given library by issuing the DEFINE DRIVE command
once for each drive.
| Note: | Stand-alone drives always require a manual-type library.
|
The server options file that is created during installation includes a
DEVCONFIG option that specifies a default device configuration file named
devcnfg.out. You can specify other device configuration files
with additional DEVCONFIG options. When you use this option in the
dsmserv.opt file, the files specified are automatically updated
whenever a device class, library, or drive is selected, updated, or
deleted.
For additional information, see ADSM Administrator's
Guide.
Privilege Class
To issue this command, you must have system privilege or unrestricted
storage privilege.
Syntax
>>-DEFine DRive--libname--drivename---DEVIce--=--devicename----->
.-ONLine--=--Yes------.
>---+---------------------+------------------------------------->
'-ONLine--=--+-Yes-+--'
'-No--'
>----+---------------------------------+------------------------>
| (1) |
'-ELEMent--=--elementaddress------'
>---+---------------------------+------------------------------><
| (2) |
'-ACSDRVID--=--driveid------'
1
| The ELEMENT parameter is required for drives in SCSI libraries that
support more than one drive and is optional for SCSI libraries that support
only one drive. This parameter is invalid for drives in non-SCSI
libraries. For additional information, see ADSM
Administrator's Guide.
|
2
| ACSDRVID is required for drives in ACSLS libraries. This parameter
is not valid for non-ACSLS libraries.
|
Parameters
- libname
- Specifies the name of the library to which the drive is assigned.
This parameter is required for all drives, including stand-alone
drives. The specified library must have been previously defined by
using the DEFINE LIBRARY command.
- drivename
- Specifies the name assigned to the drive. This parameter is
required. The maximum length of this name is 30 characters.
- DEVIce=devicename
- Specifies the name of the device (that is, the special file name) that
corresponds to the drive. For example, you might specify /dev/mt2 or
/dev/rop2. This parameter is required.
Important:
- For 3480, 3490, 3590 and generictape tape drives you must specify the name
that has the form /dev/rmtX (where X is the number of the drive).
- For 4mm, 8mm, DLT, and QIC tape drives, you must specify the device name
that has the form /dev/mtX (where X is the number of the drive).
Do not enter a device name that has the form /dev/rmtX.
- For optical drives, you must specify the device name that has the form
/dev/ropX (where X is the number of the drive). Do not enter
a device name that has the form /dev/opX.
- For STK tape libraries controlled by STK Automated Cartridge System
Library Software (ACSLS) you must specify the device name that has the form
/dev/mt<n> ACSDRVID=drive_id.
- ONLine=Onlinevalue
- Specifies the drive to be available for use. This parameter is
optional. The default is YES.
- YES
- Specifies that a particular drive is to be available for use.
- No
- Specifies that a particular drive will not be online.
- ELEMent=elementaddress
- Specifies the element address of the drive. The ELEMENT parameter
is required for drives in SCSI libraries that support more than one drive; it
is optional for SCSI libraries that support only one drive. This
parameter is invalid for drives in non-SCSI libraries. The element
address is a number that indicates the physical location of a drive within an
automated library. ADSM needs the element address to connect the
physical location of the drive to the drive's SCSI address. For a
description of which element address values to use for various library
configurations, see ADSM Administrator's Guide.
- ACSDRVID=driveid
- Specifies the drive id of the drive being accessed. This drive id
must be specified as a,l,p,d, where a is the acsid, l is the LSM (library
storage module), p is the panel number, and d is the driveid. The drive
id is a set of numbers that indicates the physical location of a drive within
an ACSLS library. ADSM needs the drive id to connect the physical
location of the drive to the drive's SCSI address.
Examples
Task 1
Suppose you have already defined a manual tape library named MANLIB by
using the DEFINE LIBRARY command. You then wish to inform the server
that you have a tape drive that can be used to access storage media.
You choose the name TAPEDRIVE3 for this drive.
- Command:
- define drive manlib tapedrive3 device=/dev/mt0
Task 2
Define a drive in an ACSLS library with a library name of ACSLIB and a
drive name of ACSDRV1 .
- Command:
- define drive acslib acsdrv1 device=/dev/mt0
ACSDRVID=1,2,3,4
Related Commands
Table 51. Commands Related to DEFINE DRIVE
| Command
| Description
|
| DEFINE LIBRARY
| Defines an automated or manual library.
|
| DELETE LIBRARY
| Deletes a library.
|
| QUERY DRIVE
| Displays information about one or more drives.
|
| QUERY LIBRARY
| Displays information about one or more libraries.
|
| UPDATE DRIVE
| Changes the attributes of a drive.
|
[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]