The problem of null hostid obtained by lmhostid

Source: Internet
Author: User

The problem of null hostid obtained by lmhostid
Lmhostid: The hostid is null. Problem Description

The previous flexlm virtual machine was migrated today, and an error was reported when it was started after the migration.

... Wrong hostid on SERVER line for license file...... SERVER line says 00e081787ba8, hostid is (Cannot get hostid of type 2 [])... Invalid hostid on SERVER line
Solution

From the Problem description, it seems that there is a problem with the hostid. check it with lmhostid and find that the obtained hostid is ""

./lmhostid lmhostid - Copyright (c) 1989-2004 by Macrovision Corporation. All rights reserved.The FLEXlm host ID of this machine is ""

Because FLEXlm uses the mac address of the first network adapter (eth0) as the hostid, ifconfig is used to check the network configuration. It is found that no eth0 exists, as shown below:

eth1 Link encap:Ethernet HWaddr 00:E0:81:78:7B:A8 inet addr:192.168.0.88 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::2e0:81ff:fe78:7ba8/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2463804 errors:0 dropped:0 overruns:0 frame:0 TX packets:345560 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:924819172 (881.9 MiB) TX bytes:34087357 (32.5 MiB) Interrupt:11 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:2843863 errors:0 dropped:0 overruns:0 frame:0 TX packets:2843863 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:729294023 (695.5 MiB) TX bytes:729294023 (695.5 MiB)

However, eth0 is used in linux's built-in network Configuration tool and file configuration under/etc/sysconfig/network-scripts. This indicates that the configuration is inconsistent.

Finally, check the/etc/udev/rules. d/70-persistent-net.rules file.

# PCI device 0x1af4:0x1000 (virtio-pci)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*l", ATTR{address}=="00:e0:81:78:7b:a8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"# PCI device 0x10ec:0x8139 (8139cp)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:81:78:7b:a8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

The problem is found. There are two Nic configuration items, which are changed

# PCI device 0x10ec:0x8139 (8139cp)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:81:78:7b:a8", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Restart the machine to solve the problem.

Reprinted please mark the address of this article as a link
Address: http://blog.csdn.net/kongxx/article/details/50480696

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.