AFS Backups

AFS will be backed-up via the AFS Backup system. One AFS host will serve as the backup server and be connected directly to a departmental ATL tape silo robot via differential SCSI. Tapes will be 'labeled' by AFS. AFS will determine the physical label for a tape via the MTX software, which will obtain the barcode on a tape from the ATL tape silo. MTX software will also be used by MOUNT and UNMOUNT scripts run by AFS to change tapes as necessary.

We use an ATL7100 DLT library. (96 tape slots, 4 DLT7000 drives) Sony DLTtape IV is the type to reorder. All tapes used in the library must have barcoded labels on them.

Put new tapes into the library. Press and hold the Open button down until the loading port opens. Up to 4 tapes may be loaded at once. Place the tapes into the loading port, and then press and hold the Close button down until hearing a click. Rotate the loading port shut. At this point the ATL7100 will barcode scan the new tapes and insert them into empty tape slots.

Each new tape must be labelled by AFS and added to legionofdoom:/usr/afs/backup/blanktapes.list AFS labels tapes via the AFS Backup System. Login to legionofdoom, become root, run '/usr/sbin/backup -localauth' In another shell, as root, use the /usr/local/sbin/mtx program to place the new tapes into drives for labeling:

[root@legionofdoom home]$ /usr/local/sbin/mtx -f /dev/sg3 status
  Storage Changer /dev/sg3:4 Drives, 100 Slots ( 4 Import/Export )
Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
      Storage Element 1:Full :VolumeTag=DUW122                          
      Storage Element 2:Full :VolumeTag=DUW123                          
      Storage Element 3:Full :VolumeTag=DUW124                          
      Storage Element 4:Full :VolumeTag=DUW125                          
      ...
      Storage Element 77:Full :VolumeTag=DUW150                          
      Storage Element 78:Full :VolumeTag=DUW151                          
      Storage Element 79:Full :VolumeTag=DUW152                          
      ...
      Storage Element 96:Full :VolumeTag=DUW169                          
      Storage Element 97 IMPORT/EXPORT:Empty
      Storage Element 98 IMPORT/EXPORT:Empty
      Storage Element 99 IMPORT/EXPORT:Empty
      Storage Element 100 IMPORT/EXPORT:Empty
[root@legionofdoom home]$ /usr/local/sbin/mtx -f /dev/sg3 load 77 0
[root@legionofdoom home]$ /usr/local/sbin/mtx -f /dev/sg3 status
  Storage Changer /dev/sg3:4 Drives, 100 Slots ( 4 Import/Export )
Data Transfer Element 0:Full (Storage Element 77 Loaded):VolumeTag = DUW150                          
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
      Storage Element 1:Full :VolumeTag=DUW122                          
      Storage Element 2:Full :VolumeTag=DUW123                          
      Storage Element 3:Full :VolumeTag=DUW124                          
      Storage Element 4:Full :VolumeTag=DUW125                          
      Storage Element 5:Full :VolumeTag=DUW126                          
      ...
      Storage Element 77:Empty
      ...
      Storage Element 94:Full :VolumeTag=DUW167                          
      Storage Element 95:Full :VolumeTag=DUW168                          
      Storage Element 96:Full :VolumeTag=DUW169                          
      Storage Element 97 IMPORT/EXPORT:Empty
      Storage Element 98 IMPORT/EXPORT:Empty
      Storage Element 99 IMPORT/EXPORT:Empty
      Storage Element 100 IMPORT/EXPORT:Empty
>
  

Now have AFS backup (/usr/sbin/backup) label the tape which was just loaded:




  

If you wish to eject the DLT tape to send it home with someone for safekeeping, do the following:


  1. Figure out which Storage Element contains the tape you want out. In this example, we want DUW170 and DUW171 out.
    [root@legionofdoom ~]# /usr/local/sbin/mtx -f /dev/sg3 status |grep DUW17
          Storage Element 49:Full :VolumeTag=DUW170
          Storage Element 50:Full :VolumeTag=DUW171
          Storage Element 59:Full :VolumeTag=DUW174
          Storage Element 69:Full :VolumeTag=DUW172
          Storage Element 70:Full :VolumeTag=DUW173
          Storage Element 71:Full :VolumeTag=DUW175
          Storage Element 72:Full :VolumeTag=DUW176
          Storage Element 73:Full :VolumeTag=DUW177
          Storage Element 74:Full :VolumeTag=DUW178
          Storage Element 75:Full :VolumeTag=DUW179
    [root@legionofdoom ~]#
    
  2. Now transfer the desired tapes to the IMPORT/EXPORT slots. (Elements 97 thru 100 on an ATL7100)
    [root@legionofdoom ~]# /usr/local/sbin/mtx -f /dev/sg3 transfer 49 97
    [root@legionofdoom ~]# /usr/local/sbin/mtx -f /dev/sg3 transfer 50 98
    [root@legionofdoom ~]# /usr/local/sbin/mtx -f /dev/sg3 status | grep 'ent 9'
          Storage Element 9:Full :VolumeTag=DUW220
          Storage Element 90:Full :VolumeTag=DUW163
          Storage Element 91:Full :VolumeTag=DUW164
          Storage Element 92:Full :VolumeTag=DUW165
          Storage Element 93:Full :VolumeTag=DUW166
          Storage Element 94:Full :VolumeTag=DUW167
          Storage Element 95:Full :VolumeTag=DUW168
          Storage Element 96:Full :VolumeTag=DUW169
          Storage Element 97 IMPORT/EXPORT:Full :VolumeTag=DUW170
          Storage Element 98 IMPORT/EXPORT:Full :VolumeTag=DUW171
          Storage Element 99 IMPORT/EXPORT:Empty
    [root@legionofdoom ~]#
    
  3. Finally, walk to server room, hold down Open button on ATL7100 labeled 'AFS Backups' until you hear a click. Loading tray will swing-open, exposing import/export slots. Hold down Close button until you hear a click. Loading tray may now be swung closed.