This article explains how to recover a corrupt LMF database prior to Server Express 2.2 Service Pack 2.
Problem:
Prior to Server Express 2.2 Service Pack 2, the recovery utility lmfdbrecover was not available. How do you recover a corrupt LMF database if you get the following message:
Micro Focus LMF - 002: The license database is corrupt.
The License Manager detected corruption in the license database. The license database may have been tampered with. Therefore, the License Management Facility terminated execution of the licensed product.
Resolution:
For Server Express 2.2 Service Pack 2 onwards, you can use $COBDIR/lmf/lmfdbrecover. Refer to the Development System Licensing Guide, Chapter 2, Administering the License Management Facility, Recovering from a Corrupt License Database. For older products, you will have to reinstall the License Manager component to reinstate the database with the correct structure. The steps are:- Determine where the live license database is.
 - Stop the License Manager.
 - Remove the mflmfdirectory.
 - Run the lmfinstall script to recreate the directory and associated files.
 - Add your keys.
 - Re-start License Manager.
 
Assuming the mflmf directory is in /home/products the commands are as follows:
> $COBDIR/lmf/lmfgetpv
License Manager version 127
Loaded from /home/products/mflmf
> su
Password:
# $COBDIR/lmf/lmfgetpv k
License Manager successfully terminated
>cd /home/products
>rm -rf mflmf
cd $COBDIR
# ./lmfinstall
Enter the directory name where you wish to install License Manager
(Press Enter for default directory /opt/microfocus/mflmf)
/home/products/mflmf
When finished, re-add your license keys.
>cd /home/products/mflmf
>./mflmadm
Re-start License Manager .
>./mflmman
#COBOL
#ServerExpress
#Licensing