Invalid host. The hostid of this system does not match the hostid specified in the license file. Unserved licenses can only be used on the
host for which the license was generated.
If the license is intended for use on this machine then you need to check-in the license and regenerate it using the host id for this machine.
The hostid of this system does not match the hostid specified in the license file.
License feature name: IQ_CORE
License hostid: PARTITION-ID=8000054CC0700002
License search path: /sybase/iq15/SYSAM-2_0/licenses/DBPACR01_CORE.lic:/sybase
Reproducing the Issue
There are steps to reproduce.
1. To get partition-level information, enter:
-> sysamcap PARTITION
2. Set the SYBASE_SAM_CAPACITY environment variable to the value reported by sysamcap without set or export.
[.profile]
SYBASE_SAM_CAPACITY=PARTITION:5BE2710DC0A499FF1A074D9CBA94788E1DE271F04D8007FC1FCE93A5E8306A12E40913367DAA8CDA26572F4066E5C03310
3. Generate with partition id
- PARTITION-ID=8000054CC0700002
4. IQ failed to checkout even though license has a correct host id.
Cause
In case of sub-capacity license, set the SYBASE_SAM_CAPACITY environment variable to the value reported by sysamcap correctly.
We can see the information of diagnosis using sysam utility when SYBASE_SAM_CAPACITY variable is not defined correctly.
[sysam diag]
"IQ_CORE" v2016.05310, vendor: SYBASE uncounted nodelocked license, locked to Vendor-defined "PARTITION-ID=8000054CC0700002"
starts: 1-jan-1990, no expiration date
...
This license cannot be checked out because: Everything is okay except possibly the hostid, which is a non-standard,
vendor-defined hostid, that lmdiag can't verify
Resolution
The SYBASE_SAM_CAPACITY environment variable should be defined by set or export like below.
ex) export SYBASE_SAM_CAPACITY=PARTITION:5BE2710DC0A499FF1A074D9CBA94788E1DE271F04D8007FC1FCE93A5E8306A12E40913367DAA8CDA26572F4066E5C03310
If it does support sub-capacity then IQ should report the same message as cpuinfo when the environment variable is set, i.e.
[cpuinfo -v ]
...
Licensing capacity set to PARTITION licensing. All product instances running on acrdbp01 (HOSTID=PARTITION-ID=8000054cc0700002)
will share licenses. License quantities are based on 88 logical processor(s), 22 core(s) in 3 chip(s).
,,,
Thanks
Gi-Sung Jang