10/17 07:14:45: VxVM vxconfigd ERROR V-5-1-0 Segmentation violation
10/17 07:14:45 server101 kernel: vxconfigd[8079]: segfault at ffffffffffffffeb ip 00007faf78fe52ab sp 00007ffd0a9f15a0 error 5 in libstdc++.so.6.0.19[7faf78f27000+e9000]
If more than 2 Permanent License keys are installed for InfoScale Family, vxconfigd/HAD core dumps with below stack
HAD Core Dump Stack:
Thread 1 (Thread 0x7f9f00164740 (LWP 32458)):
#0 0x00007f9efed9e2ab in std::string::assign(char const*, unsigned long) ()
from /lib64/libstdc++.so.6
#1 0x00007f9eff0b777c in FindNewLicenseKeysFromDiskAtETC ()
from /lib64/liblicmgr72.so
#2 0x00007f9eff0b76d2 in FindNewLicenseKeysFromDisk ()
from /lib64/liblicmgr72.so
#3 0x00007f9eff0bff24 in ReadLicenseText() () from /lib64/liblicmgr72.so
#4 0x00007f9eff0b9ef8 in LicInitLicensing () from /lib64/liblicmgr72.so
#5 0x0000000000612c15 in lcValidateDemoKeys (key_vlistp=0x14ada68)
at lc.C:1181
#6 0x000000000041de76 in MAIN (argc=2, argv=0x7fff906283e8) at had.C:3744
#7 0x000000000041f07b in main (argc=2, argv=0x7fff906283e8) at had.C:4022
vxconfigd Core Dump Stack:
Thread 1 (Thread 0x7feac49c9780 (LWP 14465)):
#0 0x00007feac33742ab in std::string::assign(char const*, unsigned long) ()
from /lib64/libstdc++.so.6
#1 0x00007feac409277c in FindNewLicenseKeysFromDiskAtETC ()
from /lib64/liblicmgr72.so
#2 0x00007feac40926d2 in FindNewLicenseKeysFromDisk ()
from /lib64/liblicmgr72.so
#3 0x00007feac409af24 in ReadLicenseText() () from /lib64/liblicmgr72.so
#4 0x00007feac4094ef8 in LicInitLicensing () from /lib64/liblicmgr72.so
#5 0x000000000078c080 in vxsig_lic_init ()
#6 0x00000000005a9a23 in do_lic_init ()
#7 0x0000000000521157 in kernel_module_init ()
#8 0x0000000000476746 in main ()
Excerpt of the licenses installed in the affected InfoScale 7.4 server:
3 licenses of Infoscale Enterprise are copied to /etc/vx/licenses/lic.
-rw-r--r--. 1 root root 4881 Oct 4 08:22 XXXXXXXX_QTY4_VRTS_IS_ENT_7_4_UNX_XXXXXXXXX.slf
-rw-r--r--. 1 root root 4881 Oct 4 08:22 XXXXXXXX_QTY4_VRTS_IS_ENT_7_4_UNX_XXXXXXXXX_1.slf
-rw-r--r--. 1 root root 4881 Oct 4 08:22 XXXXXXXX_QTY4_VRTS_IS_ENT_7_4_UNX_XXXXXXXXX_2.slf
Reason:
With Infoscale 7.4 or 7.4.1:
1. It is not recommended to copy the license keys to /etc/vx/licenses/lic directory.
2. we can have only 2 of the same product licenses at any point in time.
For example on InfoScale 7.4
#cd /etc/vx/licenses/lic
#mv xxxxxxxxxxx_QTY4_VRTS_IS_ENT_7_4_UNX_XXXXXXXXX_1.slf /var/tmp >> do it for all the licenses visible under the directory
# /opt/VRTSvlic/bin/vxlicinst -k
[root@server101 lic]# ls -l
total 16
-rw-r--r--. 1 root root 4881 Oct 4 08:22 XXXXXXXX_QTY4_VRTS_IS_ENT_7_4_UNX_XXXXXXXXX.slf
Restarting HAD/vxconfigd will not result in core dump.
Note : We need to use vxlicinst or vxlicinstupgrade commands to add permanent license keys to the server.