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

Loading a cartridge into a library tape drive, Moving a cartridge to the library Mail Slot

Page 24 highlights

Loading a cartridge into a library tape drive To load a cartridge into the tape drive, the mtx load command should be used. For example, to move a cartridge from slot 2 to the first tape drive the command would be: localhost:~ $ mtx -f /dev/sg2 load 2 0 Unloading a cartridge from a library tape drive To unload a cartridge and place it in a storage slot, the mtx unload command should be used. For example, to unload a cartridge from the first tape drive and place it in to storage slot 2, the command would be: localhost:~ $ mtx -f /dev/sg2 unload 2 0 Moving a cartridge to the library Mail Slot To move a cartridge to the mail slot for exporting to an attached tape drive, the mtx transfer command should be used. For example, to move the cartridge in slot 1 to the mail slot 25, the following command should be used: localhost:~ $ mtx -f /dev/sg2 transfer 1 25 Moving a cartridge from the library Mail Slot To move a cartridge from the mail slot following an import from an attached tape drive, the mtx transfer command should be: localhost:~ $ mtx -f /dev/sg2 transfer 25 1 Backup and restore files using TAR in Linux This section describes how to perform a simple backup and recovery of files to an HP StorageWorks D2D Backup System using the console applications; MTX and TAR. In the examples, the autoloader robotics is controlled using generic SCSI device file sg2 and the autoloader tape drive uses tape device file st0. The file to be backed up and restored is the Linux kernel. 24 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

Loading a cartridge into a library tape drive
To load a cartridge into the tape drive, the
mtx load
command should be used. For example, to
move a cartridge from slot 2 to the first tape drive the command would be:
localhost:~ $ mtx –f /dev/sg2 load 2 0
Unloading a cartridge from a library tape drive
To unload a cartridge and place it in a storage slot, the
mtx unload
command should be used.
For example, to unload a cartridge from the first tape drive and place it in to storage slot 2, the
command would be:
localhost:~ $ mtx –f /dev/sg2 unload 2 0
Moving a cartridge to the library Mail Slot
To move a cartridge to the mail slot for exporting to an attached tape drive, the
mtx transfer
command should be used. For example, to move the cartridge in slot 1 to the mail slot 25, the following
command should be used:
localhost:~ $ mtx –f /dev/sg2 transfer 1 25
Moving a cartridge from the library Mail Slot
To move a cartridge from the mail slot following an import from an attached tape drive, the
mtx
transfer
command should be:
localhost:~ $ mtx –f /dev/sg2 transfer 25 1
Backup and restore files using TAR in Linux
This section describes how to perform a simple backup and recovery of files to an HP StorageWorks
D2D Backup System using the console applications;
MTX
and
TAR
. In the examples, the autoloader
robotics is controlled using generic SCSI device file
sg2
and the autoloader tape drive uses tape
device file
st0
. The file to be backed up and restored is the Linux kernel.
Linux (x86, x64 and IA64)
24