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

Controlling an HP StorageWorks D2D Backup System using Linux

Page 22 highlights

Controlling an HP StorageWorks D2D Backup System using Linux The HP StorageWorks D2D Backup System appears to the Linux operating system as a 1x8 G2 autoloader and Ultrium tape drive. The robotics within the autoloader can be controlled from the console using a command called MTX. If the MTX utility is not installed, it can be added using the package manager. The complete MTX manual can also be accessed from any Linux console using the command man mtx. The following examples illustrate how to complete common tasks with the HP StorageWorks D2D Backup System. • Verify you are controlling the correct library • Review the media • Load a cartridge into the tape drive • Unload a cartridge from the tape drive • Move a cartridge to the mail slot • Move a cartridge from the mail slot Verify you are controlling the correct library The robotics of the library will be assigned a generic SCSI device file. To discover the device file assigned, use the following command: localhost:~ $ dmesg | grep -A2 -e "1x8 G2 AUTOLDR" -e "MSL G3 Series" For an MSL 2024 library the output will be similar to this: Vendor: HP Model: MSL G3 Series Rev: pc81 Type: Medium Changer ANSI SCSI revision: 03 1:0:0:0: Attached scsi generic sg2 type 8 In this example the device file that has been assigned is sg2. Therefore, the library can be controlled using the device file /dev/sg2. 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: localhost:~ $ mtx -f /dev/sg2 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 also be assigned a generic SCSI device file(s), along with SCSI tape device file(s). To discover the SCSI tape device file(s) assigned, use the following command: localhost:~ $ dmesg | grep -A 4 "Ultrium" 22 Linux (x86, x64 and IA64)

  • 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

Controlling an HP StorageWorks D2D Backup System using
Linux
The HP StorageWorks D2D Backup System appears to the Linux operating system as a 1x8 G2
autoloader and Ultrium tape drive. The robotics within the autoloader can be controlled from the
console using a command called
MTX
. If the
MTX
utility is not installed, it can be added using the
package manager. The complete MTX manual can also be accessed from any Linux console using
the command
man mtx
.
The following examples illustrate how to complete common tasks with the HP StorageWorks D2D
Backup System.
Verify you are controlling the correct library
Review the media
Load a cartridge into the tape drive
Unload a cartridge from the tape drive
Move a cartridge to the mail slot
Move a cartridge from the mail slot
Verify you are controlling the correct library
The robotics of the library will be assigned a generic SCSI device file. To discover the device file
assigned, use the following command:
localhost:~ $ dmesg | grep -A2 —e "1x8 G2 AUTOLDR" –e "MSL G3 Series"
For an MSL 2024 library the output will be similar to this:
Vendor: HP
Model: MSL G3 Series
Rev: pc81
Type:
Medium Changer
ANSI SCSI revision: 03
1:0:0:0: Attached scsi generic sg2 type 8
In this example the device file that has been assigned is
sg2
. Therefore, the library can be controlled
using the device file
/dev/sg2
.
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:
localhost:~ $ mtx –f /dev/sg2 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 also be assigned a generic SCSI device file(s), along with SCSI
tape device file(s). To discover the SCSI tape device file(s) assigned, use the following command:
localhost:~ $ dmesg | grep -A 4 "Ultrium"
Linux (x86, x64 and IA64)
22