VMS Multitape Backup Restores

NOTE: This should only be necessary if you are trying to restore VMS executables or data files that were incorrectly created in VMS native format.

VMS multitape backup restores are just like single tape restores except that the external and vault tape labels aren't the same as the internal label. Since the backup program requests the tape by it's internal label, the operators have to be able to translate the request in order to mount the correct tape.

  1. Login to FNALD0 (D0GS01 for example)

  2. find a tape drive to use:
    D0GS01-AMJ>sh dev mk
    Device            Device      Error    Volume      Free   Trans Mnt
     Name             Status      Count     Label     Blocks  Count Cnt
    D0GS01$MKA400:    Online          0
    D0GS01$MKA500:    Online          0
    
  3. find some disk space, you must have write privileges:
    D0GS01-AMJ>sh dev scratch:
       scratch02:[scratch.lconey] is another possibility
    D0GS01-AMJ>set default scratch:[scratch.lconey]
    D0GS01-AMJ>dir/size/total [...]
    
  4. define a temporary logical so that the top level of the restored directory tree is at the top level as seen using the logical:
    D0GS01-AMJ>def/trans=conc temp scratch02:[scratch.lconey.]
    
  5. set default to the top level of the new directory tree:
    D0GS01-AMJ>set default temp:[000000]
    
  6. Determine tape labels needed:
       
    http://www-d0.fnal.gov/d0disks/vms2unix/d0tngbackup.html
            for d0tng disks;
    
    http://www-d0.fnal.gov/d0disks/vms2unix/fnald0backup.html
            for fnald0 disks.
    
  7. Send mail to operator@fnal.gov with the information, something like:
    -------- Original Message --------
    Subject: 8mm tapes needed on D0GS01
    Date: Mon, 27 Mar 2000 11:14:33 -0600
    From: Alan M Jonckheere 
    Organization: D0 at Fermilab
    To: operator@fnal.gov
    CC: jonckheere@fnal.gov
    
    I need to restore files from a 2 tape backup save set onto D0GS01 (VMS).
    Since these are 2 volume tapes, the internal and external volume labels
    don't agree, especially for the 2d volume. The tapes I'll be mounting
    and all *three* lables are:
    
    vault label       external label        internal label
    COP333            COP333                P333
    COQ333            COP33302              P33302
    
    NOTE: the backup program will request that volume lable P33302 be
    mounted. Please mount the COQ333 = COP33302 tape at that point.
    
    If you have any questions/problems, please give me a call.
    
    Alan Jonckheere (D0) x3158
    
    -----------------------------------------------------------------------
    
  8. if you are having problems, that is, the wrong tapes have been mounted, call the operators at x2746. Be nice, don't bug them. Discuss what you are doing and what you need. They are very helpful if they understand what's going on.

  9. allocate the chosen tape drive:
    D0GS01-AMJ>allocate d0gs01$mka400
    %DCL-I-ALLOC, _D0GS01$MKA400: allocated
    
  10. get the first tape mounted (NOTE this command wrapped)
    D0GS01-AMJ>mount/for/comment="Please mount tape label COP333, readonly"
               D0GS01$MKA400:
    %MOUNT-I-OPRQST, Please mount device _D0GS01$MKA400:
    Please mount tape label COP333, readonly
    %MOUNT-I-OPRQSTCAN, operator request canceled
    %MOUNT-I-OPRQST, Please mount device _D0GS01$MKA400:
    Please mount tape label COP333, readonly
    %MOUNT-I-OPRQSTCAN, operator request canceled
    %MOUNT-I-OPRQST, Please mount device _D0GS01$MKA400:
    Please mount tape label COP333, readonly
    %MOUNT-I-WRITELOCK, volume is write locked
    %MOUNT-I-MOUNTED, P333 mounted on _D0GS01$MKA400:
    %MOUNT-I-RQSTDON, operator request canceled - mount completed
    successfully
    
  11. [optional] to get a permanent log file of the restore:
    D0GS01-AMJ>define SYS$OUTPUT restore_p333.log
        redirects the output of the /log qualifier to a file
    
  12. start the restore. To do the entire disk:
    D0GS01-AMJ>backup/log/label=p333 d0gs01$mka400:/save [*]/by_owner=parent
    
    You can chose specific files, by adding a file spec to the tape drive name. You can use wildcards in the file spec, but be careful, if you need to specify any part of the directory path, you MUST have it correct. Get the full name from the .list file on d0chb. You can *exclude* files via:
           /exclude=(file_spec[,...])
    See
           HELP BACKUP
    for details.
  13. If you haven't done the output redirection, you'll see the files being restored and you should see the mount requests and successful mounts of the 2nd and 3rd tapes.

  14. when done:
    D0GS01-AMJ>deassign SYS$OUTPUT
        closes the output redirection file
    D0GS01-AMJ>dismount d0gs01$mka400
    D0GS01-AMJ>deallocate d0gs01$mka400
    
  15. to keep the scratch disk cleanup program from deleting your files before you can work on them:
    D0GS01-AMJ>rename [...]*.*;* *.*;*
    
    This is the equivalent of "touch" on Unix. DO NOT use this as a general practice. It defeats the scratch cleanup and will make other users of the system extremely peeved when the disk fills up.
    d0web-support
    Last modified: Tue Mar 28 10:38:01 CST 2000