| Fritz,
I do not have an explanation but, I might have the pointer to how
to do this.
Look at the archive command files in oa$lib. It is all done from
the ALL-IN-1 managers account.
HTH,
Tim
|
| Fritz,
This is a problem due to the way BACKUP implicitly allocates
devices. For more information see VMS QAR database.
The workrounds are :-
o $ALLOCATE device in sub-process before attempting
the $MOUNT, $BACKUP
o Let BACKUP mount the device. Ie comment out the
$MOUNT command.
Hope this helps.
Cheers,
Iain.
|
| Tim, Iain,
thanks for your input.
Originally I thought this problem has something to do with the
specialities of the ALL-IN-1 subprocess. I didn't realized that
the problem also occurs with a standard VMS-subprocess.
I also found the TIMA article you menationed.
The article states that the problem is corrected in VMS V5.0-1.
This might have been true but in VMS V5.2 the problem is either still
there or has been reintroduced.
Nevertheless there's your workaround with which I can live.
Thanks
Fritz
-------------------- TIMA Article --------------------------------
MOUNT-F-DEVALLOC Message Attempting Mount Of Device In Subprocess
COPYRIGHT (c) 1988, 1989, 1990 by Digital Equipment Corporation.
ALL RIGHTS RESERVED. No distribution except as provided under contract.
COMPONENT: MOUNT Utility OP/SYS: VMS, Version 4.n
VMS, Version 5.0
LAST TECHNICAL REVIEW: 22-AUG-1990
SOURCE: Customer Support Center/Colorado Springs USA
SYMPTOM:
A tape or disk device is mounted from a subprocess. Attempts to
re-mount the device after it has been dismounted fail with the
following error message:
%MOUNT-F-DEVALLOC, device already allocated
ANALYSIS:
As documented in the "VMS V4.2 Release Notes", July 1985,
(AA-Z106A-TE), page 5-22, Section 5.15.1:
"When a subprocess mounts a volume (for the job) as a
private volume, the master process of the job becomes the
owner of this device. This provision is necessary because
the subprocess may be deleted and the volume should remain
privately mounted for this job."
Therefore, the first MOUNT command from the subprocess works
correctly. However, at that point, the master process becomes the
owner of the device. Thus, a subsequent dismount and mount of the
same device returns the above error.
NOTE: Any attempt to deallocate the device returns the message:
%SYSTEM-W-DEVNOTALLOC, device not allocated
WORKAROUND:
Allocate the device from the subprocess before executing any MOUNT
commands. This forces the subprocess to be the permanent owner of the
device unless the subprocess is deleted. If the subprocess is deleted
while the device is still allocated, the master process of the job
gains ownership of the device.
NOTE: This workaround is only applicable to VMS Version 5.0.
In V4.n, the master process is always the owner of the
device when it is mounted from a subprocess.
SOLUTION:
This problem is corrected in VMS Version 5.0-1.
NOTE: There is a similar problem performing BACKUPs from a
subprocess. There is another database article that
describes this in detail.
|