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

Back up the kernel

Page 51 highlights

Back up the kernel 1. Check to see what media is available. # mtx -f /dev/scsi/changer/c3t1d0 status 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 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. # mtx -f /dev/scsi/changer/c3t1d0 load 1 0 3. Ensure you are in the root directory. # cd / 4. Back up the kernel using tar. # tar cvf /dev/rmt/2cb ./platform/`arch -k`/kernel/sparcv9/unix 5. Move the cartridge back to slot 1. # mtx -f /dev/scsi/changer/c3t1d0 unload 1 0 Restore the kernel 1. Move the cartridge from slot 1 to the first tape drive. # mtx -f /dev/scsi/changer/c3t1d0 load 1 0 2. Create a temporary folder to restore the backup into. # mkdir temp # cd /temp D2D Backup System 51

  • 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 kernel
1.
Check to see what media is available.
# mtx –f /dev/scsi/changer/c3t1d0 status
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
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.
# mtx –f /dev/scsi/changer/c3t1d0 load 1 0
3.
Ensure you are in the root directory.
# cd /
4.
Back up the kernel using tar.
# tar cvf /dev/rmt/2cb ./platform/`arch -k`/kernel/sparcv9/unix
5.
Move the cartridge back to slot 1.
# mtx –f /dev/scsi/changer/c3t1d0 unload 1 0
Restore the kernel
1.
Move the cartridge from slot 1 to the first tape drive.
# mtx –f /dev/scsi/changer/c3t1d0 load 1 0
2.
Create a temporary folder to restore the backup into.
# mkdir temp
# cd /temp
D2D Backup System
51