AIX operating systemsLinux operating systems

DEFINE LIBRARY (Define a ZOSMEDIA library type)

Use this syntax to define a library that represents a TAPE or FILE storage resource that is maintained by Tivoli® Storage Manager for z/OS® Media.

Define a library of type ZOSMEDIA when you want the library to be exclusively managed by Tivoli Storage Manager for z/OS Media. The library appears to the IBM Spectrum Protect™ server as a logical storage device that does not require DRIVE definitions. A PATH definition is required for the server and any storage agents that need access to the ZOSMEDIA library resource.

Privilege class

To issue this command, you must have system privilege or unrestricted storage privilege.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-DEFine LIBRary--library_name--LIBType--=--ZOSMEDIA----------><

Parameters

library_name (Required)
Specifies the name of the library to be defined.
LIBType=ZOSMEDIA (Required)
Specifies that the library type is the ZOSMEDIA which represents a TAPE or FILE storage resource that is maintained by Tivoli Storage Manager for z/OS Media.

Example: Configure a ZOSMEDIA library

The following example shows the steps needed to define and configure a zosmedia library. The configuration includes these components:
  • A server named sahara
  • A library defined as type zosmedia named zebra
  • A z/OS media server named oasis
  • A storage agent named mirage
Define a library named ZEBRA with a library type of ZOSMEDIA:
define library zebra libtype=zosmedia
Define the z/OS media server:
define server oasis serverpassword=sanddune 
hladdress=9.289.19.67 lladdress=1777 
The server requires a path to the library resource managed by Tivoli Storage Manager for z/OS Media:
define path sahara zebra srctype=server 
desttype=library zosmediaserver=oasis
The storage agent requires a path to the library resource managed by Tivoli Storage Manager for z/OS Media:
define path mirage zebra srctype=server 
desttype=library zosmediaserver=oasis