记录Cisco PI设备提示can not start DB

1.故障现象

重启PI之后,发现报错,提示 initHealthMonitor(): can not start DB

2.尝试分析和解决

通过在社区上找相关资料,发现这是数据库无法启动 ncs 服务的常见问题。关于修复的话,可以参考如下的步骤:

  1. 执行 ncs cleanup 命令(# ncs cleanup)

  2. 停止 ncs 服务(# ncs stop)并重新初始化数据库(# ncs db reinit)------测试下来ncd db reinit这个命令不存在!

  3. 如果以上方法无效,则需要全新安装 Prime,并恢复 Prime 的备份(如有)。

如下摘取部分过程:

复制代码
#第一步,输入ncs cleanup
piva36/admin# ncs cleanup
***************************************************************************
!!!!!!!                           WARNING                           !!!!!!!
***************************************************************************
The clean up can remove all files located in the backup staging directory.
Older log files will be removed and other types of older debug information
will be removed
***************************************************************************
Do you wish to continue? ([NO]/yes) yes


***************************************************************************
!!!!!!!                DATABASE CLEANUP WARNING                     !!!!!!!
***************************************************************************
Cleaning up database will stop the server while the cleanup is performed.
The operation can take several minutes to complete
***************************************************************************
Do you wish to cleanup database? ([NO]/yes) yes


***************************************************************************
!!!!!!!                USER LOCAL DISK WARNING                      !!!!!!!
***************************************************************************
Cleaning user local disk will remove all locally saved reports, locally
backed up device configurations. All files in the local FTP and TFTP
directories will be removed.
***************************************************************************
Do you wish to cleanup user local disk? ([NO]/yes) yes
===================================================
Starting Cleanup: Wed Mar 11 07:47:27 UTC 2026
===================================================
{Wed Mar 11 07:47:35 UTC 2026} Removing all files in backup staging directory
{Wed Mar 11 07:47:35 UTC 2026} Removing all Matlab core related files
{Wed Mar 11 07:47:35 UTC 2026} Removing all older log files
{Wed Mar 11 07:47:36 UTC 2026} Cleaning older archive logs
{Wed Mar 11 07:47:44 UTC 2026} Cleaning database backup and all archive logs
{Wed Mar 11 07:47:44 UTC 2026} Cleaning older database trace files
{Wed Mar 11 07:47:44 UTC 2026} Removing all user local disk files
{Wed Mar 11 07:47:45 UTC 2026} Cleaning database
{Wed Mar 11 07:47:49 UTC 2026} Stopping server
{Wed Mar 11 07:53:21 UTC 2026} Not all server processes stop. Attempting to stop remaining
{Wed Mar 11 07:53:21 UTC 2026} Stopping database
{Wed Mar 11 07:53:24 UTC 2026} Starting database
{Wed Mar 11 07:53:49 UTC 2026} Starting database clean
{Wed Mar 11 07:54:21 UTC 2026} Completed database clean
{Wed Mar 11 07:54:21 UTC 2026} Stopping database
{Wed Mar 11 07:54:24 UTC 2026} Starting server
===================================================
Completed Cleanup
Start Time: Wed Mar 11 07:47:27 UTC 2026
Completed Time: Wed Mar 11 07:58:56 UTC 2026
===================================================
piva36/admin#

#ncs stop停止服务,然后重新初始化DB
piva36/admin# ncs stop

Stopping Prime Infrastructure...

This may take a few minutes...
Database is not running.
_outputHdlr check:Redirecting to /bin/systemctl stop vsftpd.service
Stopped FTP Service
_outputHdlr check:Redirecting to /bin/systemctl stop tftpd.service
Stopped TFTP Service
Stopping remoting: Matlab Server
Remoting 'Matlab Server' stopped successfully.
Stopping remoting: Matlab Server Instance 1
Remoting 'Matlab Server Instance 1' stopped successfully.
NMS Server is not running!.

Prime Infrastructure successfully shutdown.

SAM daemon process id does not exist
DA daemon process id does not exist
Completed shutdown of all services
piva36/admin#

做了如上操作再启动,依然会报错。即便后续在shell模式下rpm --rebuilddb 依然无法正常启动。

最后得出的结果:

1.如果有快照,恢复快照;

2.如果没有快照,这种权限损坏往往预示着 OS 层面的崩溃。如果reload无效,最稳妥的方法是重新部署一个新的 PI 虚拟机节点,然后恢复数据备份。

相关推荐
梵得儿SHI1 个月前
深度拆解 Google Personal Intelligence:下一代个性化 AI 的技术架构、隐私保障与未来愿景
大数据·人工智能·agi·pi·跨产品数据整合
TedLeeX2 个月前
【Nordic随笔】离线安装NCS3.2.1教程
经验分享·nordic·zephyr·ncs·nrf54
TedLeeX3 个月前
【Nordic随笔】从零开始学习使用nRF Connect SDK(一、安装ncs3.2.0步骤)
学习·nordic·zephyr·ncs·nrf54
闲人编程4 个月前
用Python控制硬件:Raspberry Pi项目初体验
开发语言·python·raspberry·pi·codecapsule·控制硬件
挨踢攻城7 个月前
思科、华为、华三如何切换三层端口?
华为·hcie·ccna·hcip·ccnp·cisco·厦门微思网络
robur7 个月前
Cisco 3750X交换机更新到IOS 15.2后无法启动 提示:Boot process failed...
ios·交换机·cisco·bootloader
Johny_Zhao9 个月前
企业级LDAP-RADIUS深度集成高可用方案
linux·网络·python·网络安全·信息安全·云计算·shell·cisco·系统运维
Johny_Zhao9 个月前
Linux服务器(CentOS/Ubuntu)接口Bond模式详解、配置指南及交换机对应接口的配置示例
linux·网络安全·信息安全·云计算·shell·cisco·huawei·系统运维·华三
Johny_Zhao10 个月前
centos8安装部署RADIUS+MySQLPGSQL高可用架构实现
linux·网络·网络安全·信息安全·云计算·shell·cisco·yum源·radius·huawei·系统运维·华三