              <<< VAXAXP::NOTES$:[NOTES$LIBRARY]VMSNOTES.NOTE;1 >>>
               -< VAX and Alpha VMS - Digital Internal Use Only >-
================================================================================
Note 792.3       set security/class=resource SYSTEM-E-RSDMNOTFOU          3 of 4
GIDDAY::GILLINGS "a crucible of informative mistake" 41 lines   2-MAY-1996 17:53
                     -< doesn't exist yet - so create it! >-
--------------------------------------------------------------------------------
    jp,
    
      Resource domains are created "as needed". The first time a non-system
    lock is $ENQed by a process in a particular UIC group, the resource
    domain for that group will be created. The symptoms you describe suggest
    that someone one the first system has $ENQed a lock at some time in the 
    past, but it hasn't happen (yet) on the second system. 
    
     Using MACRO (for brevity and the license challenged), and a bit of 
    privilege, you can create any resource domain you like:
    
        .TITLE CreateResourceDomain
        $LCKDEF
        .PSECT $LOCAL,RD,WRT,NOEXE
LKSB:   .BLKL 4
RESNAM: .ASCID /ANY_LOCK/
    
        .PSECT $CODE,RD,NOWRT,EXE
        .ENTRY Start,^M<>
          $ENQW_S LKSB=LKSB,RESNAM=RESNAM,LKMODE=#LCK$K_EXMODE
          RET
        .END Start
    
    $ show sec/class=res [321]
    %SYSTEM-E-RSDMNOTFOU, resource domain not found
    $ run/detached/uic=[321,1] create_resource_domain
    %RUN-S-PROC_ID, identification of created process is 42600851
    $ show sec/class=res [321]
    
    [000321] object of class RESOURCE_DOMAIN
         Owner: [321,*]
         Protection: (System: RWL, Owner: RWL, Group: RWL, World)
         Access Control List: <empty>
    
    I think this is permanent, but I'm not about to reboot to find out.
    If not, it should be easy enough to add RUN/DETACHED/UIC commands to
    your system startup to create the domains (and you'll get the group
    logical name tables thrown in for free!).
    
    						John Gillings, Sydney CSC
    
