[Alcatel] Alcatel Switch 공장 초기화 [Switch Disaster Recovery / Run Rescue]
Nowhere 와 Now here 의 차이

IT/ㄴ Alcatel-Lucent

[Alcatel] Alcatel Switch 공장 초기화 [Switch Disaster Recovery / Run Rescue]

TIENE 2023. 6. 27. 08:50
반응형

 

Disaster Recovery

- Switch 노후화 / 장애발생으로 무한 재부팅으로 인하여 정상 부팅 불가 시, Run Rescue으로 복구하기

 

USB에 아래와 같이 폴더 구성 및 파일 넣기

* USB Recovery를 지원하는 USB가 별도로 존재하지는 않으나, 흔하지 않음

필자는 4GB / 16GB 두 개 사용


/usb/장비이름(ex 6560)/certified/*.img

/usb/장비이름(ex 6560)/working/*.img

/usb/Nrescue.img


root 폴더 Nrescue.img 파일을 넣을 것

* 기종별 복구 이미지가 다르니, 주의하여 넣을 것.

 

OmniSwitch AOS Release 8 Switch Management Guide P.95

 

 

USB안에 폴더 구조 / 이미지 파일 / 장비에 맞는 복구 파일만 잘 맞으면 정상 동작

u-boot 모드 진입 후, run rescure만 입력하면 자동 복구 및 재부팅으로 공장 초기화 가능

 

=========================진행 로그=======================

Hit any key to stop autoboot:  0

 

 

To use the switch rescue procedure first make sure of the following:

 

  - The Urescue.img file is located in the root directory of the

    USB flash device

  - The 6860 directory contains all the system files required to

    revive the switch.

    i.e. 6860/certified/<*.img boot.cfg>

         on the USB flash device

  - USB flash device is inserted

 

Once the above requirements are met, issue the following command

at the prompt to start the rescue process:

 

=> run rescue

 

***** Using the rescue process WILL destroy all switch data *****

*****              USE WITH EXTREME CAUTION                 *****

 

u-boot> run rescue

(Re)start USB...

USB0:   USB EHCI 1.00

scanning bus 0 for devices...   USB dev 1, u-boot EHCI Host Controller

                device is a hub, probing

        USB dev 2,  USB2.0 Hub

                device is a hub, probing

        USB dev 3, Micron Technology Real SSD eUSB 2GB

        USB dev 4, USB Disk 2.0

4 USB Device(s) found

       scanning usb for storage devices... 2 Storage Device(s) found

  Device 0: Vendor: MICRON   Rev: 1112 Prod: eUSB DISK      

            Type: Hard Disk

            Capacity: 1936.0 MB = 1.8 GB (3964928 x 512)

  Device 1: Vendor: VendorCo Rev: 2.00 Prod: ProductCode    

            Type: Removable Hard Disk

            Capacity: 3840.0 MB = 3.7 GB (7864320 x 512)

reading Urescue.img

** Unable to read file Urescue.img **

Wrong Image Format for bootm command

ERROR: can't get kernel image!

u-boot> run rescue

(Re)start USB...

USB0:   USB EHCI 1.00

scanning bus 0 for devices...   USB dev 1, u-boot EHCI Host Controller

                device is a hub, probing

        USB dev 2,  USB2.0 Hub

                device is a hub, probing

        USB dev 3, Micron Technology Real SSD eUSB 2GB

        USB dev 4, USB Disk 2.0

4 USB Device(s) found

       scanning usb for storage devices... 2 Storage Device(s) found

  Device 0: Vendor: MICRON   Rev: 1112 Prod: eUSB DISK      

            Type: Hard Disk

            Capacity: 1936.0 MB = 1.8 GB (3964928 x 512)

  Device 1: Vendor: VendorCo Rev: 2.00 Prod: ProductCode    

            Type: Removable Hard Disk

            Capacity: 3840.0 MB = 3.7 GB (7864320 x 512)

reading Urescue.img

40567936 bytes read in 1801 ms (21.5 MiB/s)

## Booting kernel from FIT Image at 70000000 ...

   Using 'config@1' configuration

   Trying 'kernel@1' kernel subimage

     Description:  Shasta Rescue kernel

     Type:         Kernel Image

     Compression:  gzip compressed

     Data Start:   0x700000d8

     Data Size:    4316156 Bytes = 4.1 MiB

     Architecture: ARM

     OS:           Linux

     Load Address: 0x61008000

     Entry Point:  0x61008000

     Hash algo:    crc32

     Hash value:   1418a344

   Verifying Hash Integrity ... OK

## Loading init Ramdisk from FIT Image at 70000000 ...

   Using 'config@1' configuration

   Trying 'ramdisk@1' ramdisk subimage

     Description:  Shasta Rescue ramdisk

     Type:         RAMDisk Image

     Compression:  gzip compressed

     Data Start:   0x7041ddb8

     Data Size:    36250463 Bytes = 34.6 MiB

     Architecture: ARM

     OS:           Linux

     Load Address: 0x00000000

     Entry Point:  0x00000000

     Hash algo:    crc32

     Hash value:   d0e7cd9f

   Verifying Hash Integrity ... OK

   Uncompressing Kernel Image ... OK

 

Starting kernel ...

 

 

 

Rescue Utility v2.0

The Rescue Utility reformats the switch compact flash memory.

All files in compact flash will be lost and replaced with the

contents of the /usb/6860/* from the USB storage device.

This will take at least 10 minutes.

Do you want to continue (y/n)? y

mount /usb.

ls /usb

6860

6900

OS6860&OS6860E_8.6.203.R02_GA_Release (1)

OS6860&OS6860E_8.6.203.R02_GA_Release (1).zip

System Volume Information

Trescue.img

Urescue.img

verifying images on usb

validating certified/Uos.img

certified/Uos.img valid

validating working/Uos.img

working/Uos.img valid

fdisk /dev/sda

 

Command (m for help): Building a new DOS disklabel. Changes will remain in memory only,

until you decide to write them. After that the previous content

won't be recoverable.

 

 

Command (m for help): Command action

   e   extended

   p   primary partition (1-4)

Partition number (1-4): First cylinder (1-1015, default 1): Using default value 1

Last cylinder or +size or +sizeM or +sizeK (1-1015, default 1015): Using default value 1015

 

Command (m for help): The partition table has been altered.

Calling ioctl() to re-read partition table

mke2fs /flash.

Creating filesystem with 495566 4k blocks and 123904 inodes

Filesystem UUID: 2d710df3-fefe-4905-9385-8f306461658e

Superblock backups stored on blocks:

        32768, 98304, 163840, 229376, 294912

 

Allocating group tables: done                           

Writing inode tables: done                           

Writing superblocks and filesystem accounting information: done

 

mount /flash.

copying /usb/6860/OS6860.OS6860E.8.3.1.180.R02.MR_ /usb/6860/OS6860.OS6860E.8.3.1.180.R02.MR_.zip /usb/6860/certified /usb/6860/working to /flash

copying will take a while ...

ls /flash

certified   lost+found  working

verifying images on /flash

validating /flash/certified/Uos.img

/flash/certified/Uos.img valid

validating /flash/working/Uos.img

/flash/working/Uos.img valid

Rescue operation completed. Rebooting

rcS done

 

 

U-Boot 2013.01 8.7.R01.74 |armv7_helix4| (Apr 08 2020 - 15:41:39)

 

BENCH SCREENING TEST1

=========================================

IPROC_XGPLL_CTRL_3: 0x15400000

IPROC_XGPLL_STATUS: 0x800001d1

DCO code: 29

PASS

=========================================

fpga: 0x7f @ 400Khz

Disabling ECC

DEV ID = 0xdc14

SKU ID = 0x0

DDR type: DDR3

MEMC 0 DDR speed = 750MHz

ddr_init2: Calling soc_ddr40_set_shmoo_dram_config

ddr_init2: Calling soc_ddr40_phy_calibrate

C01. Check Power Up Reset_Bar

C02. Config and Release PLL from reset

C03. Poll PLL Lock

C04. Calibrate ZQ (ddr40_phy_calib_zq)

C05. DDR PHY VTT On (Virtual VTT setup) DISABLE all Virtual VTT

C06. DDR40_PHY_DDR3_MISC

C07. VDL Calibration

C07.1

C07.2

C07.4

C07.4.1

C07.4.4

VDL calibration result: 0x30000003 (cal_steps = 0)

C07.4.5

C07.4.6

C07.5

C08. DDR40_PHY_DDR3_MISC : Start DDR40_PHY_RDLY_ODT....

C09. Start ddr40_phy_autoidle_on (MEM_SYS_PARAM_PHY_AUTO_IDLE) ....

C10. Wait for Phy Ready

Programming controller register

ddr_init2: Calling soc_ddr40_shmoo_ctl

Validate Shmoo parameters stored in flash ..... OK

Press Ctrl-C to run Shmoo ..... skipped

Restoring Shmoo parameters from flash ..... done

Running simple memory test ..... OK

DDR Tune Completed

WARNING: Caches not enabled

U-Boot at: dfead000

FPGA: 0x7f @ 400khz

Family a

Board ID 0

CPLD REV: 09

OS6860-24 out of reset

Enabling watchdog reset

 

Resetting USB hub

SF: Detected MX25L6405D with page size 4 KiB, total 8 MiB

PCIe port in RC mode

 

==>PCIE: LINKSTA reg 0xbe val 0x1001

 

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

 port 0 is not active!!

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

In:    serial

Out:   serial

Err:   serial

arm_clk=1000MHz, axi_clk=499MHz, apb_clk=124MHz, arm_periph_clk=500MHz

Net:   Registering eth

Broadcom BCM IPROC Ethernet driver 0.1

Using GMAC0 (0x18022000)

et0: ethHw_chipAttach: Chip ID: 0xdc14; phyaddr: 0x1

serdes_reset_core pbyaddr(0x1) id2(0xf)

 

USB0:   USB EHCI 1.00

scanning bus 0 for devices...   USB dev 1, u-boot EHCI Host Controller

                device is a hub, probing

        USB dev 2,  USB2.0 Hub

                device is a hub, probing

        USB dev 3, Micron Technology Real SSD eUSB 2GB

        USB dev 4, USB Disk 2.0

4 USB Device(s) found

       scanning usb for storage devices... 2 Storage Device(s) found

Loading from eUSB device

NVRAM:

        IP 0.0.0.0/0.0.0.0 gw 0.0.0.0

        Booting from certified/Uos.img

boot device filesystem is EXT2

Hit any key to stop autoboot:  0

264155948 bytes read in 9961 ms (25.3 MiB/s)

## Booting kernel from FIT Image at 70000000 ...

   Using 'config@1' configuration

   Trying 'kernel@1' kernel subimage

     Description:  Shasta armv7 kernel

     Type:         Kernel Image

     Compression:  gzip compressed

     Data Start:   0x700000d0

     Data Size:    4316156 Bytes = 4.1 MiB

     Architecture: ARM

     OS:           Linux

     Load Address: 0x61008000

     Entry Point:  0x61008000

     Hash algo:    crc32

     Hash value:   03d1f556

   Verifying Hash Integrity ... OK

## Loading init Ramdisk from FIT Image at 70000000 ...

   Using 'config@1' configuration

   Trying 'ramdisk@1' ramdisk subimage

     Description:  Shasta ramdisk

     Type:         RAMDisk Image

     Compression:  gzip compressed

     Data Start:   0x7041dda8

     Data Size:    259838291 Bytes = 247.8 MiB

     Architecture: ARM

     OS:           Linux

     Load Address: 0x00000000

     Entry Point:  0x00000000

     Hash algo:    crc32

     Hash value:   c81404ad

   Verifying Hash Integrity ... OK

   Uncompressing Kernel Image ... OK

300x250

Starting kernel ...

 

Starting 6860 Boot Process

Preparing Flash...

 

 

OS6860 login:

Thu Jan  1 00:13:31 : ChassisSupervisor bootMgr ALRT message:

#NAME?

 

Thu Jan  1 00:13:32 : ChassisSupervisor Power Mgr INFO message:

+++ Power Supply 1 Inserted

 

Thu Jan  1 00:13:33 : ChassisSupervisor Power Mgr INFO message:

+++ Power Supply 1 Up

Alcatel-Lucent Enterprise OS6860-24 8.6.203.R02 GA, March 10, 2020.

 

Thu Jan  1 00:13:35 : isisVc init INFO message:

+++ isisVcEnable@564: Using temporary chassisId 1 (mac 94:24:e1:63:f1:f9)

 

OS6860 login:

Thu Jan  1 00:13:43 : flashManager Main ALRT message:

#NAME?

#NAME?

 

Thu Jan  1 00:13:43 : ChassisSupervisor flashMgr ALRT message:

#NAME?

 

Thu Jan  1 00:13:54 : ipsec key INFO message:

#NAME?

 

OS6860 login: admin

Password:

 

Thu Jan  1 00:14:23 : AAA Switch-Warning WARN message:

=+++ WARNING!Switch Access Vulnerability.

=+++ WARNING!Admin user authentication using default password.

Welcome to the Alcatel-Lucent Enterprise OS6860-24 8.6.203.R02 GA, March 10, 2020.

 

Copyright (c) 1994-2014 Alcatel-Lucent.  All Rights Reserved.

Copyright (c) 2014-2019 Alcatel-Lucent Enterprise.  All Rights Reserved.

 

OmniSwitch(tm) is a trademark of Alcatel-Lucent,

registered in the United States Patent and Trademark Office.

 

 

->

->

-> chassis mode is

2

 

-> show running-directory

 

CONFIGURATION STATUS

  Running CMM              : SLAVE-PRIMARY,

  CMM Mode                 : VIRTUAL-CHASSIS MONO CMM,

  Current CMM Slot         : CHASSIS-1 A,

  Running configuration    : CERTIFIED,

  Certify/Restore Status   : CERTIFY NEEDED

SYNCHRONIZATION STATUS

  Running Configuration    : SYNCHRONIZED

반응형