재부팅 후 Dell Networking SONiC 업데이트 부분 구성 손실

Summary: 이 문서에서는 업그레이드 프로세스 중 Dell SONiC 구성 손실 및 해결 방법에 대해 설명합니다.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

 

 시작 구성에 저장할 보류 중인 구성 변경 사항이 있는 경우 구성을 저장할 때 주의해야 합니다. 이 두 가지 약간 유사한 작업은 결과가 다르기 때문에 구성을 저장해야 합니다.

이 시퀀스 순서는 재부팅 후 모든 변경 사항을 올바르게 반영합니다.

     Sonic# copy running-configuration startup-configuration
Sonic# image install http://SONiC_EntStd_4.1.1.bin
Sonic# reboot
 

이 시퀀스 순서로 인해 재부팅 후 시작 구성에 대한 저장되지 않은 구성 변경 사항이 손실됩니다.

     Sonic# image install http://SONiC_EntStd_4.1.1.bin
Sonic# copy running-configuration startup-configuration
Sonic# reboot

다음 섹션에서 이 문제가 발생하는 이유를 설명합니다.

Cause

다음 프로세스를 업그레이드하기 http://< DELL-SONIC-INSTALL-FILE.bin> 이미지 설치를 실행합니다.

- startup_config /etc/sonic/config_db.json이 /host/old_config/config_db.json으로 마이그레이션되어 새 버전의 구성에 필요한 스키마 변경 사항을 적용합니다.
- 스위치 중에 /host/old_config/config_db.json에 저장된 이 구성을 재부팅하면 새 버전과 관련된 변경 사항이 적용된 후 /etc/sonic/config_db.json으로 전송됩니다.
 

따라서 이미지 설치 http://< DELL-SONIC-INSTALL-FILE.bin> 을 실행한 후 저장된 보류 중인 변경 사항은 /host/old_config/config_db.json에 반영되지 않습니다. 따라서 재부팅 중에 이 구성 변경 사항이 손실됩니다. 


 

 

Resolution

이 상황에 접어들면 몇 가지 해결 방법이 있을 수 있습니다. 가장 쉬운 두 가지 방법은 다음과 같습니다.
 

옵션 1

 스위치를 이전 SONiC 버전으로 부팅하고 새 버전을 삭제한 다음 새 버전을 다시 설치합니다.

Sonic# show image list
Sonic# image set-default <Old-SONIC version>
Sonic# reboot

스위치가 이전 버전으로 다시 제공되는 경우:

Sonic# show image list
Sonic# image remove <new-SONiC-version>
Sonic# image install <http://new-SONIC version>
Sonic# reboot


참고: 이미지 설치 명령이 성공적으로 수행되고 재부팅하기 전에 구성이 저장되었다고 가정합니다.

샘플 출력

admin@sonic:~$ sonic-cli
sonic# show image list
Current: SONiC-OS-4.0.6-Enterprise_Standard
Next: SONiC-OS-4.0.6-Enterprise_Standard
Available: 
SONiC-OS-4.0.3-Enterprise_Base
SONiC-OS-4.0.6-Enterprise_Standard
sonic# image set-default SONiC-OS-4.0.3-Enterprise_Base
sonic# reboot

reboot in process .....
Waiting for the reboot operation to complete
11, 32, 15, 00068001, 19, 00068000, 

스위치가 다시 돌아오면 다음을 수행합니다.

sonic login: admin
Password: 
Last login: Wed Oct  4 10:10:30 UTC 2023 on ttyS0
Linux sonic 4.19.0-9-2-amd64 #1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07) x86_64
You are on
  ____   ___  _   _ _  ____
 / ___| / _ \| \ | (_)/ ___|
 \___ \| | | |  \| | | |
  ___) | |_| | |\  | | |___
 |____/ \___/|_| \_|_|\____|

-- Software for Open Networking in the Cloud --

Unauthorized access and/or use are prohibited.
All access and/or use are subject to monitoring.

Help:    http://azure.github.io/SONiC/

admin@sonic:~$ sonic-cli
sonic# show image list
Current: SONiC-OS-4.0.3-Enterprise_Base
Next: SONiC-OS-4.0.3-Enterprise_Base
Available: 
SONiC-OS-4.0.3-Enterprise_Base
SONiC-OS-4.0.6-Enterprise_Standard
sonic# image remove SONiC-OS-4.0.6-Enterprise_Standard
Remove image SONiC-OS-4.0.6-Enterprise_Standard? [y/N]:y
sonic# show image list
Current: SONiC-OS-4.0.3-Enterprise_Base
Next: SONiC-OS-4.0.3-Enterprise_Base
Available: 
SONiC-OS-4.0.3-Enterprise_Base
sonic# image install http://10.24.30.105/software/Dell%20EMC/Networ
king/SONiC_EntStd_4.0.6.bin
%Info: Check 'show image status' for image install progress.
sonic# show image status
-----------------------------------------------------------
Global operation status  : GLOBAL_STATE_SUCCESS
-----------------------------------------------------------
File operation status    : TRANSFER_STATE_SUCCESS
File size(bytes)         : 1055807512
File transfer bytes      : 1055807512
File progress            : 100%
Transfer start time      : 2023-10-04 10:17:40+0000
Transfer end time        : 2023-10-04 10:17:49+0000
-----------------------------------------------------------
Install operation status : INSTALL_STATE_SUCCESS
Install start time       : 2023-10-04 10:17:49+0000
Install end time         : 2023-10-04 10:18:26+0000
sonic# show image list
Current: SONiC-OS-4.0.3-Enterprise_Base
Next: SONiC-OS-4.0.6-Enterprise_Standard
Available: 
SONiC-OS-4.0.3-Enterprise_Base
SONiC-OS-4.0.6-Enterprise_Standard
sonic# reboot

 

옵션 2

새 SONiC OS에서 누락된 구성을 적용합니다. 

참고: 이전 파티션에서 config_db.json을 새 파티션으로 복사하려고 하면 구성 파일의 스키마가 버전 간에 변경되었을 수 있으므로 다른 문제가 발생할 수 있습니다.

Additional Information

이 동작은 분기의 4.0.x 업그레이드와 동일한 분기의 4.1.x 업그레이드 모두에서 검증되었습니다. 모든 업그레이드에 남아 있을 것으로 예상됩니다.

Affected Products

Enterprise SONiC Distribution, PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON , PowerSwitch Z9432F-ON ...
Article Properties
Article Number: 000218166
Article Type: Solution
Last Modified: 11 Oct 2023
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.