TSM Server Redefine Tape Library & Drives

From UNIX Systems Administration
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Redefining Tape Library in AIX

  1. Run the following commands and save the output.
    1. tsm> QUERY STATUS (get SERVERNAME value for "<tsm_server_name>")
    2. tsm> QUERY DEVCLASS
    3. tsm> QUERY LIBRARY FORMAT=DETAIL
    4. tsm> QUERY DRIVE FORMAT=DETAIL
    5. tsm> QUERY PATH FORMAT=DETAIL
  2. Run the following commands and save the output:
    1. # lsdev -Cc tape
    2. # lsdev -Cc adsmtape
    3. # lsdev -Cc library
  3. Remove the drive paths:
    1. tsm> DELETE PATH <tsm_server_name> <drive_name> SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=<library_name>
  4. Delete the drive definition:
    1. tsm> DELETE DRIVE <library_name> <drive_name>
  5. Delete the tape library path:
    1. tsm> DELETE PATH <tsm_server_name> <library_name> SRCTYPE=SERVER DESTTYPE=LIBR
  6. Delete the library definition:
    1. tsm> DELETE LIBRARY <library_name>
  7. Delete the OS devices:
    1. Delete the individual drives:
      1. # rmdev -Rdl <rmt#> (from step 2.1)
    2. Delete the library:
      1. # rmdev -Rdl <smc#> (from step 2.3)
  8. Redefine the OS devices:
    1. # cfgmgr -v
  9. Redefine the library definition:
    1. tsm> DEFINE LIBRARY <library_name> LIBTYPE=<library_type> SERIAL=AUTODETECT
  10. Redefine the library path:
    1. tsm> DEFINE PATH <tsm_server_name> <library_name> SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=</dev/smc#>
  11. Redefine the drive definitions:
    1. tsm> DEFINE DRIVE <library_name> <drive_name> SERIAL=AUTODETECT ELEMENT=AUTODETECT
  12. Redefine the drive paths:
    1. tsm> DEFINE PATH <tsm_server_name> <drive_name> SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=<library_name> DEVICE=</dev/rmt#>
  13. Verify the library and paths are online:
    1. tsm> QUERY LIBRARY <library_name> FORMAT=DETAIL
    2. tsm> QUERY DRIVE <library_name> * FORMAT=DETAIL
    3. tsm> QUERY PATH * * FORMAT=DETAIL
  14. Recreate the volume inventory:
    1. CHECKIN LIBVOL <library_name> SEARCH=Y STATUS=SCR CHECKL=BARC
    2. CHECKIN LIBVOL <library_name> SEARCH=Y STATUS=PRI CHECKL=BARC

Further Reading

  1. IBM Tivoli Knowledge Center
  2. IBM Redefining TSM Library and Drives for UNIX OS