华为CE交换机堆叠故障问题

📝文章摘要:
华为CE6857F交换机堆叠失败,因配置冲突和残留堆叠信息导致,需清除非激活配置并重新设置堆叠参数。

问题描述

两台CE6857F交换机通过堆叠部署后, 其中两台迁移机房后,原先四台堆叠变成了两两堆叠,为使设备再次进行堆叠,手动清空原有配置,重新为设备定义域名、槽号和优先级等配置信息,在检查配置信息无误的情况下提交并保存配置,然后按照主、备顺序重启设备,但是最终发现堆叠组还是无法建立。

告警信息

Failed to join the stack because local configuration conflicted with the master device's configuration. Run the "display stack troubleshooting" command to view detailed information.

处理过程

步骤一:

使用display stack troubleshooting命令查看堆叠故障事件信息。

<CE6857F>dis stac troubleshooting

The records are only about tracks of active and historical stack events.

Total :1

--------------------------------------------------------------------------------

Seq  Time                     Event Description

--------------------------------------------------------------------------------

1    2025-02-27 15:11:01.162  Configuration conflict: The port is configured as

member port of Stack-Port on the local device, but

it is configured as a stack isolated port or a fa

bric member port on the master device. (Port(s) =

100GE2/0/5, 100GE2/0/6,  Maste

rMAC = XXXX-d330-XXXX)

步骤二:

通过dis stack link-state last-down-reason命令查看堆叠口DOWN的原因。

<CE6857F>dis stack link-state last-down-reason

Stack-Port :

--------------------------------------------------------------------------------

Stack-Port                : Stack-Port2/1

Stack-Port Protocol State : down

Member Port(s) State :

Down Reason    : The Stack-Port does not have member interfaces.

根因

据以上信息分析,该问题因堆叠端口冲突导致堆叠无法创建,但是在清空原有堆叠配置,重新配置后设备始终无法创建堆叠组。

再次经过反复排查发现,因设备之前已创建好堆叠组,相关堆叠配置信息且已保存在内核系统中(一般情况下无法删除或更改配置)。

解决方案

1、拆分堆叠。

在全局模式下通过clear inactive-configuratio n all命令来清除离线设备的非激活配置信息。

[~E5_E6/CE6851_computing]clear inactive-configuration all

Warning: All inactive configurations will be deleted and can't be restored.

Are you sure to continue? [Y/N]:y

Info: Operating, please wait for a moment..................done.

[~E5_E6/CE6851_computing]

2、查看现有堆叠配置

#display stack configuration --------------------------------------------------------查看堆叠配置

Oper          : Operation

Conf          : Configuration

*             : Offline configuration

Isolated Port : The port is in stack mode, but does not belong to any Stack-Port

 

Attribute Configuration:

-----------------------------------------

MemberID      Domain         Priority

Oper(Conf)   Oper(Conf)      Oper(Conf)

-----------------------------------------

1(1)         10(10)          200(200)

2(2)         10(10)          150(150)

-----------------------------------------

 

Stack-Port Configuration:

--------------------------------------------------------------------------------

Stack-Port      Member Ports

--------------------------------------------------------------------------------

Stack-Port1/1   40GE1/0/5           40GE1/0/6-----------------------------槽位1堆叠接口

Stack-Port2/2   40GE2/0/5           40GE2/0/6-----------------------------槽位2堆叠接口

--------------------------------------------------------------------------------

 

Isolated Port Configuration:

 

3、删除堆叠配置

步骤一:

#stack---------------------------------------------------------------进入堆叠管理视图

#display this--------------------------------------------------------查看系统当前视图运行配置

#

stack

#

stack member 1 domain 10-------------------------------------堆叠域编号

stack member 1 priority 200------------------------------------堆叠优先级

#

stack member 2 domain 10

stack member 2 priority 150

#

Return

 

#undo  stack member 1 domain 10----------------------------删除配置

Info: The operation will take effect after reboot.

#undo stack member 1 priority 200----------------------------删除配置

Info: The operation will take effect after reboot.

#undo stack member 2 domain 10------------------------------删除配置

Info: The operation will take effect after reboot.

#undo  stack member 2 priority 150--------------------------删除配置

Info: The operation will take effect after reboot.

步骤二:

#int Stack-Port 1/1---------------------------------------------------------进入堆叠端口

#undo port member-group interface 100GE 1/0/5 to 1/0/6------------剔除堆叠端口

#commit---------------------------------------------------------------------提交配置

#qui--------------------------------------------------------------------------退出

#save-------------------------------------------------------------------------保存配置

Warning: The current configuration will be written to the device. Continue? [Y/N]:y

Now saving the current configuration to the slot 1 .

Info: Save the configuration successfully.

 

步骤三:

#stack

#stack member 1 domain 10-------------------------------------------配置堆叠ID1域编号为10

#stack member 1 priority 200------------------------------------------配置堆叠ID1优先级为200

#int Stack-Port 1/1---------------------------------------------------------进入堆叠端口

#port member-group interface 100GE 1/0/5 to 1/0/6------------------添加堆叠端口

#commit---------------------------------------------------------------------提交配置

#qui--------------------------------------------------------------------------退出

#save-------------------------------------------------------------------------保存配置

Warning: The current configuration will be written to the device. Continue? [Y/N]:y

Now saving the current configuration to the slot 1 .

Info: Save the configuration successfully.

4、重启设备

 


提示:本文最后更新于2025年3月7日,如有错误或者已经失效,请留言告知。
THE END