This is operating and machine specific, however if you only have the changer
and no other tape devices then Data Transfer Element 0 will usually be
/dev/st0. However if the two tape drives are on two different SCSI buses
then all bets are off. It would depend on which adapter each drive is
attached to and the order that the drivers are started. This in turn could
depend on which PCI slot the adapter is in.
In other words, the only way to tell for sure is load a tape and see where
it appears.
> -----Original Message-----
> From: mtx...@li... [mailto:mtx-general-
> bo...@li...] On Behalf Of ??
> Sent: Tuesday, February 06, 2007 11:07 PM
> To: mtx...@li...
> Subject: [Mtx-general] Relationship between /dev/st? and index of
> datatransfer element
>
> For a tape library has 2 tape drives, the output from mtx status should
> look
> like following:
>
> Storage Changer /dev/sg16:2 Drives, 35 Slots ( 6 Import/Export )
> Data Transfer Element 0:Empty
> Data Transfer Element 1:Empty
> Storage Element 1:Empty:VolumeTag=
> Storage Element 2:Empty:VolumeTag=
> Storage Element 3:Empty:VolumeTag=
> <snip>
>
> and there should exist st0 and st1 under /dev directory.
>
> My problem is:
> How do I know that which st path the "Data Transfer Element 0" points to?
> /dev/st0 or /dev/st1?
> And is there any rule between the output of mtx status and st path can I
> follow?
> Or I must load a tape to any drive, then execute mtx status again to
> acquire
> the information I need?
>
> Thanks for any reply.
>
>
|