top of page
Writer's pictureTSMTechies

Library Management – Tivoli Storage Manager

Updated: Oct 20, 2023

Library Management – Tivoli Storage Manager:

Before define the Tape Drives to the TSM Server, we need get the Element address of those Tape Drives. See the below process to obtain the Element address

Match Tape Drive Addresses to the Correct Element Numbers

  1. Before defining the tape drives in TSM, you must first match tape drive addresses (rmtx device numbers – where x is the number of the rmt device) to correct element numbers (i.e. 257, 258). The procedure you follow depends on the environment. Following is the procedure for a SAN environment:First, make sure no tapes are mounted in any of the drives: ==> tapeutil -f /dev/smc0 inventory | more (or you may direct output to a file).

  2. Look for the stanzas that start with ‘Drive address’ and see if the ‘Media Present’ is set to yes or no. No means no tape is mounted in the drive. Make sure all drive element numbers say No

  3. Next, pick a tape from one of the ‘slot elements’ from the output of the previous command that says ‘Media Present’ is Yes. Let’s say that the slot element address 1026 shows media present is yes. You can now move this tape to the first drive’s element address (for this example we’ll use drive element address 257). ==> tapeutil -f /dev/smc0 move 1026 257

  4. Run the tctl offl command on all of the drives until one of them works (comes back to the command prompt without error) – this means you now have a match with that drive element address and the rmt drive: ==> tctl -f /dev/rmt5 offline

  5. Now that you have a match, move the tape to the next drive element number (element address 258) and then repeat steps # ii and # iii until you have determined that all of the rmt drive/element numbers match. ==> tapeutil -f /dev/smc0 move 257 258

  6. When you’ve completed this procedure, you’ll have both the rmtx device number matched to the drive address/element number (i.e. rmt1 – 274, rmt2 – 273, rmt3 – 272, rmt4 – 271, and so on) Note: Coordinate this effort with the SA to ensure you both agree on the match of rmtx device numbers to element numbers before defining them in TSM.

  7. To have the library auto-detect the Serial Numbers and Element Address. You can perform the following steps. After the library is defined.

  8. def drive <library name> <drive number> ser=autod elem=autod online=yes (repeat for all drives)

  9. def path <servername> <drivename> srct=server destt=drive libr=<libraryname> autod=yes devi=/dev/rmtX <- rmt number.

  10. Define the tape drives: def drive <library name> <drive number> online=yes element=<address number>

  11. Define the path to each of the drives: def path <servername> <drive number> srct=servername destt=drive libr=<libraryname> devi=/dev/rmtx online=yes

  12. FOR 3494 Tape Libraries ONLY: If you get an error: Library Offline to Host, Make sure you have added the hostname to the library manager host name list. (This is done on the library, make sure you use lowercase letters when entering in the hostname, you will also need the hosts IP address). If you have more than one address / adapter, you will need to enter them all.

  13. Define the TSM Database Device Class to TSM. Def devc <devclassname> devt=lto libr=<librarayname> (3584LIB)

  14. Load all the tapes into the library manually. Once you have loaded the tapes the library will perform an audit. If it does not do this, you can issue a manual audit on the library.

  15. Once the label libv has completed, you can do a q libv to confirm all the tapes that you entered were in fact picked up and entered. You can also issue Select count(*) from libvolumes for the total number of tapes checked in.

*EOD


Recent Posts

See All

Comments


IT solutions to achieve operational excellence

bottom of page