AIX operating systemsLinux operating
systems

Example: Library sharing for AIX and Linux servers

To learn how to set up a SCSI library sharing environment for servers that run on AIX® or Linux® systems, review the sample procedure.

About this task

In this example, a library manager server named ASTRO and a library client named JUDY are configured. To help clarify where each step is performed, the commands are preceded by the server name from which the command is issued. Most commands are issued from the library client.

For SCSI libraries, define the library by specifying the libtype=scsi parameter.

Procedure

  1. To set up ASTRO as the library manager server, define a shared SCSI library named SANGROUP.
    For example:
    astro> define library sangroup libtype=scsi shared=yes
    Then complete the rest of the steps as described in Example: Configure a SCSI or virtual tape library with a single drive device type to configure the library.
    Tip: You can use the PERFORM LIBACTION command to define drives and paths for a library in one step.
  2. Define ASTRO as the library manager server by issuing the DEFINE SERVER command.
    judy> define server astro serverpassword=secret hladdress=192.0.2.24 
     lladdress=1777 crossdefine=yes
  3. Define the shared library SANGROUP by issuing the DEFINE LIBRARY command. You must use the library manager server name in the PRIMARYLIBMANAGER parameter, and use LIBTYPE=SHARED.
    judy> define library sangroup libtype=shared primarylibmanager=astro
    Ensure that the library name is the same as the library name on the library manager.
  4. Define paths from the library manager, ASTRO, to two drives in the shared library by issuing the DEFINE PATH command.
    AIX operating systems
    astro> define path judy drivea srctype=server desttype=drive 
     library=sangroup device=/dev/rmt6
    astro> define path judy driveb srctype=server desttype=drive 
     library=sangroup device=/dev/rmt7
    Linux operating
systems
    astro> define path judy drivea srctype=server desttype=drive 
     library=sangroup device=/dev/IBMtape6
    astro> define path judy driveb srctype=server desttype=drive 
     library=sangroup device=/dev/IBMtape7
  5. Define all device classes that are associated with the shared library.
    AIX operating systems
    judy> define devclass tape library=sangroup devtype=lto
    
    Linux operating
systems
    judy> define devclass tape library=sangroup devtype=lto
    
    The following parameters for the device class definition must be the same on the library client and the library manager:
    • LIBRARY
    • DRIVEENCRYPTION
    • WORM
    • FORMAT
  6. Define a storage pool that is named BACKTAPE for the shared library to use. Issue the DEFINE STGPOOL command.
    judy> define stgpool backtape tape maxscratch=50

What to do next

Repeat the procedure to define more library clients to your library manager.