阿里云更换 License 后无法增加 CPU
2025/10/29大约 1 分钟
阿里云更换 License 后无法增加 CPU
问题现象
某用户将运行在云上的 FortiGate HA 两台虚机的 License 由评估 License 更换为正式 License,如 FortiGate-VM04 替换为 FortiGate-VM04-S。
更换后,备机 VM 的 CPU 变为 1 个。
FGT-VM64-KVM-1502 # get system status ...... Serial-Number: FGVMSLTM23007738 License Status: Valid VM Resources: 1 CPU/1 allowed, 7735 MB RAM ...... FGT-VM64-KVM-1502 # diagnose debug vm-print-license SerialNumber: FGVMSLTM23007738 CreateDate: Thu Dec 21 03:23:20 2023 Key: yes Cert: yes Key2: yes Cert2: yes Model: SL (18) CPU: 1 (subscription:0) MEM: 2147483647 VDOM license: permanent: 1 subscription: 0 FGT-VM64-KVM-1502 # diagnose hardware sysinfo vm full UUID: 95790208a255482da2b95a817a2ffdd3 valid: 1 status: 1 code: 200 warn: 0 copy: 0 received: 4294939474 warning: 4294939474 recv: 202312260754 dup:无法通过
exe cpu add添加 CPU。FGT-VM64-KVM-1502 # exe cpu add 3 CPU number exceeds license limit. Command fail. Return code -61
解决办法
将 FortiGate HA 主备切换后,在新主机(原备机)执行
execute update-now手动触发更新,之后可以正常添加 CPU Core。FGT-VM64-KVM-1502 # exe update-now ...... FGT-VM64-KVM-1502 # exe cpu add 3 Active CPU number: 4 Total CPU number: 4 FGT-VM64-KVM-1502 # exe cpu show Active CPU number: 4 Total CPU number: 4查看该 VM 相关参数均显示为新 License 的 CPU 信息。
FGT-VM64-KVM-1502 # get system status ...... Serial-Number: FGVMSLTM23007738 License Status: Valid VM Resources: 4 CPU/4 allowed, 7735 MB RAM ...... FGT-VM64-KVM-1502 # diagnose debug vm-print-license SerialNumber: FGVMSLTM23007738 CreateDate: Thu Dec 21 03:23:20 2023 License expires: Wed Feb 21 08:00:00 2024 Key: yes Cert: yes Key2: yes Cert2: yes Model: SL (18) CPU: 4 (subscription:4) MEM: 2147483647 VDOM license: permanent: 1 subscription: 0 FGT-VM64-KVM-1502 # diagnose hardware sysinfo vm full UUID: 95790208a255482da2b95a817a2ffdd3 valid: 1 status: 1 code: 200 warn: 0 copy: 0 received: 4294939353 warning: 4294986323 recv: 202312260824 dup: