- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- System Disk Restore & Queue Entries
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2004 08:56 PM
02-01-2004 08:56 PM
System Disk Restore & Queue Entries
I was a little shocked by this, although the image had been taken from a 'snap' copy of the system, so wasn't truly 'clean'.
Does anyone have any insight into why this happened, and how to correct it, so that the queue manager retains the entries on the rebuilt system?
Many thanks, Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2004 09:29 PM
02-01-2004 09:29 PM
Re: System Disk Restore & Queue Entries
How you have taken the image backup ? Have you included /ignore=(interlock,nobackup) ?
Thanks & regards,
Lokesh Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2004 09:46 PM
02-01-2004 09:46 PM
Re: System Disk Restore & Queue Entries
However, the snap is taken with the queue manager files open, so perhaps this is the problem, although I would hope that it could recover itself.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2004 10:14 PM
02-01-2004 10:14 PM
Re: System Disk Restore & Queue Entries
In this case you can copy qman$master.dat and sys$queue_manager.qman$queues from your existing environment to your disaster recovery environment. You can use convert utility for this purpose.
Thanks & regards,
Lokesh Jain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2004 10:23 PM
02-01-2004 10:23 PM
Re: System Disk Restore & Queue Entries
Hope this helps:
Best regards,
Lokesh
______________________________________
Saving and Restoring the Queue Database
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.)
How to Perform This Task
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.
Example
The following example is a simple procedure showing how to save the queue database.
$ SET DEFAULT SYS$COMMON:[SYSEXE]
$ CONVERT/SHARE QMAN$MASTER.DAT MASTERFILE_9SEP.KEEP;
$ CONVERT/SHARE SYS$QUEUE_MANAGER.QMAN$QUEUES QFILE_9SEP.KEEP;
$ INITIALIZE MUA0: QDB
$ MOUNT/FOREIGN MUA0:
%MOUNT-I-MOUNTED, QDB mounted on _LILITH$MUA0:
$ BACKUP/LOG MASTERFILE_9SEP.KEEP,QFILE_9SEP.KEEP MUA0:QDB_9SEP.SAV/LABEL=QDB
%BACKUP-S-COPIED, copied SYS$COMMON:[SYSEXE]MASTERFILE_9SEP.KEEP;
%BACKUP-S-COPIED, copied SYS$COMMON:[SYSEXE]QFILE_9SEP.KEEP;
$ DISMOUNT MUA0:
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.
How to Perform This Task
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.
Example
The following example is a simple procedure showing how to restore the queue database from tape.
$ STOP/QUEUE/MANAGER/CLUSTER
$ SET DEFAULT SYS$COMMON:[SYSEXE]
$ DELETE SYS$QUEUE_MANAGER.QMAN$JOURNAL;,SYS$QUEUE_MANAGER.QMAN$QUEUES;, -
_$ QMAN$MASTER.DAT;
$ MOUNT/FOREIGN MUA0:
%MOUNT-I-MOUNTED, QDB mounted on _LILITH$MUA0:
$ BACKUP/LOG MUA0:QDB_9SEP.SAV/SELECT=[SYSEXE]MASTERFILE_9SEP.KEEP; -
_$ QMAN$MASTER.DAT;
%BACKUP-S-CREATED, created SYS$COMMON:[SYSEXE]QMAN$MASTER.DAT;1
$ SET MAGTAPE/REWIND MUA0:
$ BACKUP/LOG MUA0:QDB_9SEP.SAV/SELECT=[SYSEXE]QFILE_9SEP.KEEP; -
_$ SYS$QUEUE_MANAGER.QMAN$QUEUES
%BACKUP-S-CREATED, created SYS$COMMON:[SYSEXE]SYS$QUEUE_MANAGER.QMAN$QUEUES;1
$ DISMOUNT MUA0:
$ START/QUEUE/MANAGER
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2004 11:04 PM
02-01-2004 11:04 PM
Re: System Disk Restore & Queue Entries
But it doesn't explain why your entries were lost. In my opinion they should be on disk and my experience is that I never lost queue entries after a crash.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2004 11:31 PM
02-01-2004 11:31 PM
Re: System Disk Restore & Queue Entries
What happens if you startup the systems: does it re-create the queues from scratch (some sites do)- that would explain this behaviour.
Then a guess: Are the definitions exactly equal? I can think of a scenarion where you define a queue, /ON=(
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2004 11:43 PM
02-01-2004 11:43 PM
Re: System Disk Restore & Queue Entries
I'm not sure why the entries didn't return, but your node comments did make me think.
I wonder if it's something to do with where the Cluster Queue Manager was running? If it was on Beta, but we reboot Alpha first, perhaps the jobs didn't hop over properly?
Anyway, VdeW's (can't say it sorry) previous post basically says you can't save the queue database without shutting down the Manager, so our method is a no-no from the start!
I'm going to resort to a SHOW QUEUE/ALL/FULL and picking up the pieces from there if the entries don't automatically come back.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 02:44 PM
02-02-2004 02:44 PM
Re: System Disk Restore & Queue Entries
if the 'snap' of your disk does not contain a valid copy of the Qman database, there is no way how the Qmanager would be able to restore itself. Also ask yourself what you really want to restore, the queues or the entries in the
queues. Your safest bet for the queue definitions is to run the DCL script you already have to recreate them ;-). If you really need the queue entries the only way I can think of is to shadow the disks across the network to your recovery site.
Greetings, Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 06:19 PM
02-02-2004 06:19 PM
Re: System Disk Restore & Queue Entries
So my guess it :
1) bad luck. The q manager was working. Did you check the system log file for messages during startup ?
2) the entries are deleted somewhere during startup. Find out where.
3) your definition of the q db as seen in sh que/man/fu is inconsistent (=different) on each cluster node. Thus you are using different databases.
4) the entries did execute before you looked (released due to invalid time ?). init your queue with /retain=always to find out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 08:13 PM
02-02-2004 08:13 PM
Re: System Disk Restore & Queue Entries
Robert, like you said:
...
although the image had been taken from a 'snap' copy of the system, so wasn't truly 'clean'
...
and the jobs were located on the other node (and finished there) could mean a discrepancy causing the jobs to disappear (I think, given the other remarks) - it that case they might show up in accounting.
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 08:31 PM
02-02-2004 08:31 PM
Re: System Disk Restore & Queue Entries
what I did not see above is whether you moved your que files away from the system disk?
DEFINE (/SYSTEM or Clusterwide) /EXEC QMAN$MASTER
Of course use a (shadowed) disk that is available ALWAYS from ALL running nodes.
The moving of your que files itself is a quite cumbersome job. The easiest way is to BACKUP/igore=interlock ( AND CHECK they are copied completely, BACKUP just tries the best it can, but definitely does NOT guarantee!! ) and reboot the entire cluster, after changing the QMAN$MASTER definition in the bootstrap procedure.
Often, in disaster-tolerant configurations, cluster-reboot is very undesirable. On our move from HSZ-disks to SAN we managed to find a timeslot (of course at ugly hours) in which we could block al printing for a few minutes, stop all batches, make the BACKUP of the directory, do the define on all nodes except the one running the que manager, and forced the que manager to fail over.
Yes, I know, this sequence is entirely unsupported, but it was the "best" we could concoct.
We DID have the organisation prepared for a cluster reboot in case of serious failure, but just getting those preparations was not making us more popular! On the other hand, we DID get it right, and that was quite some contast to the Unix and Citrix environments!
To get to your original question:
what exactly do you mean by "on restoring"?
what by "recovery test"?
Did you take your backups to other machines, or did you deliberately crash your active environment and get it rebooted? Do I understand correctly that your queues WERE still present, just the ENTRIES gone?
"the image taken from a snap copy". Stupid question just to be sure: WERE there entries at the moment of snapping? Before the image was taken, did you do a rebuild of the snap
(MOUNT/rebuild or SET VOLUME/REBUILD) ?
Well, a lot of questions & info, maybe if you fill in some details we can carry this a bit further.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 03:39 AM
02-03-2004 03:39 AM
Re: System Disk Restore & Queue Entries
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 08:00 PM
02-03-2004 08:00 PM
Re: System Disk Restore & Queue Entries
- All of the Queue Manager files sit on the system disk.
- The backup was taken using BACKUP/IGNORE=INTERLOCK on a live, running system (not from Snap disks as I originally said).
- The backup was then restored to another pair of ES40's, with exactly the same configuration as our live system, as part of a Disaster Recovery test.
I personally feel that the queue manager didn't like the journal file, so dumped it, hence no entries. This isn't ideal, but I can live with it as long as I know it's going to happen.
Many thanks for all of your replies, but please don't feel it's necessary to get to the bottom of this for my benefit. Of course, being VMS admins and consumate professionals, I'm sure you'll all still want to!
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 08:29 PM
02-03-2004 08:29 PM
Re: System Disk Restore & Queue Entries
I think your trouble is depening by BACKUP/IGNORE=INTERLOCK.
When you make backup and queue manager is running, files of que manager are continuously update; the /IGN=INTER qualifier tell to backup ignore error (means error is treated as warning) but files of uqe manager are inconsistently.
Perhaps you could issue STOP/QUE/MANAG/CLUST before backup, but STOP/MAN stop all job ruuning (that's no a good idea).
Better may be issue STOP/QUE/NEXT
Bye
Antoniov