Configuring Tape Drives in TSM
By: Miles Purdy

Look at the port name column. The last six digits of the port name will match the WWN - when you convert hexadecimal to decimal. So eb03 is 141103.

So therefore, rmt 6 has WWN eb03, or 141103, so this is Frame 1, Row 3. 

Next look in Table X to convert to the frame/row location to an element ID. Follow over and down with the frame and row numbers respectively to get the element ID.

Element Identification Numbers
	Frame 1	Frame 2	Frame 3 	Frame 4	Frame 5	Frame 6	
Row 1	257	269	281	293	305	317	
Row 2	258	270	282	294	306	318	
Row 3	259	271	283	295	307	319	
Row 4	260	272	284	296	308	320	
Row 5	261	273	285	297	309	321	
Row 6	262	274	286	298	310	322	
Row 7	263	275	287	299	311	323	
Row 8	264	276	288	300	312	324	
Row 9	265	277	289	301	313	325	
Row 10	266	278	290	302	314	326	
Row 11	267	278	291	303	315	327	
Row 12	268	280	292	304	316	328	

To correctly define the drives you need the device name and the element ID. Repeat this for all your drives.

So my chart looks like this:

Adapter’s
Physical
Slot	(AIX)
Location
Code	Logical
Adapter
Device	Logical
Tape
Device	WWN	Frame
/ Row	Element
ID	TSM 
Drive	
4	1A-08	fsc0	/dev/rmt6	eb03	F1 R3	259	1	
4	1A-08	fsc0	/dev/rmt7	eb02	F1 R2	258	3	
4	1A-08	fsc0	/dev/rmt8	eb01	F1 R1	257	5	
8	2A-08	fsc1	/dev/rmt9	eb06	F1 R6	262	2	
8	2A-08	fsc1	/dev/rmt10	eb05	F1 R5	261	4	
8	2A-08	fsc1	/dev/rmt11	eb04	F1 R4	260	6	

Number your TSM drives such that each successive drive is on a different fibre adapter.  Notice also, in my case, that each fibre adapter is on a different PCI bus.

And finally my define drive commands to TSM are:
tsm: UNXR>define drive 3584lib LTO_DRV_1 device=/dev/rmt6 element=259 cleanfreq=none       
ANR8404I Drive LTO_DRV_1 defined in library 3584LIB.
tsm: UNXR>define drive 3584lib LTO_DRV_2 device=/dev/rmt9 element=262 cleanfreq=none
ANR8404I Drive LTO_DRV_2 defined in library 3584LIB.
tsm: UNXR>define drive 3584lib LTO_DRV_3 device=/dev/rmt7 element=258 cleanfreq=none
ANR8404I Drive LTO_DRV_3 defined in library 3584LIB.
tsm: UNXR>define drive 3584lib LTO_DRV_4 device=/dev/rmt10 element=261 cleanfreq=none
ANR8404I Drive LTO_DRV_4 defined in library 3584LIB.
tsm: UNXR>define drive 3584lib LTO_DRV_5 device=/dev/rmt8  element=257 cleanfreq=none
ANR8404I Drive LTO_DRV_5 defined in library 3584LIB.
tsm: UNXR>define drive 3584lib LTO_DRV_6 device=/dev/rmt11 element=260 cleanfreq=none
ANR8404I Drive LTO_DRV_6 defined in library 3584LIB.