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

Back up the Linux kernel, Move the cartridge from slot 1 to the first tape drive.

Page 25 highlights

Back up the Linux kernel 1. Check to see what media is available. localhost:~ $ mtx -f /dev/sg2 status Storage Changer /dev/sg2:1 Drives, 24 Slots ( 1 Import/Export ) Data Transfer Element 0:Empty Storage Element 1:Full :VolumeTag=72255101 Storage Element 2:Full :VolumeTag=72255102 Storage Element 3:Full :VolumeTag=72255103 Storage Element 4:Full :VolumeTag=72255104 Storage Element 5:Full :VolumeTag=72255105 Storage Element 6:Full :VolumeTag=72255106 Storage Element 7:Full :VolumeTag=72255107 Storage Element 8:Full :VolumeTag=72255108 Storage Element 9:Full :VolumeTag=72255109 Storage Element 10:Full :VolumeTag=72255110A Storage Element 11:Full :VolumeTag=72255110B Storage Element 12:Full :VolumeTag=72255110C Storage Element 13:Full :VolumeTag=72255110D Storage Element 14:Full :VolumeTag=72255110E Storage Element 15:Full :VolumeTag=72255110F Storage Element 16:Full :VolumeTag=722551110 Storage Element 17:Full :VolumeTag=722551111 Storage Element 18:Full :VolumeTag=722551112 Storage Element 19:Full :VolumeTag=722551113 Storage Element 20:Full :VolumeTag=722551114 Storage Element 21:Full :VolumeTag=722551115 Storage Element 22:Full :VolumeTag=722551116 Storage Element 23:Full :VolumeTag=722551117 Storage Element 24:Full :VolumeTag=722551118 Storage Element 25 IMPORT/EXPORT:Empty 2. Move the cartridge from slot 1 to the tape drive. localhost:~ $ mtx -f /dev/sg2 load 1 0 3. Ensure you are in the root directory. localhost:~ $ cd / 4. Back up the Linux kernel using tar. localhost:~ $ tar cvf /dev/st2 ./boot/vmlinux* 5. Move the cartridge back to slot 1. localhost:~ $ mtx -f /dev/sg2 unload 1 0 Restore the Linux kernel 1. Move the cartridge from slot 1 to the first tape drive. localhost:~ $ mtx -f /dev/sg2 load 1 0 2. Create a temporary folder to restore the backup into. localhost:~ $ mkdir temp localhost:~ $ cd /temp D2D Backup System 25

  • 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

Back up the Linux kernel
1.
Check to see what media is available.
localhost:~ $ mtx –f /dev/sg2 status
Storage Changer /dev/sg2:1 Drives, 24 Slots
( 1 Import/Export )
Data Transfer Element 0:Empty
Storage Element 1:Full :VolumeTag=72255101
Storage Element 2:Full :VolumeTag=72255102
Storage Element 3:Full :VolumeTag=72255103
Storage Element 4:Full :VolumeTag=72255104
Storage Element 5:Full :VolumeTag=72255105
Storage Element 6:Full :VolumeTag=72255106
Storage Element 7:Full :VolumeTag=72255107
Storage Element 8:Full :VolumeTag=72255108
Storage Element 9:Full :VolumeTag=72255109
Storage Element 10:Full :VolumeTag=72255110A
Storage Element 11:Full :VolumeTag=72255110B
Storage Element 12:Full :VolumeTag=72255110C
Storage Element 13:Full :VolumeTag=72255110D
Storage Element 14:Full :VolumeTag=72255110E
Storage Element 15:Full :VolumeTag=72255110F
Storage Element 16:Full :VolumeTag=722551110
Storage Element 17:Full :VolumeTag=722551111
Storage Element 18:Full :VolumeTag=722551112
Storage Element 19:Full :VolumeTag=722551113
Storage Element 20:Full :VolumeTag=722551114
Storage Element 21:Full :VolumeTag=722551115
Storage Element 22:Full :VolumeTag=722551116
Storage Element 23:Full :VolumeTag=722551117
Storage Element 24:Full :VolumeTag=722551118
Storage Element 25 IMPORT/EXPORT:Empty
2.
Move the cartridge from slot 1 to the tape drive.
localhost:~ $ mtx –f /dev/sg2 load 1 0
3.
Ensure you are in the root directory.
localhost:~ $ cd /
4.
Back up the Linux kernel using tar.
localhost:~ $ tar cvf /dev/st2 ./boot/vmlinux*
5.
Move the cartridge back to slot 1.
localhost:~ $ mtx –f /dev/sg2 unload 1 0
Restore the Linux kernel
1.
Move the cartridge from slot 1 to the first tape drive.
localhost:~ $ mtx –f /dev/sg2 load 1 0
2.
Create a temporary folder to restore the backup into.
localhost:~ $ mkdir temp
localhost:~ $ cd /temp
D2D Backup System
25