When checking the license status of GBase Database(GBase 8s), most DBAs focus on Time limit and license expiration. But there is another field that can cause serious problems during hardware migration: MAC Address.
It may be only one line in the license output, but ignoring it before a server migration can turn a routine infrastructure change into a database startup problem.
1. What Does MAC Address Mean in onpsc -q?
Run the following command to check the license information:
onpsc -q
One of the output fields looks like this:
MAC Address 0cc47aa9d8d2
The MAC Address field records the network interface address associated with the license binding.
In GBase Database(GBase 8s), this value needs to be checked against the server's network interface configuration. Unlike a hostname or IP address, a MAC address identifies a network interface at the hardware or virtual network adapter level.
2. Why Does MAC Address Matter During Migration?
The key issue is that changing the server environment may also change the MAC address.
Consider three common scenarios:
Physical hardware replacement
When replacing a server, its network interface MAC address will usually change. The existing license binding may no longer match the new environment.
Virtual machine migration
Moving a VM to another hypervisor or rebuilding its virtual network adapter can result in a different MAC address, depending on the migration method and platform configuration.
Environment cloning
Cloning a production environment for testing requires special attention. Do not assume that a production license can be reused freely on a cloned test machine. Verify the applicable license terms and obtain the appropriate authorization.
These scenarios should all be considered during database infrastructure planning.
3. How to Verify the MAC Address
Start by checking the license information:
onpsc -q
Then inspect the server's network interfaces:
ip link | grep -i ether
Compare the MAC address from onpsc -q with the addresses shown by the operating system.
For example:
License:
0cc47aa9d8d2
Network interface:
00:cc:47:aa:9d:d2
The formats may differ:
- License output: 12 continuous hexadecimal characters.
- Linux output: hexadecimal pairs separated by colons.
Normalize the format before comparing.
One important detail: servers often have multiple network interfaces. Do not simply compare the license value against the first MAC address returned by the command.
Identify the interface associated with the database environment and verify its configuration.
4. What Happens When the MAC Address Changes?
A mismatch between the licensed address and the current server environment may cause license validation problems.
Depending on the license configuration and startup scenario, the symptoms may include:
- Database instance startup failures.
- License validation errors.
- Restricted availability of licensed capabilities.
The important point is that the visible symptom may appear during database startup rather than during the infrastructure migration itself.
This is why checking the license binding before migration is more effective than troubleshooting it after the new environment is already deployed.
5. Special Considerations for Multi-NIC Environments
Production servers commonly have several network interfaces:
- Business network interface.
- Management network interface.
- Heartbeat or cluster communication interface.
With multiple NICs, identifying the correct MAC address is essential.
A practical verification sequence is:
- Run
onpsc -qand record the licensed MAC address. - Run
ip linkand identify the matching network interface. - Check the interface's configuration and persistence across reboots.
- Confirm that the planned migration will preserve the required license binding or arrange license reauthorization in advance.
For virtual machines, also check whether the hypervisor preserves the virtual NIC's MAC address during migration.
The interface name alone is not sufficient. The actual MAC address is what matters.
6. Add MAC Address Verification to Your Migration Checklist
For GBase Database administrators, MAC address verification is not necessarily a daily monitoring task. It is a critical pre-migration check.
Before replacing hardware, migrating virtual machines, or cloning an environment, record:
- Current license MAC address from
onpsc -q. - Matching network interface from
ip link. - Planned network interface changes.
- License requirements for the target environment.
If the target environment cannot preserve the existing binding, confirm the required license changes with the vendor before proceeding.
Conclusion
The MAC Address field may be seventh in the onpsc -q output, but its operational impact can be significant.
For GBase Database(GBase 8s), understanding license binding is part of infrastructure migration planning, not just license administration.
Check the MAC address before moving the database. It is a small verification step that can prevent much larger troubleshooting efforts later.
Top comments (0)