Operating System - Tru64 Unix
1752800 Members
5589 Online
108789 Solutions
New Discussion юеВ

Re: how to restore ldb from cache to ldb file?

 
aven_guo
Occasional Contributor

how to restore ldb from cache to ldb file?

i delete ldb file,no backup and just no load into cache,now the license in cache is available, somebody can tell me how to restore from cache to ldb?
7 REPLIES 7
Ralf Puchner
Honored Contributor

Re: how to restore ldb from cache to ldb file?

man lmf?
a guess: lmf issue?
Help() { FirstReadManual(urgently); Go_to_it;; }
Abdul Rahiman
Esteemed Contributor

Re: how to restore ldb from cache to ldb file?

Yes .. it looks like (lmf issue & lmf register) is the way to go to recover the license from the kernel cache.

Try doing lmf issue to a file for each PAK and register back from the file. Syntax would be something like this,
# lmf issue advfs.lmf ADVFS-UTILITIES
# lmf register advfs.lmf
# lmf reset
PS: Try one by one, and make sure that your ldb gets updated when you register it.

HTH,
Abdul.


No unix, no fun
Ozan Baltaci
Occasional Contributor

Re: how to restore ldb from cache to ldb file?

Hi,
I made the same think in order to learn how to recover from the same situation of course with my backup:)
But lmf issue didn't work :

#lmf reset
Warning Creating new license database
#
#
#lmf issue advfs.lmf ADVFS-UTILITIES
No entry in license database for this product

So I returned from my backup.
fyi
Ralf Puchner
Honored Contributor

Re: how to restore ldb from cache to ldb file?

a lmf reset will clear the internal cache, so a "issue" command will not work! If reading the man-page the command ISSUE will extract a license from current cache, if cache is clear no extraction is possible!

Please read the man page of lmf for further informations....
Help() { FirstReadManual(urgently); Go_to_it;; }
Ozan Baltaci
Occasional Contributor

Re: how to restore ldb from cache to ldb file?

Hi,
You can be sure that before asking to this forum I search in manual pages!!
Even tough i do not clear the database i can not extract the licenses from the cache:

root@mom:/var/adm/lmf>rm ldb

root@mom:/var/adm/lmf>

root@mom:/var/adm/lmf>lmf list

Error opening license database /var/adm/lmf/ldb

lmf: No such file or directory


root@mom:/var/adm/lmf>

root@mom:/var/adm/lmf>lmf list cache



Product Name: ADVFS-UTILITIES

Producer: DEC



Product Name: OSF-SVR

Producer: DEC



Product Name: OSF-DEV

Producer: DEC



Product Name: OSF-BASE

Producer: DEC



Product Name: OSF-USR

Producer: DEC



Product Name: CXXOSF

Producer: DEC



Product Name: FUSE-C-USER

Producer: DEC



Product Name: FUSE-USER

Producer: DEC



Product Name: SYSV

Producer: DEC



Product Name: LSM-OA

Producer: DEC

root@mom:/var/adm/lmf>
root@mom:/var/adm/lmf>lmf issue advfs.lmf ADVFS-UTILITIES

Error reading license database /var/adm/lmf/ldb

It tries to take the license from the database not the cache...and i couldn't find the way to take the licenses from the cache in the manual pages...

Ralf Puchner
Honored Contributor

Re: how to restore ldb from cache to ldb file?

if a "lmf list full for product" output will not work use the backup or the original license card delivered with the cd-rom.
Help() { FirstReadManual(urgently); Go_to_it;; }
Ozan Baltaci
Occasional Contributor

Re: how to restore ldb from cache to ldb file?

OK,
This is the point. Steven's question is "is it possible to get ldb fila from the cache?"
So from your last answer I understand that mf issue is not solving the problem..
You must have a backup or the license card..