HP D2D HP StorageWorks Linux and UNIX configuration guide for D2D Backup Syste - Page 49

Verify you are controlling the correct library

Page 49 highlights

Verify you are controlling the correct library The robotics of the library will be assigned a SCSI device file. To discover the device file assigned, use the following command: # ls /dev/scsi/changer The response will the name of the device file. e.g. c3t1d0.Therefore, the library can be controlled using the device file /dev/scsi/changer/c3t1d0. To verify the device file for the robotics of the library To verify the correct device file has been determined, the following command should be used: # mtx -f /dev/scsi/changer/c3t1d0 inquiry The output for an MSL 2024 library should be: Product Type: Medium Changer Vendor ID: 'HP ' Product ID: 'MSL G3 Series ' Revision: 'pc81' Attached Changer: No To verify the tape device file for the tape drive The tape drive(s) of the library will be assigned SCSI tape device files. To discover the SCSI tape device files assigned, use the following command: ls /dev/rmt/*cb The output will be a list of device files for each configured tape drive. e.g. /dev/rmt/2cb. In this example the SCSI tape device file that has been assigned is 2cb. To verify the tape device file for the tape drive, the MT command should be used: # mt -f /dev/rmt/2cb status The output should be: HP Ultrium LTO 3 tape drive: sense key(0x6)= Unit Attention file no= 0 block no= 0 residual= 0 retries= 0 This indicates that the tape drive files are valid but no media is loaded into the drive. Reviewing the media in a library To verify the contents of the media slots within a library, the following command should be used: # mtx -f /dev/scsi/changer/c3t1d0 status The output for a MSL 2024 library with 1 tape drive and 24 cartridges configured would look similar to this: Storage Changer /dev/scsi/changer/c3t1d0:1 Drives, 24 Slots ( 1 Import/Export ) Data Transfer Element 0:Empty Storage Element 1:Full :VolumeTag=72255101 Storage Element 2:Full :VolumeTag=72255102 D2D Backup System 49

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52

Verify you are controlling the correct library
The robotics of the library will be assigned a SCSI device file. To discover the device file assigned,
use the following command:
# ls /dev/scsi/changer
The response will the name of the device file. e.g. c3t1d0.Therefore, the library can be controlled
using the device file
/dev/scsi/changer/c3t1d0
.
To verify the device file for the robotics of the library
To verify the correct device file has been determined, the following command should be used:
# mtx –f /dev/scsi/changer/c3t1d0 inquiry
The output for an MSL 2024 library should be:
Product Type: Medium Changer
Vendor ID: ‘HP
Product ID: ‘MSL G3 Series
Revision: ‘pc81’
Attached Changer: No
To verify the tape device file for the tape drive
The tape drive(s) of the library will be assigned SCSI tape device files. To discover the SCSI tape
device files assigned, use the following command:
ls /dev/rmt/*cb
The output will be a list of device files for each configured tape drive. e.g.
/dev/rmt/2cb
.
In this example the SCSI tape device file that has been assigned is
2cb
. To verify the tape device file
for the tape drive, the
MT
command should be used:
# mt -f /dev/rmt/2cb status
The output should be:
HP Ultrium LTO 3 tape drive:
sense key(0x6)= Unit Attention
residual= 0
retries= 0
file no= 0
block no= 0
This indicates that the tape drive files are valid but no media is loaded into the drive.
Reviewing the media in a library
To verify the contents of the media slots within a library, the following command should be used:
# mtx –f /dev/scsi/changer/c3t1d0 status
The output for a MSL 2024 library with 1 tape drive and 24 cartridges configured would look similar
to this:
Storage Changer /dev/scsi/changer/c3t1d0:1 Drives, 24 Slots
( 1 Import/Export )
Data Transfer Element 0:Empty
Storage Element 1:Full :VolumeTag=72255101
Storage Element 2:Full :VolumeTag=72255102
D2D Backup System
49