[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

4317.0. "MDK & default login-subdirectory" by FRSCS::TSCHOEN () Wed Jul 06 1994 10:25

Hi ALL

ALL-IN-1 Version 3.0 (no patches)
VMS Version 5.5-2

a customer of mine has the following problem with the MDK function :

first he defines a logical for the "old" directory

define/system/exec/trans=(concealed,terminal) user$org dub3:[org.]

then he defines a logical for the "new" directory

define/system/exec/trans=(concealed,terminal) user$sws dub3:[sws.]

He wants to move one user from one directory to a new directory on the
same disk.

Then he uses the MDK (Move account to another disk) function and get the 
following mail :  The following accounts have failed to be moved
                  GELSENWASSER        Failed to backup files to new directory

In the OA$MANAGER_MOVEDISK.LOG he finds the following :

.......
.......

       do oa$lib:sm_movedisk
Get the next account
Starting to process ALL-IN-1 username GELSENWASSER
Disable the VMS account
Check for several ALL-IN-1 accounts sharing a VMS account
VMS account is NOT shared
Check the UAF directory has been set correctly
Compare first element of profile with first of UAF directory
Make spec for moving directories from the UAF entry
Examine quota on source disk
Display blocks used by account
2278
Examine quota on destination disk
Make sure drawer files are not locked by anything else...
Use BACKUP to move users files to the new disk
Failed to move that account    <-----------------------
Get the next account
All user accounts processed
Build mail boilerplate
.......
.......

The account wasn't move !

I look in the sysuaf.dat and findout that the default directory for this
user looks like :

Username: GELSENWASSER                     Owner:  DU GELSENWASSER
Account:                                   UIC: [36,12552] ([GELSENWASSER])
CLI:      DCL                              Tables: DCLTABLES
Default:  USER$ORG:[GELSENWASSER.START]
LGICMD:   LOGIN
Flags:
Primary days:   Mon Tue Wed Thu Fri
Secondary days:                     Sat Sun
No access restrictions

I change the uaf-entry to Default:  USER$ORG:[GELSENWASSER] and the MDK 
function works fine !

Now i test something other :

i define a third logical which points to another different disk and 
redefined the default directory in the sysuaf.dat back to [gelsenwasser.
start] and use the MDK function again.

The result : MDK moves all files and directories except one :
the whole a1.dir and all files under this directory.

It looks like that the sm_movedisk.scp gets problems when the default 
logindirectory in the uaf is a subdirectory.

How can i change the script so that this customer configuration and the MDK 
function work together ?

regards

Thomas
T.RTitleUserPersonal
Name
DateLines
4317.1IOSG::MAURICEEnd of the road for the Emerald CityWed Jul 06 1994 10:5323
    Hi,
    
    We have fixed quite a few MDK problems in V3.1, but not specifically
    the one you mention. However one of the changes is in this area. In
    SM_MOVEDISK.SCP look for the label check_backup.
    
    There is a line in the V3.0 script which was:
    
    	.if oa$dir_search.ALLBUTVER[#file_spec] eqs #file_spec then -
    
    This in V3.1 is now:
    
    	.if file$.status[#file_spec] eq 1 then -
    
    There is a chance that this might fix your problem. If not then try
    turning tracing on after the label move_to_destination, by adding a
    line like:
    
    set_trace (INPUT,MESS,SCRIPT,SYMBOL,A1LOG,LOG,MAIL)
    
    Cheers
    
    Stuart
4317.2FRSCS::TSCHOENWed Jul 06 1994 14:3746
Hi Stuart,

thank's for your very quick answer !

I changed the line in the sm_movedisk.scp and try it again.

The result : 

MDK moves all files and directories except one :
the whole a1.dir and all files under this directory.

The behaviour is now the same like to move the account to another different 
disk and not to another directory on the same disk.

Then i edit the script again and set the trace with the option
(all,log).

Also i get A1SUB.LOG;33 :

       Owner         Username           UIC       Account  Privs Pri 
Directory

DU GELSENWASSER      GELSENWASSER     [36,12552]           Normal  4 
Disuser
   "SYS$COMMAND" = "A1SUB.LOG" (LNM$PROCESS_TABLE)
   "SYS$INPUT" = "_FRSALL$DUA1:" (LNM$PROCESS_TABLE)
%DCL-I-SUPERSEDE, previous value of SYS$COMMAND has been superseded
   "SYS$COMMAND" = "_FRSALL$MBA2333:" (LNM$PROCESS_TABLE)
       Owner         Username           UIC       Account  Privs Pri 
Directory

DU GELSENWASSER      GELSENWASSER     [36,12552]           Normal  4 
Disuser
   "SYS$COMMAND" = "_FRSALL$MBA2333:" (LNM$PROCESS_TABLE)
   "SYS$INPUT" = "_FRSALL$DUA1:" (LNM$PROCESS_TABLE)
   "SYS$COMMAND" = "_FRSALL$MBA2333:" (LNM$PROCESS_TABLE)
%BACKUP-S-CREDIR, created directory TEST:[GELSENWASSER.TESCHT]
%BACKUP-S-CREATED, created TEST:[GELSENWASSER.TESCHT]T.TXT;1
%BACKUP-S-CREATED, created TEST:[GELSENWASSER.TESCHT]TTT.TXT;1 
[EOB]

any ideas ?

regards and thank's for your help ! 

Thomas
4317.3IOSG::MAURICEEnd of the road for the Emerald CityWed Jul 06 1994 15:4918
    Hi,
    
    The trace should have resulted in a file called a1trace.log in the same
    directory as the a1sub.log file. Can you copy it to somewhere
    accessible.
    
    Another factor seems to be the profile directory field (profil.direct).
    Can you let us know what that is.
    
    Also does the VMS account just have one ALL-IN-1 account?
    
    	for profil:vmsusr with .vmsusr eqs "...." do\get oa$sel_count
    
    will report how many there are.
    
    Cheers
    
    Stuart
4317.4FRSCS::TSCHOENThu Jul 07 1994 08:5037
Hi Stuart,

1.)The user has only one ALL-IN-1 account.

2.)Profile entry for this user:

                            Account Details

  ALL-IN-1 account details:

 Account name:  GELSENWASSER
 Directory: USER$SWS:[GELSENWASSER.A1]
 Form libr:

  VMS account details:

 Account name: GELSENWASSER
 When deleting the VMS account, delete from directory:
 USER$SWS:[GELSENWASSER]

  User details:

 Surname:    GELSENWASSER
 Given name: DU
 Initials:
 Full name:  DU GELSENWASSER

 Press RETURN to complete or press NEXT SCREEN for more details

3.)If you want to have a look in the trace log i'll copy this file to the 
   DECnet default account of the node FRSCS (49.100 = 50276).
   Name : GELSENWASSERA1TRACE.LOG.
   

cheers

Thomas
4317.5IOSG::MAURICEEnd of the road for the Emerald CityThu Jul 07 1994 10:4835
    Hi,
    
    Thanks for the information. The situation is that the UAF points to 
    
    	USER$SWS:[GELSENWASSER.TESCHT]
    
    The ALL-IN-1 Directory is USER$SWS:[GELSENWASSER.A1]
    
    The MDK code has been fooled by the fact that the device is the same
    and that the directory starts with [GELSENWASSER in both cases. It
    looks like the script should be using the delete_from field in the
    profile (USER$SWS:[GELSENWASSER] in this case).
    
    If you wish to try an experiment find the line in sm_movedisk.scp which
    is:
    
    	get #uaf_dir = UAI$.DEFDIR[#vms_user]
    
    After this line add:
    
    get #delete_from = profil.delete_from[#user]
    .if #delete_from nes ""
      .then
         get #uaf_device = file$.device[#delete_from]
         get #uaf_dir    = file$.directory[#delete_from]
    .end_if
    
    This will then make the script use the value found in the delete_from
    field rather than the UAF. Please note that I haven't tested this. If
    you do try it then I'd be very interested to know whether it solves
    your problem. In any case it will need to be made into an IPMT case.
    
    Cheers
    
    Stuart
4317.6thank's a lot !!!FRSCS::TSCHOENThu Jul 07 1994 12:4712
Hi Stuart,

i tested your solution and ========> IT WORKS FINE !!!!!!!!!!!!!!!!!!!

With your solution i was able to move the user to another directory with 
all files and subdirectories !

thank you very much for your help !!!!!

bye 

Thomas