Print

某局点S5560X-54C-EI未配置m-lag查看m-lag命令会有回显

2024-04-08 发表

组网及说明

版本:R6512P06

问题描述

设备没有配置m-lag,但是相关查看m-lag命令会有回显,导致集团巡检系统认为m-lag异常,实验室验证6628P40的版本如果没有配置m-lag,这些命令回显是M-LAG is not configured。

过程分析

M-lag进程启动状态下,输入m-lag相关命令会有回显。大概率是曾经配置过M-lag相关配置,M-lag进程启动了,后续又取消了M-lag配置。

使用下述命令看看进程是否已启动? 

[H3C-probe]dis process name drnid

                             Job ID: 17609

                                PID: 17682

                         Parent JID: 1

                         Parent PID: 1

                    Executable path: /sbin/drnid

                           Instance: 0

                            Respawn: ON

                      Respawn count: 2

             Max. spawns per minute: 12

                       Last started: Tue Apr  6 00:37:50 2021

                      Process state: sleeping

                          Max. core: 1

                               ARGS: --MaxIssuLockTime=5400

    TID  LAST_CPU    Stack      PRI    State   HH:MM:SS:MSEC  Name          

  17682      0         84K      120      S     0:0:0:210      drnid         

  17683      0         84K      120      S     0:0:0:0        drnid         

  17684      0         84K      120      S     0:0:0:0        drnid          

  17685      0         84K      120      S     0:0:0:0        drnid         

  17686      0         84K      120      S     0:0:0:0        drnid         

  17687      0         84K      120      S     0:0:0:0        drnid         

  17688      0         84K      120      S     0:0:0:0        drnid         

  17689      0         84K      120      S     0:0:0:0        drnid         

 

如果已启动,则进probe视图关闭一下进程

[H3C -probe]process shutdown job 17609           #这里的job id填上面display process name命令回显的id

Manually stopping a process might severely affect device operation. Perform this operation only under the guidance of HIK engineers. Continue? [Y/N]:y

Shutting down process drnid[17682] on slot 1...

Succeeded.

[H3C -probe]

解决方法

probe视图关闭一下进程

[H3C -probe]process shutdown job 17609           #这里的job id填上面display process name命令回显的id

Manually stopping a process might severely affect device operation. Perform this operation only under the guidance of HIK engineers. Continue? [Y/N]:y

Shutting down process drnid[17682] on slot 1...

Succeeded.

[H3C -probe]

删除mdb文件关闭进程

以单机设备示例, 关闭进程方法如下:

 

[H3C]dis dev                                                                                                              

Slot Type              State    Subslot  Soft Ver             Patch Ver                                                  

1    S5560X-54C-EI     Master   0        S5560X-6512P06       None                                                        

[H3C]                                                                                                                    

[H3C]

[H3C]                                                                                                                     

[H3C]                                                                                                                    

[H3C]

1. 未配置drni相关配置时drni进程未启动

                                                                                                  

[H3C]dis process name drnid                                                                                              

The specified process doesn't exist.                                                                                     

[H3C]                                                                                                                                                                                                                           

 

2. 配置drni相关配置时drni进程启动

[H3C]drni standalone enable                                                                                              

[H3C]%Apr  8 05:00:45:105 2021 H3C DRNI/6/DRNI_SYSEVENT_MODE_CHANGE: The device's working mode changed to standalone.    

                                                                                                                          

[H3C]                                                                                                                     

[H3C]                                                                                                                    

[H3C]dis process name drnid

                             Job ID: 526                                                                                  

                                PID: 526                                                                                 

                         Parent JID: 1                                                                                    

                         Parent PID: 1                                                                                   

                    Executable path: /sbin/drnid                                                                          

                           Instance: 0                                                                                   

                            Respawn: ON                                                                                   

                      Respawn count: 1                                                                                   

             Max. spawns per minute: 12                                                                                   

                       Last started: Thu Apr  8 05:00:44 2021                                                            

                      Process state: sleeping                                                                             

                          Max. core: 1                                                                                   

                               ARGS: -                                                                                    

    TID  LAST_CPU    Stack      PRI    State   HH:MM:SS:MSEC  Name                                                       

    526      0         84K      120      S     0:0:0:150      drnid                                                       

    527      0         84K      120      S     0:0:0:0        drnid                                                      

    528      0         84K      120      S     0:0:0:0        drnid

    529      0         84K      120      S     0:0:0:0        drnid                                                      

    530      0         84K      120      S     0:0:0:0        drnid

    531      0         84K      120      S     0:0:0:0        drnid

    532      0         84K      120      S     0:0:0:0        drnid                                                      

    533      0         84K      120      S     0:0:0:0        drnid                                                      

[H3C]                                                                                                                     

[H3C]                                                                                                                    

[H3C]

[H3C]                                                                                                                     

 

3. 删除drni相关配置                                                                                        

[H3C]undo drni standalone enable                                                                                          

[H3C]%Apr  8 05:01:17:513 2021 H3C DRNI/6/DRNI_SYSEVENT_MODE_CHANGE: The device's working mode changed to DR system.     

                                                                                                                          

[H3C]

[H3C]                                                                                                                    

[H3C] 

4. 保存当前配置                                                                                                                    

[H3C]save f                                                                                                              

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

[H3C]                                                                                                                    

[H3C]                                                                                                                     

[H3C]dis dev                                                                                                             

Slot Type              State    Subslot  Soft Ver             Patch Ver                                                   

1    S5560X-54C-EI     Master   0        S5560X-6512P06       None                                                       

[H3C]                                                                                                                     

 

5.查看配置文件名称                                                                                                     

[H3C]dis startup                                                                                                         

MainBoard:                                                                                                               

 Current startup saved-configuration file: NULL                                                                          

 Next main startup saved-configuration file: flash:/startup.cfg

Next backup startup saved-configuration file: NULL

[H3C]                                                                                                                    

[H3C]                                                                                                                     

 

6. 删除对应的mdb文件,注意如果是堆叠环境,需要删除每个堆叠成员的mdb文件                                                                                     

<H3C>delete /unreserved startup.mdb                                                                                      

The file cannot be restored. Delete flash:/startup.mdb? [Y/N]:y                                                          

Deleting the file permanently will take a long time. Please wait...                                                      

Deleting file flash:/startup.mdb... Done.                                                                                

<H3C>                                                                                                                     

<H3C>                                                                                                                    

<H3C>                                                                                                                     

<H3C>                                                                                                                    

<H3C>

 

7. 不保存配置重启                                                                                                                     

<H3C>reboot f                                                                                                            

A forced reboot might cause the storage medium to be corrupted. Continue? [Y/N]:y                                        

Now rebooting, please wait......%Apr  8 05:02:12:121 2021 H3C DEV/5/SYSTEM_REBOOT: System is rebooting now.

..                                                                                                                        

Starting......                                                                                                           

Press Ctrl+D to access BASIC BOOT MENU                                                                                    

Press Ctrl+E to start flash test                                                                                         

                                                                                                                          

********************************************************************************                                         

*                                                                              *                                         

*                    H3C S5560X-54C-EI BOOTROM, Version 114                    *

*                                                                              *                                         

********************************************************************************                                         

Copyright (c) 2004-2020 New H3C Technologies Co., Ltd.                                                                   

                                                                                                                          

Creation Date       : Aug  6 2020, 09:33:24                                                                              

CPU Clock Speed     : 800MHz                                                                                              

Memory Size         : 2048MB                                                                                             

Flash Size          : 512MB                                                                                               

CPLD Version        : 002                                                                                                

PCB Version         : Ver.B

Mac Address         : b04414069cf6                                                                                        

                                                                                                                          

                                                                                                                          

Press Ctrl+B to access EXTENDED BOOT MENU...0                                                                            

Loading the main image files...                                                                                           

Loading file flash:/s5560x_ei-cmw710-system-r6512p06.bin........................                                         

................................................................................

..Done.

Loading file flash:/s5560x_ei-cmw710-freeradius-r6512p06.bin....Done.                                                    

Loading file flash:/s5560x-ei-cmw710-escan-r6512p06.bin..............Done.                                               

Loading file flash:/s5560x_ei-cmw710-boot-r6512p06.bin........Done.                                                      

                                                                                                                          

Image file flash:/s5560x_ei-cmw710-boot-r6512p06.bin is self-decompressing......                                         

................................................................................

................................................................................                                         

................................................................................                                         

................................................................................

................................................................................

................................................................................

................................................................................

..Done.

System is starting...

    

            

            Board checking.......................LSP8LTSUB

            SDRAM fast selftest........................OK!

            Flash fast selftest........................OK!

            CPLD selftest..............................OK!

            Switch chip selftest.......................OK!

            PHY selftest...............................OK!

            Please check leds....................FINISHED!

Cryptographic algorithms tests passed.

Line aux0 is available.

                               

     

Press ENTER to get started.

                                                                               

                                                                                

                                                                                

                                                                                

******************************************************************************

* Copyright (c) 2004-2020 New H3C Technologies Co., Ltd. All rights reserved.*

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.                    *

******************************************************************************

                          

%Apr  8 05:06:09:324 2021 H3C SHELL/5/SHELL_LOGIN: TTY logged in from aux0.

<H3C>

<H3C>

<H3C>

<H3C>

 

8. 可以看到drni进程未启动

[H3C]dis process nam

[H3C]dis process name drnid

The specified process doesn't exist.

[H3C]

[H3C]