HPlogo Using HP 3000 MPE/iX:\Advanced Skills Tutorial: HP 3000 MPE/iX Computer Systems > Chapter 5 Module 4: File Transfer and Storage

Lesson 2 Storing and Restoring Files from Tape

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

Introduction

Lesson 2 presents the STORE/RESTORE utility:

  • using STORE to copy files to tape

  • using RESTORE to copy files from tape to a system

Figure 5-2 STORE/RESTORE Utility Subsystem

[STORE/RESTORE Utility Subsystem]
NOTE: The user procedures established by system management for storing and restoring files to and from tape may vary from facility to facility. The user procedures described in this lesson assume that system operators load and unload tapes from the tape drives, and that users are responsible for entering the equation to define the device and the command to store or restore the file(s).

Prior to using the STORE/RESTORE subsystem utility, check with your system management for specific procedures for your facility.

Consider the following situations:

  • Scenario 1: You are moving to a new account on your system and want to take all of your files from the PUB group to the new account. How can you transfer these files with a minimum of effort?

  • Scenario 2: Your department is going to be on an HP 3000 MPE V system not connected to your present system. How can you move files in your account safely and efficiently to this new system?

  • Scenario 3: Now that the MIDAS project is complete, system operations would like you to remove the MIDAS files from your system in order to conserve disk space. You know that the MIDAS project will be resumed in one year. How can you store the files on tape now, and then reload them on disk when the project resumes?

Sooner or later you will encounter similar situations where you will need to store files on tape for immediate or future use. The most efficient way to store files for possible future use or to transport files between accounts is by using the STORE/RESTORE utility.

Store utility

The STORE utility is used to copy files from disk to magnetic tape. The primary purpose is to back up files in the event of a system failure or to transfer files to other locations.

NOTE: Although there are other methods to copy disk files to tape, you should always use the STORE command for backup and transfer between locations.

The STORE command does the following:

  • copies files in a format that is optimal for backup and transport

  • creates a directory of files on the tape

Using STORE

After you have logged on to your account, you can enter the commands to store files to tape from your terminal.

NOTE: Call system operations prior to completing the exercises in this lesson to get their cooperation in loading tapes for you. Otherwise, complete the exercises with pencil and paper.
Step 1

Send a message to your system operator asking that a blank tape be mounted.

   TELLOP PLS MOUNT TAPE.  REPLY WHEN MOUNTED.
Step 2

When the tape has been mounted, enter the following file equation: (Use "T" as the file designator for the tape or create your own tapename.)

   FILE T;DEV=TAPE
Step 3

Enter the STORE command followed by the name of the file(s) to be copied to the tape. Backreference (*) the tapename.

   STORE filename;*T

Consider how this works for scenario 1. You want to move all the files from the PUB group to another account on the same system. Your system operator has mounted a tape for you, and you enter the following in order to initiate the STORE process:

   FILE T;DEV=TAPE

   STORE @.PUB.ACCTx;*T

If the STORE is completed successfully, here's what you should see on your display:

   >> TURBO-STORE/RESTORE  VERSION  A.21.01  HP30319A <<

    (C) 1986 HEWLETT-PACKARD CO.

   (TODAY'S DATE, TIME)



   FILES STORED :                               19
Q4-5How would you change the preceding STORE command to copy all the files in your account to a tape as in scenario 3?

Transporting files to a new system

Sometimes it is necessary to use STORE in order to transport files to another HP 3000 system.

Check with that system operations personnel for the following information:

Tape Drive Density

Any density other than the default (6250) should be specified as:

   FILE T;DEV=TAPE;DEN=density value
System Type

If the destination system is not an MPE/iX system, the TRANSPORT parameter should be added to the STORE command.

   STORE @.@.ACCTx;*T;TRANSPORT

Now consider scenario 2 — transferring files from an MPE/iX system to an MPE V system. You find that the tape drives for the new system require a 1600 bpi tape format. Therefore, your file equation should look like this:

   FILE T;DEV=TAPE;DEN=1600

The new system is an MPE V which means you need to add the TRANSPORT parameter to your STORE command to ensure a readable tape format:

   STORE @.@.ACCTx;*T;TRANSPORT
Q4-6Suppose you only need to store those files beginning with the letter M for transfer to an MPE V system. How would you write the STORE command to do this?

NOTE: It is a good practice to note on the tape label any special options used when creating the tape using STORE. This may save you time when you restore the files. If you used a special density in the file equation or the TRANSPORT option, write these on the tape label.

STORE parameters

Besides the TRANSPORT parameter, the STORE command has a number of other parameters, which allow you to copy different sets of files as well as monitor the progress of the STORE process.

Go into the Help Facility now and list the STORE parameters to your screen. Your awareness of the additional capabilities of this command is important for future use.

Hint

HELP STORE PARMS

Several of the parameters are discussed below. For others see the Help Facility or the MPE/iX Commands Reference Manual Volumes 1 and 2 (32650-90003 and 32650-90364).

PROGRESS

STORE @.@.ACCTx;*T;PROGRESS=5

When storing a large number of files to a tape, use the PROGRESS parameter to monitor the process. The STORE command above will display a progress message every five minutes.

SHOW

STORE @.@.ACCTx;*T;SHOW

The SHOW parameter prints a message on your terminal screen every time a file is stored. In the event of problems, the SHOW parameter displays an error message. You can direct the SHOW listing to another device if you choose. For example, to include a printout of file names with the tape, use:

STORE @.@.ACCTx;*T;SHOW=OFFLINE

PURGE

STORE @.@.ACCTx;*T;PURGE

The PURGE parameter erases the original file from the disk as soon as it is copied onto tape.

Be Careful

Use caution with the PURGE option. If the tape is defective the data is lost.

Using RESTORE

The RESTORE process essentially reverses the STORE process. Consider scenario 3—reloading files from a STORE tape onto your system.

To restore files from a tape to your account, you would give the tape to your system operator to be mounted, and enter the following at your terminal:

Step 1

Enter the same file equation entered for the STORE process.

   FILE T;DEV=TAPE
Step 2

Enter RESTORE followed by a backreference to the tape name you just defined, followed by the file name(s) to be restored.

RESTORE *T;@.@.ACCTx
Q4-7What RESTORE command would restore only the files from the PROJECT group of your account?

Lesson summary

  1. To store files on tape, use a file equation to define the destination device. Use a STORE command so that the name(s) of the file(s) to be stored is backreferenced to the tape:

       FILE T;DEV=TAPE
    
       STORE filename;*T
    
  2. Add the TRANSPORT parameter to your STORE command if the STORE tape will be reloaded on a system other than MPE/iX:

       STORE @.ACCTx;*T;TRANSPORT
    
  3. Add the DENSITY parameter to the tape file equation when storing files that will be restored on a tape drive with a different density.

       FILE T;DEV=TAPE;DEN=1600
    
  4. Add the SHOW or PROGRESS parameter to your STORE command to monitor the STORE process; add the PURGE parameter to delete files after they are stored only if they need to be purged.

       STORE @.@.ACCTx;*T;SHOW
    
       STORE @.@.ACCTx;*T;PROGRESS=3
    
       STORE @.@.ACCTx;*T;PURGE
    
  5. To restore files from tape, enter the file equation used for the STORE procedure followed by the RESTORE command.

       FILE T;DEV=TAPE
    
       RESTORE *T;@.@.ACCTx
    

Exercise 4-4: lesson 2 review

Now that you have taken the Advanced Skills Course, your manager has asked you to assist other members of the department to store files on tape. By Monday afternoon, a number of problems have come up. How many can you solve? (Assume that all the other members are working in the PUB group of the ADVUSER account.)

  1. The use of the following equation and the STORE command gives the user an error message on the terminal screen. What's wrong?

       FILE T;DEV=TAPE
    
       STORE @.@.ADVUSER;T
    
  2. Someone else has a problem trying to restore a tape made earlier today to another system where the user has an account. The destination system is unable to "read" the tape. What might be the problem?

  3. A friend has asked you to help store and then restore some files from the PUB group of an ADVUSER account on an MPE/iX system to an ADVUSER account on an MPE V system.

    The tape density of the current system is 6250 bpi; however, the tape drives for the new system will accommodate only 1600 bpi tape.

    How would you write the file equations and the STORE and RESTORE commands to complete the process?

  4. Another member of the department used the PURGE parameter when storing files on tape. Unfortunately, the tape has proven to be defective. Is there any way to recover the files?

********** End of Exercise 4-4 **********