Troubleshooting tape changers by cmd line

ISSUE


Is the changer attached? 

/usr/bp/bin/uarchive-scripts/tape.sh scan
tape|scsi|0:0:1:0|HP|Ultrium_5-SCSI|HU1114G023|/dev/nst0
tape|scsi|0:0:2:0|HP|Ultrium_5-SCSI|HU1114G02F|/dev/nst1
changer|scsi|0:0:2:1|HP|MSL_G3_Series|350014380125886bc|/dev/sg16

- OR -

HP MSL G3 Series is the changer in this example:
lsscsi -g
[0:0:0:0] disk 3PARdata VV 3123 /dev/sda /dev/sg0
[0:0:0:1] disk 3PARdata VV 3123 /dev/sdb /dev/sg1
[0:0:0:2] disk 3PARdata VV 3123 /dev/sdc /dev/sg2
[0:0:0:3] disk 3PARdata VV 3123 /dev/sdd /dev/sg3
[0:0:0:4] disk 3PARdata VV 3123 /dev/sde /dev/sg4
[0:0:0:5] disk 3PARdata VV 3123 /dev/sdf /dev/sg5
[0:0:0:6] disk 3PARdata VV 3123 /dev/sdg /dev/sg6
[0:0:0:7] disk 3PARdata VV 3123 /dev/sdh /dev/sg7
[0:0:0:8] disk 3PARdata VV 3123 /dev/sdi /dev/sg8
[0:0:0:9] disk 3PARdata VV 3123 /dev/sdj /dev/sg9
[0:0:0:11] disk 3PARdata VV 3123 /dev/sdk /dev/sg10
[0:0:0:12] disk 3PARdata VV 3123 /dev/sdl /dev/sg11
[0:0:0:13] disk 3PARdata VV 3123 /dev/sdm /dev/sg12
[0:0:0:254] enclosu 3PARdata SES 3123 - /dev/sg13
[0:0:1:0] tape HP Ultrium 5-SCSI Y32W /dev/st0 /dev/sg14
[0:0:2:0] tape HP Ultrium 5-SCSI Y68W /dev/st1 /dev/sg15
[0:0:2:1] mediumx HP MSL G3 Series E.63 /dev/sch0 /dev/sg16
[6:0:30:0] enclosu LSI SAS2X36 0e12 - /dev/sg17
[6:0:43:0] enclosu LSI SAS2X28 0e12 - /dev/sg18
[6:2:0:0] disk LSI MR9260-4i 2.13 /dev/sdn /dev/sg19
[6:2:1:0] disk LSI MR9260-4i 2.13 /dev/sdo /dev/sg20
[7:0:0:0] disk ATA INTEL SSDSC2BW12 DC32 /dev/sdp /dev/sg21
[8:0:0:0] disk ATA INTEL SSDSC2BW12 DC32 /dev/sdq /dev/sg22

Okay, let's load a tape

No tapes in the drive (we need to load one)
/usr/bp/bin/uarchive-scripts/get_barcode.sh driveinfo /dev/sg16
-1,Empty,none
-1,Empty,none

Tapes available in slots:
/usr/bp/bin/uarchive-scripts/get_barcode.sh slotinfo /dev/sg16
Full,none
Full,DD0178L5
Full,DD0176L5
Full,DD0166L5
Full,DD0203L5
Full,DD0201L5
Full,DD0172L5
Full,DD0168L5
Full,DD0205L5
Full,DD0202L5
Full,DD0204L5
Full,DD0170L5
Full,DD0162L5
Full,DD0165L5
Full,DD0164L5
Full,DD0198L5
Full,DD0199L5
Full,DD0139L5
Full,DD0140L5
Full,DD0138L5
Full,DD0196L5
Full,DD0197L5
Full,DD0200L5
Full,DD0136L5

Attempting to load the tape from slot 1
/usr/bp/bin/uarchive-scripts/tape.sh scan
or
Determine changer dev from uarchive log :
0 (14337): Mar 24 12:11:03 : [LOG2] rpcutil.c:154: Executing command: tapedev='/dev/nst1'; changerd ev='/dev/sg16'; mtx -f $changerdev load 1 0

Run command where /dev/nst1 is the changer
mtx -f /dev/nst1 load 1 0

Have more questions?

Contact us

Was this article helpful?
0 out of 0 found this helpful

Provide feedback for the Documentation team!

Browse this section