Defining all drives and paths for a single library

Use the PERFORM LIBACTION command to set up a single SCSI or virtual tape library (VTL) in one step.

About this task

If you are setting up or modifying your hardware environment and must create or change large numbers of drive definitions, the PERFORM LIBACTION command can make this task much simpler. You can define a new library and then define all drives and paths to the drives. Or, if you have an existing library that you want to delete, you can delete all existing drives and their paths in one step.

Use the PREVIEW parameter to view the output of commands before they are processed to verify the action that you want to perform. If you are defining a library, a path to the library must already be defined if you want to specify the PREVIEW parameter. You cannot use the PREVIEW and DEVICE parameters together.

The PERFORM LIBACTION command can be used only for SCSI and VTL libraries. If you are defining drives and paths for a library, the SANDISCOVERY option must be supported and enabled. The tape library must be able to return the drive serial number address association.

Procedure

To set up a VTL library named ODIN, complete these steps:

  1. Define the library.
    define library odin libtype=vtl
  2. Define two drives and their paths for your new library, ODIN.
    AIX operating systems
    perform libaction odin action=define device=/dev/lb3 prefix=dr
    The server then issues the following commands:
    define path tsmserver odin srct=server destt=library device=/dev/
     lb3 define drive odin dr0
    define path tsmserver dr0 srct=server destt=drive library=odin 
     device=/dev/mt1 define drive odin dr1
    define path tsmserver dr1 srct=server destt=drive library=odin 
     device=/dev/mt2
    Linux operating systems
    perform libaction odin action=define device=/dev/tsmscsi/lb3 prefix=dr
    The server then issues the following commands:
    define path tsmserver odin srct=server destt=library device=/dev/tsmscsi/lb3
     define drive odin dr0
    define path tsmserver dr0 srct=server destt=drive library=odin 
     device=/dev/tsmscsi/mt1 define drive odin dr1
    define path tsmserver dr1 srct=server destt=drive library=odin 
     device=/dev/tsmscsi/mt2
    Windows operating systems
    perform libaction odin action=define device=lb0.0.0.2 prefix=dr
    The server then issues the following commands:
    define path tsmserver odin srct=server destt=library device=lb0.0.0.2
     define drive odin dr0
    define path tsmserver dr0 srct=server destt=drive library=odin 
     device=mt0.1.0.2 define drive odin dr1
    define path tsmserver dr1 srct=server destt=drive library=odin 
     device=mt0.2.0.2