Backing Up and Recovering Shared Disc Files [ HP Resource Sharing for MPE/iX ] MPE/iX 5.0 Documentation
HP Resource Sharing for MPE/iX
Backing Up and Recovering Shared Disc Files
The Backup function of RESMGR lets you save shared disc files on tape.
You can back up all the files on a shared disc, or select files to back
up based on their DOS filenames. The Recovery function lets you reclaim
files that were saved on tape. For backup strategies and constraints,
see "Backup and Recovery of Shared Disc Files" in Chapter 4.
RESMGR's Backup and Recover functions use HP's Store/Restore functions.
About Filename Patterns and Wildcards
To select the files on the shared disc that you want to back up, RESMGR
asks you to enter a filename pattern to follow. A pattern is a
description of files using wildcards. For example, to back up all files
that begin with A, you would enter a filename pattern such as A* or A*.*.
To back up a single file, enter the filename as the pattern.
If you want to back up a group of files, enter a pattern or group of
patterns. RESMGR compares the pattern you enter with each file on the
disc, and selects all files matching any of the patterns you enter. For
example, the pattern shown below selects all files beginning with A and
ending with T in the directory DATA:
\DATA\A*T
Patterns can contain these DOS wildcard characters:
?--matches exactly one character
*--matches the longest string of anything
Wildcard characters can be combined and used in any part of the pathname,
extending the DOS wildcard capability. For example, say you wanted to
back up these four files:
\BERRIES\BLUE
\BERRIES\BLACK
\BIRDS\BLUE
\BIRDS\BLACK
DOS would let you specify only \BERRIES\B* or \BIRDS\B*, because it
doesn't allow wildcards in the directory portion of a pathname. RESMGR's
wildcard expansion lets you specify all four files in the same pass by
entering \B*\B*.
Creating a Pattern File
If you have a list of patterns you will use frequently, you can create an
MPE file to add the patterns to the backup command automatically.
Create an MPE file containing a list of the DOS filename patterns, one
per line. Then when you respond to the prompt asking for the filename
pattern, enter a caret (^) as the first character of the pattern
parameter, followed by the MPE filename.
For example:
* The MPE file PATTRNFL contains these patterns:
\EAA*\*
\FY95*\*
* At the prompt for filename pattern, you would enter:
^PATTRNFL
This pulls the pattern set into the backup process, just as though
you had entered in each pattern. The backup in this example
stores all directories beginning with EAA (and all the files in
those directories), and all directories beginning with FY95 (and
all the files in those directories).
Backup Function
RESMGR does NOT back up a shared disc that is in use. Make sure there
are no active connections to a shared disc before you begin.
There are a few things you should consider before you begin a backup:
* The Backup function displays a list of selected files on the
screen. You can direct the list to a printer by creating a file
equation before beginning backup. The filename list is called
PDLIST, so your file equation could look like this: FILE
PDLIST;DEV=LP.
* You can direct the list to a file by creating a file equation
before beginning backup. If you are going to back up more than
1000 files, you must specify a file size larger than the number of
files to be backed up. For example, if you wanted to direct the
output to a new file called FILELIST, your file equation could
look like this: FILE PDLIST=FILELIST,NEW;DISC=5000.
To back up shared disc files:
1. Make sure no users are connected to the shared disc you want to
back up.
2. Access the main RESMGR screen, then choose Disc f1.
3. Choose Backup Files f4.
RESMGR prompts:
Sharename?
If you have SM, AM or OP capabilities, you can enter the physical
path rather than the sharename. The prompt would read:
Sharename (or Physical Path)?
4. Enter the sharename associated with the shared disc whose files
you will back up.
If the sharename has a password associated with it, RESMGR
prompts:
Password?
5. Enter the password.
RESMGR prompts:
Filename pattern ('//' to cancel)?
6. Enter the DOS filename pattern for RESMGR to follow in selecting
shared disc files to backup, or ^ followed by an MPE file
containing a list of patterns.
If you want to back up all files, enter \ or *.* to indicate the
root directory. If you just press Enter, *.* is the default.
If you want to back up a single file, enter the filename at the
Filename pattern prompt.
You can specify more than one pattern by separating them with
commas, or by typing a different pattern each time you are asked
to enter a filename pattern. Each time you enter a pattern, you
are prompted to enter another filename pattern. Press Enter when
you are finished typing patterns.
7. RESMGR's Backup follows the standard HP 3000 tape backup function.
When the backup is complete, RESMGR tells you the number of files
stored:
FILES STORED: nnnn
________________________________________________________________________
|If using commands, at the DISC> prompt enter: |
| |
| |
|BACKUP {sharename}[/password]{pattern}[..,pattern] |
| {\ } |
________________________________________________________________________
Recover Function
The Recover function lets you restore shared disc files that were saved
on tape. The backup medium may have been created with RESMGR's Backup
function, or during a standard system backup. Both methods use the
standard MPE Store format. You must have RWC (Read, Write, and Create)
permission to recover shared disc files.
Make sure no one is connected to the shared disc before you recover
files.
NOTE Like Backup, Recover displays a list of selected files on the
screen, or redirects the list to a printer or a file.
* You can direct the list to a printer by creating a file
equation before beginning backup. The filename list is
called PDLIST, so your file equation could look like this:
FILE PDLIST;DEV=LP.
* You can direct the list to a file by creating a file
equation before beginning backup. If you are going to back
up more than 1000 files, you must specify a file size larger
than the number of files to be backed up. For example, if
you wanted to direct the output to a new file called
FILELIST, your file equation could look like this:
FILE`PDLIST=FILELIST,NEW;DISC=5000.
To recover shared disc files:
1. Access the main RESMGR screen, then choose Disc f1.
2. Choose Recover Files f3.
RESMGR prompts:
Sharename?
If you have SM, AM, or OP capabilities, you can enter the physical
path rather than the sharename. The prompt would read:
Sharename (or Physical Path)?
Enter the sharename associated with the shared disc whose files
you want to recover.
RESMGR prompts:
Password?
3. Enter the password, or press Enter if there is no password
associated with the shared disc.
RESMGR prompts:
Filename pattern ('//' to cancel)?
4. Enter the filename pattern that tells the program which backed-up
files to recover, or enter a ^ and the filename containing the
group of patterns you want to use.
Each time you enter a pattern, you are prompted to enter another
filename pattern. Press Enter when you are finished typing
patterns.
For more information about filename patterns, refer to the "About
Filename Patterns and Wildcards" discussion earlier in this
section.
The program generates an MPE tape request on the system console.
Once the tape is online, the program reads the tape and reports
the number of recoverable files.
RESMGR then recovers the shared disc root directory and the status
of the recovery is displayed on the screen or printed if you
redirected the display to a printer.
NOTE If the recovery process stops for some reason (a system failure or
you pressed the Break key), the shared disc root directory may
contain incorrect information. Run the CHKDISC diagnostic to
correct the root directory (see Chapter 7, "Diagnostics").
________________________________________________________________________
|If using commands, at the DISC> prompt enter: |
| |
| |
|RECOVER {sharename}[/password]{pattern}[..,pattern] |
| {\ } |
________________________________________________________________________
Recovering Files From Previous Versions of HP Resource Sharing.
If you are updating files from Resource Sharing A.00.xx on MPE V, special
procedures need to be followed. Please contact Hewlett-Packard for
special instructions before attempting the update.
If you are updating files from Resource Sharing A.01.xx, each shared disc
is converted automatically the first time a user connects to it. You can
let the discs convert automatically, or run a program to convert them all
at one time. To convert all shared discs at one time, follow the
instructions below:
Converting Shared Disks
The following shared disc conversion procedure converts existing A.01.xx
shared discs to the updated Resource Sharing format on MPE iX. If a
problem occurrs during this procedure, refer to Chapter 6 for
troubleshooting information.
To convert shared discs:.
1. Be sure that your network is inactive. The network might be
activated automatically during startup. Any attempt to access
shared discs at this time would not succeed, since the discs are
still in the old format. Use NETCONTROL STATUS and NSCONTROL
STATUS to verify that the network is inactive.
_________________________________________________________________
CAUTION To make sure no users or Resource Sharing processes are
accessing shared discs, run Resource Sharing's Resource
Manager Utility (RESMGR) on your system and check the
share status. (See Chapter 8.) Do not start the
conversion procedure if any shares are active. Continue
checking the share status until no shares are active.
Then, start the conversion.
_________________________________________________________________
2. At the colon prompt, type:
STREAM JDISCAN.PPC.SYS
The JDISCAN.PPC.SYS job locates the shared discs on your system
and estimates the time required to convert them to the new format.
It creates an input file named VDROOTS.PPC.SYS.
The contents of the VDROOTS.PPC.SYS file are copied to the
JDISCAN.PPC.SYS $STDLIST. VDROOTS.PPC.SYS contains the following
information:
* The location of every shared disc on your system
* A time estimate for converting each disc
* An overall time estimate for converting all shared discs
* A warning if there are more than 1200 shared disc files per
group on your system
Here is an example of JDISCAN.PPC.SYS $STDLIST output as displayed
by an editor:
VDROOT.MONTOOLS.PACKINT 1 minute
VDROOT.ARCHIVE.PACKRAT 2 minute(s)
VDROOT.PCSTUFF.PACKRAT <Warning Remove 46 Files> 22 minute(s)
VDROOT.PCCDU.PCCDU 2 minute(s)
VDROOT.VDPUB.TEST 1 minute
Total Discs: 38 Conversion Time: 1 hour(s) 6 minute(s)
3. Move the excess files from the groups which had warning messages
to another shared disc that has fewer than 1200 shared disc files.
4. To proceed with converting your shared discs, type:
STREAM JROOTCON.PPC.SYS
The JROOTCON.PPC.SYS job converts all shared discs on the system
to the new format.
Console messages display the following information during
conversion:
* The account and group names of the shared disc being
converted
* Error messages
* A message informing you when the entire conversion process
is complete
The JROOTCON.PPC.SYS job also highlights errors and directs the
output to the $STDLIST listing.
5. Bring up your network.
Your shared discs are now in the format valid for the current
version of Resource Sharing. This conversion is invisible to
network users.
MPE/iX 5.0 Documentation