UPDATE LIBRARY (Update a SCSI library)
Use this syntax to update a SCSI library.
Privilege class
To issue this command, you must have system privilege or unrestricted storage privilege.
Syntax
Parameters
- library_name (Required)
- Specifies the name of the library to be updated.
- LIBType (Required)
- Specifies the library type that you want to update to. Possible
values are:
- VTL
- Specifies that the library has a SCSI-controlled media changer
device that is represented by a Virtual Tape Library. To mount volumes
on drives in this type of library, IBM
Storage Protect uses the
media changer device. This value is effective when specified for libraries
with a current library type of SCSI.Note: Selecting the VTL library type assumes that the following conditions are true:
- Your environment does not include mixed-media
- Paths are defined between all drives in the library and all defined servers, including storage agents, that use the library
- SCSI
- Specifies that the library has a SCSI-controlled media changer device. To mount volumes on drives in this type of library, IBM Storage Protect uses the media changer device. This value is effective when specified for libraries with a current library type of VTL.
- SHAREd
- Specifies that this library is shared with other servers in a storage area network (SAN). You
must issue this command from the server defined as the primary library manager for the shared
library. This parameter is required for libraries defined to a library manager and for libraries
used for NDMP operations. Specify SHARED=YES to update a library that is not currently shared. Important: If a library has a path from a data mover (such as a NAS file server) but no connection to the server, the library cannot be shared with another server.
- RESETDrives
- Specifies whether the server preempts a drive reservation if the drive is already reserved by
persistent reserve when the server tries to access the drive.

If the drive
is reserved by a SCSI-2 reserve, (and not by persistent reserve), the server uses a LUN reset to
break the drive reservation to access the target device.
LUN resets are not
supported by the Linux® operating system. If a drive is
reserved by a SCSI-2 reserve, (and not by persistent reserve), the server is unable to break the
reservation to access the drive. In this case, you can break the reservation by power cycling the
device.For Network-Attached Storage (NAS) devices, reservation is controlled by the NAS file server. IBM Storage Protect does not control NAS devices and the RESETDrives parameter is not relevant for NAS devices.
Support for persistent reserve has the following limitations:- If you are using the IBM Storage Protect device driver, persistent reserve is supported only on some tape drives. For details, see Technote 1470319.
- If you are using the IBM® device driver, persistent reserve must be enabled at the device driver level. For information about driver configuration, see the IBM Tape Device Drivers Installation and User's Guide.
- If you are using a virtual tape library that is emulating a supported drive, persistent reserve might not be supported.

- Yes
- Specifies that drive preemption through persistent reserve or target reset is used.
- No
- Specifies that drive preemption through persistent reserve or target reset is not used. The RESETDrives parameter must be set to YES in a clustered environment when SHARED=NO.
- Yes
- Specifies that drive preemption through persistent reserve is used.
- No
- Specifies that drive preemption through persistent preserve is not used.
- AUTOLabel
- Specifies whether the server attempts to automatically label tape
volumes.
To use this option, you must check in the tapes with CHECKLABEL=BARCODE on the CHECKIN LIBVOLUME command.
- No
- Specifies that the server does not attempt to label any volumes.
- Yes
- Specifies that the server only labels unlabeled volumes.
- OVERWRITE
- Specifies that the server attempts to overwrite an existing label. The server overwrites existing labels only if both the existing label and the bar code label are not already defined in any server storage pool or volume history list.
- SERial
- Specifies the serial number for the library being updated. This
parameter is optional. The possible values are:
- serial_number
- Specifies the serial number for the library being updated.
If a path to this library has already been defined, then the number you enter here is compared to the number detected by IBM Storage Protect. If the numbers do not match, the command fails. If a path has not been defined, this serial number is verified when a path is defined.
- AUTODetect
- Specifies that the serial number is automatically detected and
used by IBM
Storage Protect if
a path has already been defined to this library.
If a path to this library has not been defined, then the serial number is not detected.
- RELABELSCRatch
- Specifies whether the server relabels volumes that have been deleted
and returned to scratch. When this parameter is set to YES, a LABEL
LIBVOLUME operation is started and the existing volume label is overwritten.
This parameter is optional and intended for use with a Virtual Tape
Library (VTL).Note: If you have both virtual and real volumes in your VTL, both types are relabeled when this parameter is enabled. If the VTL includes real volumes, specifying this option might affect performance.
- No
- Specifies that the server does not relabel volumes that are deleted and returned to scratch.
- Yes
- Specifies that the server relabels volumes that are deleted and returned to scratch.
