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

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

2550.0. "MCC Routine Error = %MCC-E-IO_ERROR, error was returned by I/O facility" by BEAGLE::DIVINE () Thu Mar 12 1992 07:34

Hi, 

	I am working in the European ASSETS Library in Valbonne.

	I am testing at this time a new ACCESS MODULE which works whith 
	DECmcc 1.2 only.

	The config is the following :

	- DECstation 5125 with 32 Mbytes of memroy.

	- Ultrix V4.2

	- DECmcc T1.2.4


	At a certain point in time the DECstation crashed (for the 3rd time
	since the morning.)

	BUT this time , it asked me to do a manual FSCK on /usr.

	During this FSCK , it found 2 bad files :

		 /var/mcc/MCC_ALARMS_INSTANCE_MIR.pag
		 /var/mcc/mcc_alarms_notification_log
	
	and it asked me if I want to remove them.

	First time , I answered NO ,but the FSCK failed , so I restarted it
	and answered YES to remove the 2 files.


	Everything fine , the DECstation rebooted without any more problem.


	Then the REAL trouble started :

	I called mcc_iconic_map and got all my definitions concerning the
	ENTITIES , but when viewing the RULES , they all have disappeared.

	Never mind , I got a script to define them 
!
!
!                       CRITICAL rule for ANY EVENT
!
disable mcc 0 alarms rule udm_any_event, in domain .udm_valbonne
delete mcc 0 alarms rule udm_any_event, in domain .udm_valbonne
!
create mcc 0 alarm rule  udm_any_event -
expression = (occurs ( ultrix .fiston any event)), -
parameter = "MAIL=udmman LOG=UDM_ANY_EVENT" , -
procedure = /usr/udm/mgt_alarms, -
perceived severity = critical, -
in domain = .udm_valbonne
!
show mcc 0 alarms rule udm_any_event, in domain .udm_valbonne
enable mcc 0 alarms rule udm_any_event, in domain .udm_valbonne


	, BUT it gave me the following error 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
unitom.vbo.dec.com>  manage < udm_fiston_any_event

DECmcc (T1.2.4)
 
MCC 0 ALARMS RULE udm_any_event
AT 1992-03-12-09:23:17.406Iinf

No such entity: MCC 0 ALARMS RULE udm_any_event
                         Unknown Entity = MCC 0 ALARMS RULE udm_any_event

MCC 0 ALARMS RULE udm_any_event
AT 1992-03-12-09:23:17.891Iinf

Entity did not exist.

MCC 0 ALARMS RULE udm_any_event
AT 1992-03-12-09:23:18.676Iinf

Software logic error detected
>>>>>>>>>>>>>>      MCC Routine Error = %MCC-E-IO_ERROR, error was returned 
							      by I/O facility
Using default ALL IDENTIFIERS

MCC 0 ALARMS RULE udm_any_event
AT 1992-03-12-09:23:19.699Iinf Identifiers

No such entity: MCC 0 ALARMS RULE udm_any_event
                         Unknown Entity = MCC 0 ALARMS RULE udm_any_event ,


MCC 0 ALARMS RULE udm_any_event
AT 1992-03-12-09:23:20.008Iinf

No such entity: MCC 0 ALARMS RULE udm_any_event
                         Unknown Entity = MCC 0 ALARMS RULE udm_any_event                                      		
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	I already restored 


-rw-rw-rw-  1 root    4096 Mar 11 17:53 /var/mcc/MCC_ALARMS_INSTANCE_MIR.dir
-rw-rw-rw-  1 root    4096 Feb 26 16:00 /var/mcc/MCC_ALARMS_INSTANCE_MIR.dir_bad
-rw-rw-rw-  1 root    2048 Mar 11 17:53 /var/mcc/MCC_ALARMS_INSTANCE_MIR.pag

	but I still get the same error.

	I deinstall and reinstall my new ACCESS MODULE without any more success.

	The next step , will be to deinstall/reinstall DECmcc but do you have
	any other idea to solve this problem ??

	Thanks for any answer / comments / help .

	Regards,

	/Denis


	
			
T.RTitleUserPersonal
Name
DateLines
2550.1You Deleted the Alarms MIR !!!NANOVX::ROBERTSKeith Roberts - DECmcc Toolkit TeamThu Mar 12 1992 10:5016
  Denis,

  FSCK deleted the Alarms MIR ... That is why you had no rules !!

  I am not sure about the IO_ERROR you are getting ... but I suggest
  that you Delete the Alarms MIR files again, and the re-enroll Alarms:

    % rm /var/mcc/MCC_ALARMS_INSTANCE_MIR.pag
    % manage
    MCC> enroll mcc_alarms_fm

  Alarms will recreate its MIR files during enrollment.

  Give this a try, and let us know how it goes.

  /keith
2550.2Vive DBM !TAEC::LAVILLATThu Mar 12 1992 10:5735
>        During this FSCK , it found 2 bad files :
>
>                 /var/mcc/MCC_ALARMS_INSTANCE_MIR.pag
>                 /var/mcc/mcc_alarms_notification_log
>        

I am not a DBM expert but the .pag file is working in combination with a .dir
file, so you should have removed *both* files.

>        I already restored 
>
>
>-rw-rw-rw-  1 root    4096 Mar 11 17:53 /var/mcc/MCC_ALARMS_INSTANCE_MIR.dir
>-rw-rw-rw-  1 root    4096 Feb 26 16:00 /var/mcc/MCC_ALARMS_INSTANCE_MIR.dir_bad
>-rw-rw-rw-  1 root    2048 Mar 11 17:53 /var/mcc/MCC_ALARMS_INSTANCE_MIR.pag
>
>        but I still get the same error.
>

Yes, this is because these files are stupid files and cannot be restored (guess
it was from a backup file). This is because these file have holes in them that
are filled in when you back-up them (or something like that...)

>
>        The next step , will be to deinstall/reinstall DECmcc but do you have
>        any other idea to solve this problem ??
>

you should try first to remove both /var/mcc/MCC_ALARMS_INSTANCE_MIR.dir and 
/var/mcc/MCC_ALARMS_INSTANCE_MIR.pag and re-enroll the ALARMS_FM.

Regards.

Pierre.

2550.3Check protectionTOOK::MINTZErik Mintz, DECmcc Development, dtn 226-5033Thu Mar 12 1992 11:565
Also, double check the ownership and protection of the alarms MIR files
after you re-create them.

-- Erik

2550.4It's working again....THANKSSSSSSSSSSSSS!!!!!!BEAGLE::DIVINEThu Mar 12 1992 12:2230

Gentlemen,

	Many thanks it's working again.

	1] I removed only /var/mcc/MCC_ALARMS_INSTANCE_MIR.pag

	When I enrol the ALARM_FM

  		      >>>>>>    SAME ERROR MESSAGE

	2] I removed 	/var/mcc/MCC_ALARMS_INSTANCE_MIR.pag  
					&
			/var/mcc/MCC_ALARMS_INSTANCE_MIR.dir
	
	When I enrol the ALARM_FM

  		      >>>>>>    SAME ERROR MESSAGE	

	3] I kill DECmcc and retry my alarm definition

	and NOW IT IS WORKING FINE..


	Thanks again for your help , you save my life (or at least a customer demo)

	Cheers,

	/Denis
2550.5Some inaccuracies in previous note...TOOK::SWISTJim Swist LKG2-2/T2 DTN 226-7102Thu Mar 12 1992 12:347
    MIR (dbm) files *can* be backed up and restored.  The problem is that
    if they are very large (>5MB), the restored files may take more
    physical space than the original files, but the data will be the same.
    Also note that this only occurs if backup/restore is done with logical
    file utilities like cp or tar.  Physical copy utilities like dump(1)
    will not lose space if you restore the files.
    
2550.6Sorry...TAEC::LAVILLATThu Mar 12 1992 15:2221
>
>    MIR (dbm) files *can* be backed up and restored.  The problem is that
>    if they are very large (>5MB), the restored files may take more
>    physical space than the original files, but the data will be the same.
>    Also note that this only occurs if backup/restore is done with logical
>    file utilities like cp or tar.  Physical copy utilities like dump(1)
>    will not lose space if you restore the files.
>    

Sorry then...

So why were we using things like mcc_dup / mcc_dlp some time ago ?

I really thougth it was not just a space/holes problem.

Anyway I still say : Vive DBM !

Regards.

Pierre.

2550.7More on DBMMOLAR::BLACKMon Mar 16 1992 17:1733
    DBM files cannot be copied by normal means (cp, cat, tp, tar or ar)   
    without filling in the holes.  Filling in the holes does not invalidate
    the file; it does, however, eat disk space needlessly.  The move
    command, 'mv' does not fill in the holes unless, of course, if the move
    results in a copy,  i.e. moving from one file system to another.  
    
    Use of setld for installations forced us to depend on files being
    copied by normal means as defined above.  Since the dictionary was
    huge, we provided mcc_dlp/mcc_dup to transport the dictionary to and
    from ultrix installations and to copy the dictionary within an
    installation.  This greatly reduced the disk requirements for DECmcc
    installations.
    
    Beginning with baselevel x1.2.18 we will begin again using a DBM-based
    dictionary.  We provide a new tool, mcc_ndbm, to load and update DBM
    files.
    
    --------------------------------------------------------------------------
    mcc_ndbm documentation --
    
    mcc_ndbm is a simple utility that unloads (-u) and loads (-l) sparsely
    populated databases (ndbm files).  This utility is primarily for use
    with the dictionary though it will work on MIR files as well.
    
            mcc_ndbm requires three arguments:
              mcc_ndbm -[u,l] <source> <destination>
              mcc_ndbm -u ndbmfile outfile
              mcc_ndbm -l infile ndbmfile
    
    In and out files are variable length record files. Variable length
    record files may have any extension. By default .dir/.pag are appended
    to ndbm files. If a .dat extension is present on a ndbm file,
    .dat/.dat.dir files are expected/created.