Created On: 26 October 2010
Problem:
When a server is restored from backup, a "license database corrupt" message will often be encountered. In that case, the development license database must be recovered, and the licenses reentered, and the license manager process manually restarted.
These tasks must be performed from the operative LMF directory. If the system administrator has not kept a record of this location, then the operative LMF directory must somehow be located.
These tasks must be performed from the operative LMF directory. If the system administrator has not kept a record of this location, then the operative LMF directory must somehow be located.
Resolution:
One way of discovering the location of the operative LMF directory, is by invoking the command "lmfgetpv" from within $COBDIR/lmf. For example, enter:
$COBDIR/lmf/lmfgetpv
If the License Manager is running, lmfgetpv will produce output similar to:
License Manager version 129
$COBDIR/lmf/lmfgetpv
If the License Manager is running, lmfgetpv will produce output similar to:
License Manager version 129
Loaded from /opt/microfocus/mflmf
The "loaded from" location is the operative LMF location. In the above example, "/opt/microfocus/mflmf" was discovered to be the operative LMF location.
If the License Manager is not running, lmfgetpv will report:
License Manager is not running
In that case, a way of discovering the LMF location is by entering the following command:
grep COBDIR= /etc/mflmrcscript
The COBDIR returned from this 'grep' command is the operative LMF directory that is configured for automatic start at boot time. Note: in just this particular case, COBDIR does not mean the location where Server Express is installed, it means the operative LMF location.
If neither of these methods work, you can use a "find" command to search the system, for example:
find / -name lmfgetpv 2>/dev/null
Note: Within an installation of Server Express (i.e. within $COBDIR) there is a subdirectory named "lmf". It contains files associated with licensing. But $COBDIR/lmf is not the official operative location of the License Management Facility. Instead, during product installation, the shell script $COBDIR/lmf/lmfinstall copies files to a separate location outside of $COBDIR to create an official operative LMF directory. The files in $COBDIR/lmf are a "template", or a collection of components meant to be installed elsewhere.
When using a "find" command to search for lmfgetpv, ignore directories named "lmf" subordinate to a $COBDIR, and look for directories containing "lmfgetpv" that exist outside of any $COBDIR.
When you discover the operative LMF location, change directories there and begin administering development licenses.
The "loaded from" location is the operative LMF location. In the above example, "/opt/microfocus/mflmf" was discovered to be the operative LMF location.
If the License Manager is not running, lmfgetpv will report:
License Manager is not running
In that case, a way of discovering the LMF location is by entering the following command:
grep COBDIR= /etc/mflmrcscript
The COBDIR returned from this 'grep' command is the operative LMF directory that is configured for automatic start at boot time. Note: in just this particular case, COBDIR does not mean the location where Server Express is installed, it means the operative LMF location.
If neither of these methods work, you can use a "find" command to search the system, for example:
find / -name lmfgetpv 2>/dev/null
Note: Within an installation of Server Express (i.e. within $COBDIR) there is a subdirectory named "lmf". It contains files associated with licensing. But $COBDIR/lmf is not the official operative location of the License Management Facility. Instead, during product installation, the shell script $COBDIR/lmf/lmfinstall copies files to a separate location outside of $COBDIR to create an official operative LMF directory. The files in $COBDIR/lmf are a "template", or a collection of components meant to be installed elsewhere.
When using a "find" command to search for lmfgetpv, ignore directories named "lmf" subordinate to a $COBDIR, and look for directories containing "lmfgetpv" that exist outside of any $COBDIR.
When you discover the operative LMF location, change directories there and begin administering development licenses.
Old KB# 32009