[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

1390.0. "DOCDB error after renaming VMS account" by MCIS2::CLAYBROOK () Thu Sep 10 1992 15:17

    My name is Dan Claybrook and I'm a System Manager here in Marlboro Ma.
    We're running ALL-IN-1 V3.0 and VMS V5.5-1. The problem is that an
    administrator renamed a user's account per request by the user. The
    person's user name was THOMAS and it was changed to CATHOMAS. The only
    thing changed in ALL-IN-1 was his DIR. with the device location and VMS
    name. After the rename was completed the user got into the account and had
    an error in the bottom left corner of the window, the error was "Error
    opening drawer file "DOCDB" and the Current Item Box is empty and nothing
    can be done in the account.
    
    I've seen something like this before where the partition needed to be
    reseeded after making sure that the .OA dir. and subdir's had full System
    access, that always worked. One time it didn't and I deleted the
    FILECAB.DAT and then got back into the account and it was all set, but that
    didn't work this time either.
    
    Here's what's in the Housekeeping log that ran last night.
    
    
    Test of ALL-IN-1 File Cabinets & Drawers
    ========================================
    
    ERROR - there is no DOCDB.DAT file in drawer:            
    [THOMAS.CLAUDE]MAIN -
    Directory: USER5:[THOMAS.OA]
    ERROR - there is no DAF.DAT file in drawer:              
    [THOMAS.CLAUDE]MAIN -
    Directory: USER5:[THOMAS.OA]
    WARNING - drawer owner not a VMS account name in drawer:   
    [THOMAS.CLAUDE]MAIN
    - Owner: THOMAS
        
    
    I'm not sure if I should create a new local drawer under SM, MFC, MD. I
    tried to Edit the drawer but I get the same error.
    
	Error opening drawer file "DOCDB"
    
    Thanks
    
    Dan Claybrook

T.RTitleUserPersonal
Name
DateLines
1390.1partition details not updatedIOSG::TYLDESLEYThu Sep 10 1992 16:2810
    I have made contact with Dan by 'phone, and Dan has reversed the
    the rename which was done to the VMS account alone. The ALL-IN-1 
    account is now working again, and when the user has accessed his
    new mail we shall try to rename the VMS account, taking into account 
    the changes that need to be made to the partition and filecab.dat.
    A solution for situations like this may just be available in a possible
    future release of ALL-IN-1.
    
    Cheers
    DaveT 
1390.2Same problem after a MDKPAKORA::GMURRAYHave Mercy I Cry City !Thu Nov 12 1992 14:1922
    
    	Hi,
    
    	I have just had the same problem as Dan, but in my case it occurred
    	directly after a MDK (Move account to another disk) operation.
    
    	The full error message reads :
    
    	Error opening drawer file "DOCDB"
    	-RMS-E-DNF, directory not found.
    
    	The PROFILE record points to the new directory on the new disk, and
    	the directory is there OK.
    
    	Can you tell me what steps I should take to resolve this ?
    
    	Thanks a lot,
    
    		Gil
    
    
    	
1390.3need more info, plsIOSG::TYLDESLEYFri Nov 13 1992 11:3010
    Hi Gil,
    
    Not seen this before, after Move Disk. It would seem like something in
    the Partition is not getting updated during MDK (same symptom as Dan, 
    but different cause).
         
    Could you please post a pointer to the relevant MDK log in OA$LOG:?
    
    Cheers
    DaveT
1390.4OA$MANAGER_MOVEDISK.LOGMASALA::GMURRAYHave Mercy I Cry City !Fri Nov 13 1992 13:0866
    Hi Dave,
               
    Thanks for the reply. Here is the log file from OA$LOG - as it was
    quite small I decided just to post the whole thing. I can't see 
    anything, but maybe you can ?
    
    Cheers,
    
    	Gil
    
$	tag = f$getjpi("","PID")
$	full_success = "1"
$!	
$	admin_id		= P1
$	new_device		= P2 - ":" + ":"
$	data_file		= P3
$	admin_language		= P4 
$	sm_mgr_account_a1	= P5
$! Store current directory
$	save_default = f$environment("DEFAULT")
$! Set Privileges
$	priv_error = 0
$       curr_priv := READALL,SYSPRV,EXQUOTA,OPER,SYSNAM
$ 	if .not. f$privilege("READALL,SYSPRV,EXQUOTA,OPER,SYSNAM") then -
          priv_error = 1
$!
$	allin1/user=MANAGER/noinit/reenter/language=BRITISH
	oa$ini_init

	do oa$lib:sm_movedisk
Get the next account
Starting to process ALL-IN-1 username REILLY.DAVID
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
Quota located on source disk
Examine quota on destination disk
Run SYSMAN to add/modify quota on destination disk
Make sure drawer files are not locked by anything else...
Use BACKUP to move users files to the new disk
Check the the BACKUP has moved the DOCDB.DAT file
Put the new directory spec in the profile
Set the device name in the SYSUAF
Update user's Profile DELETE_FROM field if applicable...
Move drawers...
Delete files on source disk
Remove quota on source device
Re-enable the account
Successfully completed account move
Get the next account
All user accounts processed
Build mail boilerplate
Issue mail to Administrator
%OA-E-OAFE, Unknown, ambiguous, or invalid function """
%OA-W-QUO_NODISKQUOTA, There is no diskquota entry for this user on this volume
%EMD-I-USESEND, Send this message when you are ready
%EMD-I-MESSENT, The message has been sent
%EMD-W-NOCURMESS, There is no current message  -  please select a message
%EMD-W-NOCURMESS, There is no current message  -  please select a message
$!
$	if full_success .eqs. "1" then goto finish
$finish:

1390.5oa$lib:sm_movedisk.scp?IOSG::TYLDESLEYFri Nov 13 1992 14:265
    Thanks Gil. We are looking at MDK at the moment, and will get back to
    you. While we do so, could you just check that there are no
    customizations to MDK on your system. thanks
    
    DaveT
1390.6How do you delete record from PARTITION.DAT ?MASALA::GMURRAYHave Mercy I Cry City !Fri Nov 13 1992 14:3027
    
    Hi again,
    
    I've just searched PARTITION.DAT for the offending drawer name, and
    sure enough, the directory entry for that record still points to the
    old disk.
    
    I reckoned that if I could delete the old record I'd then be able to
    use the MFC MP ADD option to re-add the user's MAIN drawer with the
    correct disk spec. However, I'm a bit stuck on how to do the delete.
    
    In my ignorance I tried lifting some syntax from OA$LIB:SEED_USER as 
    follows, but it didn't work :
    
    <get #partition = "KIRKTN::"
    
    <get #OAFC_DRAW_NAME = "[REILLY.DAVID]MAIN"
    
    <write delete PART$MAINT:#PARTITION.%KEY[#OAFC_DRAW_NAME]
    
    Can this be done ?
    
    Cheers,
    
    		Gil
    
                   
1390.7yesIOSG::TYLDESLEYFri Nov 13 1992 14:4710
    Hi Gil,
    
    Very rushed at the moment - I will send you a script that does 'things'
    to Partition (!). Not exactly what you want, but it will give you an
    idea of the required syntax and fields available. Have to go now, but
    let me know how it goes....
    Cheesr
    DaveT
    P.S. sending script now..
    
1390.8No customisations I can see...MASALA::GMURRAYHave Mercy I Cry City !Fri Nov 13 1992 14:5024
    
    Hi,
    
    Our last two entries must have gone in almost at the same time !
    
    I've checked for customisations to MDK, and there don't seem to be any.
    
    MDK is an option on the SM$MUA form, which sits in MANAGER.FLB in the
    Digital area.
    
    All the scripts that it references (on quick inspection) are all
    located in the Digital area too.
    
    We did use SYSTOOL before the Diamond upgrade, but this account was
    definitely moved using SM rather than SYS to bring up the system
    management options.
    
    Hope this helps,
    
    Cheers,
    
    		Gil
    
     
1390.9Script to update partitionPAKORA::GMURRAYHave Mercy I Cry City !Mon Nov 16 1992 10:3931
    
    Hi and thanks for the script,
    
    From it I was able to knock up a very basic script which was successful
    in updating the PARTITION.DAT record. I thought I should include it
    here in case it can be of help to others :
    
!
!update_partition.scp
!
Display Starting...
force
for partition with .unique_name = "[RENDELL.DAVID]MAIN" do -
   write change partition unique_name = "[RENDELL.DAVID]MAIN", -
      directory="MANU_DISK2:[DRENDELL.ALLIN1]"
get oa$display=oa$status
!
    
    There is one more thing that I'd like to know - I noticed an additional
    field in the PARTITION record which seems to contain just the user's
    default disk device name, eg $2$DUS4 in this case. This is quite
    seperate from the directory field, and I left it as it was (pointing to
    the old disk). Although the user's account is now functioning normally
    again, I'd like to know the name of this field and its function, so
    that I can update it too.
    
    Thanks,
    
    Gil
    
    
1390.10Can't find MANAGERS DOCDBNWGEDU::MACKNEYMon Jul 05 1993 20:2010
    I just moved my whole allin1 area to another disk. I changed the profil
    of Manager (to reflect the new [ALLIN1.MGR] location and modified the
    UAF entry. Now I get a message from ALL-IN-1 saying it can't find my
    DOCDB. 
    
    Reading through this note, I saw a reply refering to PARTITION.DAT. I
    dumped this and I see it contains a pointer for MANAGER to the old
    directory. Where did I go wrong and how can I put it right.
    
    John
1390.11Re-seed the partitionSCOTTC::MARSHALLSpitfire Drivers Do It ToplessTue Jul 06 1993 12:3111
You need to reseed the manager's partition entry, ie:

    GET #oafc_seed_user = "MANAGER"
    DO oa$lib:oafc_part_seed.scp

There are zillions of notes in here on this topic if you need more info.

Note this will only re-seed the manager's MAIN drawer; if other drawers have
moved disk, you'll have to track them down and fix them as well.

Scott
1390.12So when's the house warming party Scott, hm?IOSG::STANDAGETue Jul 06 1993 13:0012
    
    One slight alteration, it's :
    
    DO OA$LIB:OAFC$PART_SEED.SCP
    
    
    ...but Scott was close enough :-)
    
    
    Kevin.
    
    
1390.13seeding does MAIN drawer onlyCHRLIE::HUSTONTue Jul 06 1993 15:359
    
    One further note to Scott and Kevin,
    
    This will take care of the MAIN drawer, if the manager has created
    other drawers, that physically existed in his directory tree, then
    these will also be wrong. They will need to be updated as well.
    
    --Bob