Configure a tape library
With IBM Tivoli Storage Manager (TSM), you must configure a tape library that contains the tape devices for backup and restore operations.
-
Create a TSM node by running the following command:
register node <node-name> <admin-password> userid=admin domain=STANDARD type=NAS
The following command creates a TSM node called node001:
register node node001 password123 userid=admin domain=STANDARD type=NAS
-
Define a data mover for the node you want to back up data from by running the following command:
define datamover <datamover_name> type=NAS hladdress=<backup_accelerator_ip_address> lladdress=<ndmp_port> userid=<ndmp_username> password=<ndmp_password> dataformat=ndmpdump
The following command defines a data mover for node001:
define datamover node001 type=NAS hladdress=10.13.17.117 lladdress=10000 userid=ndmp password=ndmppw dataformat=ndmpdump
-
Define a tape library by running the following command:
def libr <library-name> libtype=scsi
The following command defines a tape library called ISILIB:
def libr ISILIB libtype=scsi autolabel=overwrite shared=no serial=autodetect
-
Define the path for the data mover by running the following command:
define path <data_mover_name> <tape_library> srctype=datamover desttype=library device=<backup_accelerator_library_name>
Specify
device as the name of the device entry for the tape library on the PowerScale cluster.
The following command defines a path for the data mover created in step 2.
define path node001 ISILIB srctype=datamover desttype=library device=mc005
-
Define drives for the tape library by running the following command:
define drive <tape_library> <backup_accelerator_tape_drive> serial=autodetect online=yes element=<tape_element_address>
The following commands defines four tape drives and configures TSM to automatically detect the addresses of the tape drives.
define drive ISILIB tape015 serial=autodetect online=yes element=256
define drive ISILIB tape016 serial=autodetect online=yes element=257
define drive ISILIB tape017 serial=autodetect online=yes element=258
define drive ISILIB tape018 serial=autodetect online=yes element=259
-
Define paths for tape drives by running the following command:
define path <data_mover_name> <path_name> srctype=datamover desttype=drive libr=<tape_library> device=<backup_accelerator_tape_drive>
The following commands define paths for the tape drives defined in the previous step:
define path node001 tape015 srctype=datamover desttype=drive libr=ISILIB device=tape015
define path node001 tape016 srctype=datamover desttype=drive libr=ISILIB device=tape016
define path node001 tape017 srctype=datamover desttype=drive libr=ISILIB device=tape017
define path node001 tape018 srctype=datamover desttype=drive libr=ISILIB device=tape018
-
Label the tape media by running the following command:
label libvol <tape_library> voll=<tape_media_label>
The following commands create labels for the tape media in the tape library:
label libvol ISILIB voll=C90000LA search=yes overwrite=yes labelsource=barcode checkin=scratch
label libvol ISILIB voll=C90001LA search=yes overwrite=yes labelsource=barcode checkin=scratch
label libvol ISILIB voll=C90002LA search=yes overwrite=yes labelsource=barcode checkin=scratch
label libvol ISILIB voll=C90003LA search=yes overwrite=yes labelsource=barcode checkin=scratch
-
Verify that the tape library has been configured accurately by performing the following steps:
-
Verify that the tapes are online by running the following command:
query tape libr=<tape_library>
-
Query the tape media by running the following command:
query libvol libr=<tape_library>
-
Query the path configured to ensure that it is accurate:
query path <data_mover_name>
-
Audit the tape library by running the following command:
Data is not available for the Topic