Each time you want to preserve changes to your queue configuration,
save a copy of your queue database files. In this way, if your queue
database files are not accessible, you can restore the queue database
you have saved; you thus avoid having to redefine forms and characteristics
and reinitialize each queue.
Saving Queue Database Files To save a record-by-record copy of your queue database files while
the queuing system is functioning, perform the following
steps. This procedure saves definitions of queues, forms, and characteristics.
No job information is preserved. (HP recommends not saving
the journal file because timed and pending jobs might be reexecuted after
the journal file is restored.)
To save the master file, enter an OpenVMS
Convert utility (CONVERT) command in the following format:CONVERT/SHARE QMAN$MASTER.DAT master-filenamewhere master-filename is the name of
the file to which QMAN$MASTER.DAT is to be copied. For more information about CONVERT, refer to the OpenVMS
Record Management Utilities Reference Manual
.
Enter a CONVERT command in the following format
to save the queue file:CONVERT/SHARE SYS$QUEUE_MANAGER.QMAN$QUEUES queue-filenamewhere queue-filename is the name of the
file to which SYS$QUEUE_MANAGER.QMAN$QUEUES is to be copied.
Use the Backup utility (BACKUP) to save the files
created with CONVERT. Use a command in the following format:BACKUP/LOG masterfile-name, queue-filename device:saveset-name/LABEL=labelFor more information about the Backup utility, refer to the HP OpenVMS System Management Utilities Reference Manual.
Restoring Queue Database Files When you restore queue database files, all queue, form, characteristic,
and queue manager information is restored. However, information
about jobs in the queues is not restored.
If the queue
manager is running, stop it by entering the STOP/QUEUE/MANAGER/CLUSTER
command.
Delete all three queue database files. (You must
delete all three files, even if only one or two of them are lost.)
When starting a queue manager on OpenVMS, the queue
manager process always opens version number one of the queue journal
file (SYS$QUEUE_MANAGER.QMAN$JOURNAL;1). For this reason, when you
restore the queue system files with the Backup utility, you must
ensure that the latest version of the queue journal file is version
number one.
Use the MOUNT command to mount the disk or tape
containing the queue database backup.
Use the Backup utility (BACKUP) to restore the queue
file and master file from the save set you created in step 3 of
Saving and Restoring the Queue Database. If the master file
or queue file is stored in a location other than the default, make
sure you restore it to the correct location or that you specify
the new location when you start the queue manager.
When starting a queue manager on OpenVMS, the queue
manager process always opens version number one of the queue journal
file (SYS$QUEUE_MANAGER.QMAN$JOURNAL;1). For this reason, when you
restore the queue system files with the Backup utility, you must
ensure that the latest version of the queue journal file is version
number one.
When you restore your queue database, you must always
restore both the master and queue files, even if you lost only one
of those files.
Start the queue manager with the START/QUEUE/MANAGER
command. Do not enter the /NEW_VERSION qualifier: a new, empty journal
file will be created automatically.