TSM Server Redefine Tape Library & Drives
Jump to navigation
Jump to search
Redefining Tape Library in AIX
- Run the following commands and save the output.
- tsm> QUERY STATUS (get SERVERNAME value for "<tsm_server_name>")
- tsm> QUERY DEVCLASS
- tsm> QUERY LIBRARY FORMAT=DETAIL
- tsm> QUERY DRIVE FORMAT=DETAIL
- tsm> QUERY PATH FORMAT=DETAIL
- Run the following commands and save the output:
- # lsdev -Cc tape
- # lsdev -Cc adsmtape
- # lsdev -Cc library
- Remove the drive paths:
- tsm> DELETE PATH <tsm_server_name> <drive_name> SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=<library_name>
- Delete the drive definition:
- tsm> DELETE DRIVE <library_name> <drive_name>
- Delete the tape library path:
- tsm> DELETE PATH <tsm_server_name> <library_name> SRCTYPE=SERVER DESTTYPE=LIBR
- Delete the library definition:
- tsm> DELETE LIBRARY <library_name>
- Delete the OS devices:
- Delete the individual drives:
- # rmdev -Rdl <rmt#> (from step 2.1)
- Delete the library:
- # rmdev -Rdl <smc#> (from step 2.3)
- Delete the individual drives:
- Redefine the OS devices:
- # cfgmgr -v
- Redefine the library definition:
- tsm> DEFINE LIBRARY <library_name> LIBTYPE=<library_type> SERIAL=AUTODETECT
- Redefine the library path:
- tsm> DEFINE PATH <tsm_server_name> <library_name> SRCTYPE=SERVER DESTTYPE=LIBRARY DEVICE=</dev/smc#>
- Redefine the drive definitions:
- tsm> DEFINE DRIVE <library_name> <drive_name> SERIAL=AUTODETECT ELEMENT=AUTODETECT
- Redefine the drive paths:
- tsm> DEFINE PATH <tsm_server_name> <drive_name> SRCTYPE=SERVER DESTTYPE=DRIVE LIBRARY=<library_name> DEVICE=</dev/rmt#>
- Verify the library and paths are online:
- tsm> QUERY LIBRARY <library_name> FORMAT=DETAIL
- tsm> QUERY DRIVE <library_name> * FORMAT=DETAIL
- tsm> QUERY PATH * * FORMAT=DETAIL
- Recreate the volume inventory:
- CHECKIN LIBVOL <library_name> SEARCH=Y STATUS=SCR CHECKL=BARC
- CHECKIN LIBVOL <library_name> SEARCH=Y STATUS=PRI CHECKL=BARC