故障描述
SAN交换机所有的接口都处于down状态
故障处理
登录进SAN交换机后,发现很多查看命令都无法起作用,通过switchshow名查看交换机的所有接口都处于disable状态
SAN-1:admin> fabricshow
no fabric
SAN-1:admin> switchshow
switchName: SAN-1
switchType: 118.1
switchState: Offline (Persistent) # 交换机不在线状态
switchMode: Native
switchRole: Disabled
switchDomain: 1 (unconfirmed)
switchId: fffc01
switchWwn: 10:00:88:94:71:4b:45:10
zoning: OFF
switchBeacon: OFF
HIF Mode: OFF
Index Port Address Media Speed State Proto
==================================================
0 0 010000 id N16 No_Light FC Disabled
1 1 010100 id N16 No_Light FC Disabled
2 2 010200 id N16 No_Light FC Disabled
3 3 010300 id N16 No_Sync FC Disabled
4 4 010400 id N16 No_Sync FC Disabled
5 5 010500 id N16 No_Sync FC Disabled
6 6 010600 id N16 No_Sync FC Disabled
7 7 010700 id N16 No_Sync FC Disabled
8 8 010800 id N16 No_Sync FC Disabled
9 9 010900 id N16 No_Light FC Disabled
10 10 010a00 id N16 No_Light FC Disabled
11 11 010b00 id N16 No_Light FC Disabled
12 12 010c00 -- N16 No_Module FC (No POD License) Disabled
13 13 010d00 -- N16 No_Module FC (No POD License) Disabled
14 14 010e00 -- N16 No_Module FC (No POD License) Disabled
15 15 010f00 -- N16 No_Module FC (No POD License) Disabled
16 16 011000 -- N16 No_Module FC (No POD License) Disabled
17 17 011100 -- N16 No_Module FC (No POD License) Disabled
18 18 011200 -- N16 No_Module FC (No POD License) Disabled
19 19 011300 -- N16 No_Module FC (No POD License) Disabled
20 20 011400 -- N16 No_Module FC (No POD License) Disabled
21 21 011500 -- N16 No_Module FC (No POD License) Disabled
22 22 011600 -- N16 No_Module FC (No POD License) Disabled
23 23 011700 -- N16 No_Module FC (No POD License) Disabled
尝试用命令手工打开接口,报错
SAN-1:admin>
SAN-1:admin> portenable 0
Port 0: Port enable failed because the switch is disabled
尝试手工启动交换机,然后再启动接口,成功
SAN-1:admin> switchenable
WARNING:Switch is Persistently disabled the command will temporarily enable the switch.
SAN-1:admin> switchshow
switchName: Sangmelima-SAN-1
switchType: 118.1
switchState: Online (Temporary)
switchMode: Native
switchRole: Principal
switchDomain: 1 (unconfirmed)
switchId: fffc01
switchWwn: 10:00:88:94:71:4b:45:10
zoning: OFF
switchBeacon: OFF
HIF Mode: OFF
Index Port Address Media Speed State Proto
==================================================
0 0 010000 id N16 Laser_Flt FC
1 1 010100 id N16 Laser_Flt FC
2 2 010200 id N16 Laser_Flt FC
3 3 010300 id N16 No_Sync FC Disabled (Switch not ready for F or L ports)
4 4 010400 id N16 No_Sync FC Disabled (Switch not ready for F or L ports)
5 5 010500 id N16 No_Sync FC Disabled (Switch not ready for F or L ports)
6 6 010600 id N16 No_Sync FC Disabled (Switch not ready for F or L ports)
7 7 010700 id N16 No_Sync FC Disabled (Switch not ready for F or L ports)
8 8 010800 id N16 No_Sync FC Disabled (Switch not ready for F or L ports)
9 9 010900 id N16 Laser_Flt FC
10 10 010a00 id N16 No_Light FC
11 11 010b00 id N16 Laser_Flt FC
12 12 010c00 -- N16 No_Module FC (No POD License) Disabled
13 13 010d00 -- N16 No_Module FC (No POD License) Disabled
14 14 010e00 -- N16 No_Module FC (No POD License) Disabled
15 15 010f00 -- N16 No_Module FC (No POD License) Disabled
16 16 011000 -- N16 No_Module FC (No POD License) Disabled
17 17 011100 -- N16 No_Module FC (No POD License) Disabled
18 18 011200 -- N16 No_Module FC (No POD License) Disabled
19 19 011300 -- N16 No_Module FC (No POD License) Disabled
20 20 011400 -- N16 No_Module FC (No POD License) Disabled
21 21 011500 -- N16 No_Module FC (No POD License) Disabled
22 22 011600 -- N16 No_Module FC (No POD License) Disabled
23 23 011700 -- N16 No_Module FC (No POD License) Disabled
SAN-1:admin> portenable 3 # 手工打开接口
SAN-1:admin> portenable 4
SAN-1:admin> portenable 5
SAN-1:admin> portenable 6
SAN-1:admin> portenable 7
SAN-1:admin> switchshow
switchName: Sangmelima-SAN-1
switchType: 118.1
switchState: Online (Temporary) # 虽然在线,但是处于临时开启状态
switchMode: Native
switchRole: Principal
switchDomain: 1
switchId: fffc01
switchWwn: 10:00:88:94:71:4b:45:10
zoning: OFF
switchBeacon: OFF
HIF Mode: OFF
Index Port Address Media Speed State Proto
==================================================
0 0 010000 id N16 Laser_Flt FC
1 1 010100 id N16 Laser_Flt FC
2 2 010200 id N16 Laser_Flt FC
3 3 010300 id N16 Online FC F-Port 10:00:00:10:9b:45:be:72
4 4 010400 id N16 Online FC F-Port 10:00:00:10:9b:45:c0:38
5 5 010500 id N16 Online FC F-Port 10:00:00:10:9b:45:be:a2
6 6 010600 id N16 Online FC F-Port 10:00:00:10:9b:45:be:ae
7 7 010700 id N16 Online FC F-Port 50:05:07:68:0d:05:9d:a4
8 8 010800 id N16 Online FC F-Port 50:05:07:68:0d:05:9d:a5
9 9 010900 id N16 Laser_Flt FC
10 10 010a00 id N16 No_Light FC
11 11 010b00 id N16 Laser_Flt FC
12 12 010c00 -- N16 No_Module FC (No POD License) Disabled
13 13 010d00 -- N16 No_Module FC (No POD License) Disabled
14 14 010e00 -- N16 No_Module FC (No POD License) Disabled
15 15 010f00 -- N16 No_Module FC (No POD License) Disabled
16 16 011000 -- N16 No_Module FC (No POD License) Disabled
17 17 011100 -- N16 No_Module FC (No POD License) Disabled
18 18 011200 -- N16 No_Module FC (No POD License) Disabled
19 19 011300 -- N16 No_Module FC (No POD License) Disabled
20 20 011400 -- N16 No_Module FC (No POD License) Disabled
21 21 011500 -- N16 No_Module FC (No POD License) Disabled
22 22 011600 -- N16 No_Module FC (No POD License) Disabled
23 23 011700 -- N16 No_Module FC (No POD License) Disabled
通过help命令去查找永久开启交换机的命令,定位到switchxxx命令
SAN-1:admin> help
...
switchbeacon Set switch beacon on or off
switchcfgpersistentdisable Persistently disable a switch
switchcfgpersistentenable Enable a persistently disabled switch # 猜测就是这条命令
switchcfgspeed Configures all ports of the switch to a particular
speed level
switchcfgtrunk Configure all ports on the switch for trunking
switchdisable Disable this switch
switchenable Enable this switch
switchname Print/set this switch's name
switchshow Print switch and port status
switchuptime Display the amount of time for which the switch is up
switchviolation Display policy violations recorded in RAS log
...
使用后奏效
SAN-1:admin> switchcfgpersistentenable
Switch's persistent state set to 'enabled'
SAN-1:admin> switchshow
switchName: SAN-1
switchType: 118.1
switchState: Online # 在线状态
switchMode: Native
switchRole: Principal
switchDomain: 1
switchId: fffc01
switchWwn: 10:00:88:94:71:4b:45:10
zoning: OFF
switchBeacon: OFF
HIF Mode: OFF
Index Port Address Media Speed State Proto
==================================================
0 0 010000 id N16 Laser_Flt FC
1 1 010100 id N16 Laser_Flt FC
2 2 010200 id N16 Laser_Flt FC
3 3 010300 id N16 Online FC F-Port 10:00:00:10:9b:45:be:72
4 4 010400 id N16 Online FC F-Port 10:00:00:10:9b:45:c0:38
5 5 010500 id N16 Online FC F-Port 10:00:00:10:9b:45:be:a2
6 6 010600 id N16 Online FC F-Port 10:00:00:10:9b:45:be:ae
7 7 010700 id N16 Online FC F-Port 50:05:07:68:0d:05:9d:a4
8 8 010800 id N16 Online FC F-Port 50:05:07:68:0d:05:9d:a5
9 9 010900 id N16 Laser_Flt FC
10 10 010a00 id N16 No_Light FC
11 11 010b00 id N16 Laser_Flt FC
12 12 010c00 -- N16 No_Module FC (No POD License) Disabled
13 13 010d00 -- N16 No_Module FC (No POD License) Disabled
14 14 010e00 -- N16 No_Module FC (No POD License) Disabled
15 15 010f00 -- N16 No_Module FC (No POD License) Disabled
16 16 011000 -- N16 No_Module FC (No POD License) Disabled
17 17 011100 -- N16 No_Module FC (No POD License) Disabled
18 18 011200 -- N16 No_Module FC (No POD License) Disabled
19 19 011300 -- N16 No_Module FC (No POD License) Disabled
20 20 011400 -- N16 No_Module FC (No POD License) Disabled
21 21 011500 -- N16 No_Module FC (No POD License) Disabled
22 22 011600 -- N16 No_Module FC (No POD License) Disabled
23 23 011700 -- N16 No_Module FC (No POD License) Disabled