对从备份 Junos OS 映像启动的交换机进行故障排除
问题
描述
交换机从备份根文件分区启动。Junos OS 的主副本可能无法正常启动,这可能表示它已损坏。此事件以两种方式标记:
通过控制台或管理端口登录后,将显示以下警告消息:
WARNING: THIS DEVICE HAS BOOTED FROM THE BACKUP JUNOS IMAGE It is possible that the primary copy of JUNOS failed to boot up properly, and so this device has booted from the backup copy. Please re-install JUNOS to recover the primary copy in case it has been corrupted.
将生成以下告警消息:
user@switch> show chassis alarms 1 alarms currently active Alarm time Class Description 2011-02-17 05:48:49 PST Minor Host 0 Boot from backup root
如果交换机位于虚拟机箱中,交换机成员编号将显示在
Description
字段中,其中交换机称为主机。
溶液
在发生损坏的分区上安装新的 Junos OS 映像,或拍摄当前活动分区的快照(使用 请求系统快照)并使用它来替换备用分区中的映像:
如果交换机是独立交换机或虚拟机箱主交换机,请输入以下命令:
user@switch> request system snapshot slice alternate
如果交换机是虚拟机箱成员交换机(不是主交换机),请在虚拟机箱上输入以下命令:
user@switch> request system snapshot slice alternate member member-id
其中 member-id 是虚拟机箱成员 ID 号。