Running a Trusted Storage Restoration

If trusted storage is determined to be corrupt, you can restore the last successful backup of trusted storage.

To restore trusted storage from the backup

1. Stop the license server.
2. Use the -restore-database argument with the command that runs the license server script to restore trusted storage.

The path value used in this command is the path to the trusted-storage backup file flexnetls_licenses.mv.db.ts, located under tsBackup in the trusted storage directory. Note that the explicit path values listed in this step use the default value (${base.dir}) for the license server policy server.trustedStorageDir, which defines the trusted storage directory. You might need to adjust the path based on this policy definition on your license server. (See Reference: License Server Policy Settings.)

If more than one user log-in will be doing a restore, server.trustedStorageDir should be set to a path other than ${base.dir}. See the producer for updating this policy.

On Windows

In console mode, enter:

flexnetls.bat -restore-database path 

where path is C:\Users\user_name\flexnetls\producer_name\tsBackup\flexnetls_licenses.mv.db.ts.

As a service, enter:

flexnetls -restore-database path 

where path is C:\Windows\ServiceProfiles\NetworkService\flexnetls\producer_name\tsBackup\flexnetls_licenses.
mv.db.ts
.

On Linux

In console mode, enter:

./flexnetls -restore-database path 

where path is /var/opt/flexnetls/producer_name/tsBackup/flexnetls_licenses.mv.db.ts.

As a service (Systemd or SysV), use the same command as used for console mode.
3. Restart the license server.

Best practice is never to delete any files in directory containing the corrupted trusted storage; allow the restoration process handle the fix. However, if for some reason you need to remove the corrupted data, delete only flexnetls_licenses.mv.db.

One basic method you can use to verify that trusted storage has been restored to its previous uncorrupted state is to check the feature counts in trusted storage, using the license server administrator tool provided by the producer.