Install Atape and tapeutil control media AIX

** Myself
เป็น เรื่องเกียวกับการต่อ tape drive เช่น autoloader เข้ากับ AIX server ซึ่งสามารถใช้กับ library ตัวอื่นก็ได้ครับ เป็นแบบ คร่าวๆ
For connect tape drive example autoloader connect with AIX server and shared tape library that use tapeutil for control arm robot and tape drive

On Tape library
drive empty--> enter-->go offline-->commands-->enter--> import-->enter --> import slot --> enter-->go online-->enter

On AIX
Install Atape
installp -acXd /dev/cd0 Atape.driver




--or--
smitty installp
--or—
smitty install -->install
--> atape*.bin-->agree license
Check tape and robot path scsi

tapeutil -f /dev/smc0 path
tapeutil -f /dev/rmt0 path

Check tape support gen(by manual load tape to drive which is loaded to drive)
tapeutil -f /dev/rmt0 density
Issuing Report Density Support for ALL supported media...
Total number of densities reported: 2

  Density Name................. U-18
  Assigning Organization....... LTO-CVE
  Description.................. Ultrium 1/8T
  Primary Density Code......... 40
  Secondary Density Code....... 40
  Write OK..................... Yes
  Duplicate.................... No
  Default...................... Yes
  Bits per MM.................. 4880
  Media Width.................. 127
  Tracks....................... 384
  Capacity (megabytes)......... 95367

  Density Name................. U-28
  Assigning Organization....... LTO-CVE
  Description.................. Ultrium 2/8T
  Primary Density Code......... 42
  Secondary Density Code....... 42
  Write OK..................... Yes
  Duplicate.................... No
  Default...................... Yes
  Bits per MM.................. 7398
  Media Width.................. 127
  Tracks....................... 512
  Capacity (megabytes)......... 190734

Issuing Report Density Support for CURRENT media...
Operation failed with errno 46: Device not ready

Error Sense Data,  Length 36

            0 1  2 3  4 5  6 7  8 9  A B  C D  E F   0123456789ABCDEF
    0000 - 7000 0200 0000 001C 0000 0000 3A00 3000  [p...........:.0.]
    0010 - 1013 0000 0000 2020 2020 2020 2000 0000  [......       ...]
    0020 - 0000 E001                                [..เ.            ]

Check tape and robot status
# tapeutil -f /dev/smc0 elementinfo
Getting element information...

  Number of Robots .............. 1
  First Robot Address ........... 82
  Number of Slots ............... 8
  First Slot Address ............ 1
  Number of Import/Exports ...... 0
  Number of Drives .............. 1
  First Drive Address ........... 86

Move tape slot 1 to drive 86(First Drive address
# tapeutil -f /dev/smc0 move 1 86
Moving medium: source 1, destination 86.

Move tape to slot 5 from drive
# tapeutil -f /dev/smc0 unmount  5
Unloading medium to slot 5...

0 comments:

Loading