-
1
交换机无法正常启动的解决办法
EX
交换机在突然掉电或非正常关机的情况下,设备重新启动后,可能会出
现一直卡着启动进程
或
OS
引导失败的场景,本文列出几种常见的模式及解决方法
(
注:本文档中提到的操作可能出
现设备原有配置丢失
情况出现,另外,对于通过命令关机时,强烈建议等到所有进程都
再对进行掉电操作
)
。
通常,交换机无法正常启动时,通过
con sole
输出为:
;
halt
时
1.
系统直接进入
Loader
模式,
Loader Prompt ( loader >)
2.
系统进入
Debug
模式,
Debug Prompt
(db>)
;
3.
系统进入
UBoot
模式,
UBoot Prompt
(=>)
;
4.
系统能正常启动,但各系统进程无法正常加载;
5.
系统提示
Can't
load kernel error
;
< br>2
系统直接进入
Loader
模
式解决办法
方法一
TFTP
方式恢复交换机
1.
p>
准备好
TFTP
服务器,然后把
Junos
安装文件上传至
TFTP
的
root
目录层次下;
2.
用
con
sole
连接交换机,并对设备进行加电;
# When you see the
The n
press [En ter] to boot immediately, or space bar
for comma nep
rompt.
Hit the
space bar to en ter the manu al loader. The loader
> prompt displays.
(NOTE:
There is a 1
sec ond
delay for
hitti ng
the space bar)
(TIPS: you
can hit space bar after you see
message)
3.
配置交换机
的管理
ip
地址;
loader>
loader>
set
set
ipaddr=192.168.100.2
netmask=255.255.255.0
loader> set serverip=192.168.100.1
4.
从
TFTF
安装
Junos;
loader
〉
tftp://192.168.100.1/ji nstall-
ex-9.1R2.7-domestic-sig
in stall
This part of the boot log is related to
the
steps listed
above
Con soles:
Found
compatible
U-Boot
API,
bootstrap
Wed
loader,
Feb 6
ver.
Revisi on
con sole
7
2.1
1024MB
/boot/defaults/loader.c onf
FreeBSD/PowerPC U-Boot
(marcelm@apg-bbuild01.j uni per. net,
Memory:
Loadi ng
/kernel
Hit
[En
ter]
11:23:55 PST 2008)
data=0x9dc348+0x6df44
to
boot
Syms=[0x4+0x87bb0+0x4+0x8e152]
comma nd
SPACE BAR
-
-----------
for more detailed help.
ipaddr=192.168.100.2 n
etmask=255.255.255.0
serverip=192.168.100.1
in
stall
immediately, or space bar for
< ----- HIT
comma nds,
'help'
set
set
set
prompt.
Type
'?' for a list of
loader>
loader>
loader>
loader>
loader>
tftp://192.168.100.1/ji nstall-
ex-9.1R2.7-domestic-sig
Speed:
100,
full
is sig ned...
duplex
Package /ji nstall-ex-9.1R2.7-domestic-
sig
/kernel
Kernel
GDB:
KDB:
KDB:
Copyright
All
Copyright
data=0x504104+0x32e60
en try
no
debugger
curre
nt
(c)
syms=[0x4+0x50a00+0x4+0x6366f]
0xa0000100
ports
backe nds:
backend:
Jun iper
The
Networks,
FreeBSD
prese nt
ddb
ddb
Inc.
reserved.
Project.
at
debug
1996-2008,
rights
1992-2006
snip
(c)
或参考
KB11752 -
Installing EX-Series software from a TFTP server
from Loader promp
t
OR
Recoveri ng from a Failed Software
Upgrade on an EX Series Switch.
方法二、
US
方式恢复交换机
步骤一、将需要安装的
Junos
软
件
copy
至
U
盘根目录下;
步骤二、用
con
sole
连接交换机,并对设备进行加电;
# When you see the
The n
press [En ter]
to boot immediately, or
space bar for comma nep
rompt.
Hit the space bar to en ter the manu al
loader. The loader > prompt displays.
(NOTE:
There is a 1
sec ond
delay for hitti ng
the space bar)
(TIPS: you can hit space
bar after you see
message)
步骤三、输入
install
file:///
注:交换机将从
U
盘进行安装;
或参考
KB10386 -
Boot from USB and Recovering from a Failed
Software Upgrade on an EX-series Switch
OR Booting an EX Series Switch Using a
Software Package Stored on a USB Flash Drive
3
系统进入
Debug
模
式解决办法
步骤一,在
db
>模式下输入以下命令收集相关信息
:
db>
x/s
versi on
db>
db>
db>
db>
alltrace
show
show
ps
allvms
msgbuf