Backing up /data1 on Meitner

  1. Work from the machine locally, not from a remote location.
  2. Login as root or enter su to get root access.
  3. Enter init s to bring the system down to a single-user state.  This helps make sure the backup and verification process will go smoothly without error.
  4. Make sure the /data1 drive has all the files you want to backup on it.  You may as well fill it up with anything important on /data that will fit.
  5. Load a blank tape in the DTL drive, and make sure the capacity is set to 35 GB and compressed.
  6. Before starting the backup, I like to print out an insert to go with the tape.  Entering the following 2 commands will make a nice list of folders with how much each holds in kilobytes, and send it to the printer:
    cd /data1
    du -k | lpr
  7. You start the backup process by issuing the following command:
    ufsdump 0v /dev/dsk/c0t0d0s6

    The 0 indicates the "level" of the dump, v indicates you want the backup verified, and /dev/... is the device name for /data1. (Issue the du command to see what devices correspond to what partitions.)
  8. Once the backup and verification are complete (takes 3-4 hours for a full disk), unload the tape by first issuing 
    mt offline
  9. Move the write-protect switch (on the front of the tape to the right of the label slot) towards the left. If an orange square is now showing, the tape is write-protected.
  10. Bring the system back up to multi-user state by entering
    init 0
    This shuts down most processes. When it is complete, you will have a prompt.  Enter
    boot
    to reboot the system.

Restoring from a backup tape

  1. It's probably a good idea to bring the system down to a single-user state by completing steps 1-3 above.
  2. Put your tape in the DTL drive.
  3. Enter ufsrestore i

    This gives you a ufsrestore> prompt and you can restore files selectively from the tape. The command add filename tags filename as a file to be extracted from the tape; an entire directory can also be tagged with this command. Once all desired files on the tape have been tagged, use the command extract to restore the files to meitner. The restore process may take several hours, depending on the volume of data. Enter ? for a full list of commands.  Warning: Files must be restored to their original locations.  Make sure that you won't overwrite something important by doing this.
Authors: Dale Visser, Anuj Parikh