CN109976791B - A kind of automatic upgrading method, device and equipment of NVMe SSD - Google Patents
A kind of automatic upgrading method, device and equipment of NVMe SSD Download PDFInfo
- Publication number
- CN109976791B CN109976791B CN201910286414.8A CN201910286414A CN109976791B CN 109976791 B CN109976791 B CN 109976791B CN 201910286414 A CN201910286414 A CN 201910286414A CN 109976791 B CN109976791 B CN 109976791B
- Authority
- CN
- China
- Prior art keywords
- firmware
- nvme ssd
- upgrade
- upgrade server
- upgraded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000012795 verification Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012423 maintenance Methods 0.000 abstract description 7
- 238000013403 standard screening design Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种NVMe SSD的自动升级方法、装置及设备,该方法包括:在主机启动完成并实现与升级服务器的连接后,判断主机中每个NVMe SSD的固件版本与升级服务器中对应的固件版本是否一致;如果存在固件版本与升级服务器中对应的固件版本不一致的NVMe SSD,则确定该NVMe SSD为待升级NVMe SSD,由升级服务器中下载与待升级NVMe SSD对应的固件文件,并利用下载的固件文件对对应的待升级NVMe SSD进行固件升级;如果不存在固件版本与升级服务器中对应的固件版本不一致的NVMe SSD,则确定无需实现对NVMe SSD进行固件升级。从而大大降低了工作量,有效提高了运维效率。
The invention discloses an automatic upgrade method, device and equipment for an NVMe SSD. The method includes: after the host is started and connected to the upgrade server, it is judged that the firmware version of each NVMe SSD in the host is the corresponding one in the upgrade server. Whether the firmware version is consistent; if there is an NVMe SSD whose firmware version is inconsistent with the corresponding firmware version in the upgrade server, then determine that the NVMe SSD is the NVMe SSD to be upgraded, download the firmware file corresponding to the NVMe SSD to be upgraded from the upgrade server, and use The downloaded firmware file upgrades the firmware of the corresponding NVMe SSD to be upgraded; if there is no NVMe SSD whose firmware version is inconsistent with the corresponding firmware version in the upgrade server, it is determined that there is no need to implement the firmware upgrade of the NVMe SSD. This greatly reduces the workload and effectively improves the efficiency of operation and maintenance.
Description
技术领域technical field
本发明涉及固态硬盘技术领域,更具体地说,涉及一种NVMe SSD的自动升级方法、装置、设备及计算机可读存储介质。The present invention relates to the technical field of solid-state hard disks, and more specifically, to an automatic upgrade method, device, equipment, and computer-readable storage medium for NVMe SSDs.
背景技术Background technique
随着科学技术和信息技术的飞速发展,运维人员所维护的服务器数量不再是以前的几台或者几十台,而是成百上千台机器。当服务器中的NVMe(NVMe Non-Volatile Memoryexpress,非易失性内存主机控制器接口规范)SSD(Solid State Disk,固态硬盘)固件需要升级时,传统的手工升级方式无疑会相应产生工作量大、运维效率低的问题。With the rapid development of science and information technology, the number of servers maintained by operation and maintenance personnel is no longer a few or dozens of servers, but hundreds or thousands of machines. When the NVMe (NVMe Non-Volatile Memoryexpress, Non-Volatile Memory Host Controller Interface Specification) SSD (Solid State Disk, Solid State Drive) firmware in the server needs to be upgraded, the traditional manual upgrade method will undoubtedly cause a correspondingly heavy workload, The problem of low operation and maintenance efficiency.
综上所述,现有技术中实现NVMe SSD的固件升级的技术方案存在工作量大、运维效率低的问题。To sum up, the technical solutions for implementing NVMe SSD firmware upgrades in the prior art have the problems of heavy workload and low operation and maintenance efficiency.
发明内容Contents of the invention
本发明的目的是提供一种NVMe SSD的自动升级方法、装置、设备及计算机可读存储介质,能够解决现有技术中实现NVMe SSD的固件升级的技术方案存在的工作量大、运维效率低的问题。The purpose of the present invention is to provide an automatic upgrade method, device, device and computer-readable storage medium for NVMe SSD, which can solve the problems of large workload and low operation and maintenance efficiency in the technical solution for firmware upgrade of NVMe SSD in the prior art The problem.
为了实现上述目的,本发明提供如下技术方案:In order to achieve the above object, the present invention provides the following technical solutions:
一种NVMe SSD的自动升级方法,包括:An automatic upgrade method for NVMe SSD, comprising:
在主机启动完成并实现与升级服务器的连接后,判断所述主机中每个NVMe SSD的固件版本与所述升级服务器中对应的固件版本是否一致;After the host starts and realizes the connection with the upgrade server, judge whether the firmware version of each NVMe SSD in the host is consistent with the corresponding firmware version in the upgrade server;
如果存在固件版本与所述升级服务器中对应的固件版本不一致的NVMe SSD,则确定该NVMe SSD为待升级NVMe SSD,由所述升级服务器中下载与所述待升级NVMe SSD对应的固件文件,并利用下载的固件文件对对应的待升级NVMe SSD进行固件升级;If there is an NVMe SSD whose firmware version is inconsistent with the corresponding firmware version in the upgrade server, it is determined that the NVMe SSD is the NVMe SSD to be upgraded, and the firmware file corresponding to the NVMe SSD to be upgraded is downloaded from the upgrade server, and Use the downloaded firmware file to upgrade the firmware of the corresponding NVMe SSD to be upgraded;
如果不存在固件版本与所述升级服务器中对应的固件版本不一致的NVMe SSD,则确定无需实现对所述NVMe SSD进行固件升级。If there is no NVMe SSD whose firmware version is inconsistent with the corresponding firmware version in the upgrade server, it is determined that the firmware upgrade of the NVMe SSD does not need to be implemented.
优选的,由所述升级服务器中下载与所述待升级NVMe SSD对应的固件文件之后,还包括:Preferably, after downloading the firmware file corresponding to the NVMe SSD to be upgraded from the upgrade server, it also includes:
利用校验码对下载的所述固件文件进行校验,如果校验通过,则执行利用下载的固件文件对对应的待升级NVMe SSD进行固件升级的步骤,否则,则拒绝执行利用下载的固件文件对对应的待升级NVMe SSD进行固件升级的步骤;其中,所述校验码为下载所述固件文件时由所述升级服务器中获取的。Use the check code to verify the downloaded firmware file. If the verification is passed, perform the step of using the downloaded firmware file to upgrade the firmware of the corresponding NVMe SSD to be upgraded. Otherwise, refuse to perform the firmware upgrade using the downloaded firmware file. The step of performing firmware upgrade on the corresponding NVMe SSD to be upgraded; wherein, the check code is obtained from the upgrade server when downloading the firmware file.
优选的,在主机启动完成并实现与升级服务器的连接后,还包括:Preferably, after the host is started and connected to the upgrade server, it also includes:
发送所述主机的身份认证信息至所述升级服务器,如果所述升级服务器对所述身份认证信息的认证结果为通过认证,则确定能够实现对所述升级服务器中存储的固件文件及对应固件版本的访问,否则,则确定无法实现对所述升级服务器中存储的固件文件及对应固件版本的访问。Send the identity authentication information of the host to the upgrade server, and if the authentication result of the identity authentication information by the upgrade server is passed authentication, then it is determined that the firmware file and the corresponding firmware version stored in the upgrade server can be implemented. Otherwise, it is determined that the access to the firmware file and the corresponding firmware version stored in the upgrade server cannot be realized.
优选的,还包括:Preferably, it also includes:
确定无法实现对所述升级服务器中存储的固件文件及对应固件版本的访问时,将所述身份认证信息携带于访问请求中发送至预先指定的管理终端,以请求所述管理终端对应管理员进行相应的处理。When it is determined that access to the firmware file and the corresponding firmware version stored in the upgrade server cannot be achieved, the identity authentication information is carried in the access request and sent to a pre-designated management terminal to request the corresponding administrator of the management terminal to perform Treat accordingly.
优选的,确定待升级NVMe SSD之后,还包括:Preferably, after determining the NVMe SSD to be upgraded, it also includes:
判断所述待升级NVMe SSD的固件文件中的时间戳是否早于所述升级服务器中对应固件文件中的时间戳,如果是,则执行由所述升级服务器中下载与所述待升级NVMe SSD对应的固件文件的步骤,否则,则拒绝执行由所述升级服务器中下载与所述待升级NVMeSSD对应的固件文件的步骤。Judging whether the timestamp in the firmware file of the NVMe SSD to be upgraded is earlier than the timestamp in the corresponding firmware file in the upgrade server, if yes, downloading from the upgrade server corresponding to the NVMe SSD to be upgraded Otherwise, refuse to execute the step of downloading the firmware file corresponding to the NVMeSSD to be upgraded from the upgrade server.
优选的,还包括:Preferably, it also includes:
在确定校验未通过及所述待升级NVMe SSD的固件文件中的时间戳不早于所述升级服务器中对应固件文件中的时间戳时,将对应的提示信息发送至所述管理终端。When it is determined that the verification fails and the time stamp in the firmware file of the NVMe SSD to be upgraded is not earlier than the time stamp in the corresponding firmware file in the upgrade server, the corresponding prompt information is sent to the management terminal.
优选的,还包括:Preferably, it also includes:
在确定校验未通过及所述待升级NVMe SSD的固件文件中的时间戳不早于所述升级服务器中对应固件文件中的时间戳时,将对应的提示信息在所述主机上进行显示。When it is determined that the verification fails and the time stamp in the firmware file of the NVMe SSD to be upgraded is not earlier than the time stamp in the corresponding firmware file in the upgrade server, the corresponding prompt information will be displayed on the host.
一种NVMe SSD的自动升级装置,包括:An automatic upgrade device for NVMe SSD, comprising:
第一判断模块,用于:在主机启动完成并实现与升级服务器的连接后,判断所述主机中每个NVMe SSD的固件版本与所述升级服务器中对应的固件版本是否一致;The first judging module is used for: after the mainframe starts and realizes the connection with the upgrade server, judge whether the firmware version of each NVMe SSD in the host is consistent with the corresponding firmware version in the upgrade server;
第一执行模块,用于:如果存在固件版本与所述升级服务器中对应的固件版本不一致的NVMe SSD,则确定该NVMe SSD为待升级NVMe SSD,由所述升级服务器中下载与所述待升级NVMe SSD对应的固件文件,并利用下载的固件文件对对应的待升级NVMe SSD进行固件升级;The first execution module is used to: if there is an NVMe SSD whose firmware version is inconsistent with the corresponding firmware version in the upgrade server, then determine that the NVMe SSD is the NVMe SSD to be upgraded, and download the NVMe SSD from the upgrade server to the NVMe SSD to be upgraded. The firmware file corresponding to the NVMe SSD, and use the downloaded firmware file to upgrade the firmware of the corresponding NVMe SSD to be upgraded;
第二执行模块,用于:如果不存在固件版本与所述升级服务器中对应的固件版本不一致的NVMe SSD,则确定无需实现对所述NVMe SSD进行固件升级。The second execution module is configured to: if there is no NVMe SSD whose firmware version is inconsistent with the corresponding firmware version in the upgrade server, it is determined that it is not necessary to perform firmware upgrade on the NVMe SSD.
一种NVMe SSD的自动升级设备,包括:An automatic upgrade device for NVMe SSD, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行所述计算机程序时实现如上任一项所述NVMe SSD的自动升级方法的步骤。The processor is configured to implement the steps of the automatic upgrade method for NVMe SSD as described in any one of the above when executing the computer program.
一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上任一项所述NVMe SSD的自动升级方法的步骤。A computer-readable storage medium, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the automatic upgrade method for NVMe SSD as described in any one of the above are realized.
本发明提供了一种NVMe SSD的自动升级方法、装置及设备,其中该方法包括:在主机启动完成并实现与升级服务器的连接后,判断所述主机中每个NVMe SSD的固件版本与所述升级服务器中对应的固件版本是否一致;如果存在固件版本与所述升级服务器中对应的固件版本不一致的NVMe SSD,则确定该NVMe SSD为待升级NVMe SSD,由所述升级服务器中下载与所述待升级NVMe SSD对应的固件文件,并利用下载的固件文件对对应的待升级NVMeSSD进行固件升级;如果不存在固件版本与所述升级服务器中对应的固件版本不一致的NVMe SSD,则确定无需实现对所述NVMe SSD进行固件升级。本申请公开的技术方案,在主机启动完成并实现与升级服务器的连接后,能够基于升级服务器中的固件文件判断主机包含的各NVMe SSD是否需要进行固件升级,并通过由升级服务器中下载对应的固件文件对需要进行固件升级的NVMe SSD进行固件升级,无需人工介入即可自动实现NVMe SSD固件的升级,从而大大降低了工作量,有效提高了运维效率。The present invention provides an automatic upgrade method, device and equipment for an NVMe SSD, wherein the method includes: after the host is started and connected to the upgrade server, it is judged that the firmware version of each NVMe SSD in the host is consistent with the Whether the corresponding firmware version in the upgrade server is consistent; if there is an NVMe SSD whose firmware version is inconsistent with the corresponding firmware version in the upgrade server, then it is determined that the NVMe SSD is the NVMe SSD to be upgraded, and it is downloaded from the upgrade server and described in the upgrade server. The firmware file corresponding to the NVMe SSD to be upgraded, and use the downloaded firmware file to perform firmware upgrade on the corresponding NVMeSSD to be upgraded; The firmware of the NVMe SSD is upgraded. The technical solution disclosed in this application can judge whether each NVMe SSD contained in the host needs to be upgraded based on the firmware file in the upgrade server after the host is started and connected to the upgrade server, and downloads the corresponding NVMe SSD from the upgrade server. The firmware file upgrades the firmware of the NVMe SSD that needs to be upgraded, and the NVMe SSD firmware can be automatically upgraded without manual intervention, which greatly reduces the workload and effectively improves the operation and maintenance efficiency.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本发明实施例提供的一种NVMe SSD的自动升级方法的流程图;Fig. 1 is the flowchart of the automatic upgrade method of a kind of NVMe SSD that the embodiment of the present invention provides;
图2为本发明实施例提供的一种NVMe SSD的自动升级装置的结构示意图。FIG. 2 is a schematic structural diagram of an automatic upgrade device for an NVMe SSD provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
请参阅图1,其示出了本发明实施例提供的一种NVMe SSD的自动升级方法的流程图,可以包括:Please refer to Fig. 1, which shows a flow chart of an automatic upgrade method for an NVMe SSD provided in an embodiment of the present invention, which may include:
S11:在主机启动完成并实现与升级服务器的连接后,判断主机中每个NVMe SSD的固件版本与升级服务器中对应的固件版本是否一致。S11: After the host is started and connected to the upgrade server, determine whether the firmware version of each NVMe SSD in the host is consistent with the corresponding firmware version in the upgrade server.
需要说明的是,本发明实施例提供的一种NVMe SSD的自动升级方法的执行主语可以为对应的自动升级装置,而该自动升级装置可以设置于主机中,因此本发明实施例提供的一种NVMe SSD的自动升级方法可以为主机;而本申请实施例中主机的数量可以为多个,在每个主机启动完成并实现与升级服务器的连接后,自动实现包含的多个NVMe SSD的批量升级。It should be noted that the execution subject of an automatic upgrade method for NVMe SSD provided by the embodiment of the present invention can be the corresponding automatic upgrade device, and the automatic upgrade device can be set in the host computer, so a kind of automatic upgrade device provided by the embodiment of the present invention The automatic upgrade method of NVMe SSD can be a host; and the number of hosts in the embodiment of this application can be multiple, and after each host is started and connected to the upgrade server, the batch upgrade of multiple NVMe SSDs included is automatically realized .
具体来说,可以预先设置一台用于存放固件文件的升级服务器,由工作人员或者生成固件文件的终端自动将需要用于实现固件升级的固件文件存放至升级服务器中;对于任一个主机来说,在该主机上电完成启动并实现与升级服务器的连接后,可以获取升级服务器中包含的与该主机中各NVMe SSD对应的固件文件的固件版本,升级服务器中的固件文件与主机中NVMe SSD具有一一对应关系;依次将包含的每个NVMe SSD与升级服务器中包含的对应固件文件的固件版本进行比对,如果两者不同,则说明对应的NVMe SSD需要实现固件升级,否则则说明对应的NVMe SSD无需实现固件升级,进而基于判断所得结果实现对应NVMe SSD的处理。Specifically, an upgrade server for storing firmware files can be set in advance, and the staff or the terminal generating the firmware files will automatically store the firmware files needed for firmware upgrade to the upgrade server; for any host , after the host is powered on and started up and connected to the upgrade server, you can obtain the firmware version of the firmware file corresponding to each NVMe SSD in the host in the upgrade server, and the firmware file in the upgrade server and the NVMe SSD in the host There is a one-to-one correspondence; compare each NVMe SSD included with the firmware version of the corresponding firmware file contained in the upgrade server in turn. If the two are different, it means that the corresponding NVMe SSD needs to be upgraded. Otherwise, it means that the corresponding The NVMe SSD does not need to implement firmware upgrade, and then realizes the processing corresponding to the NVMe SSD based on the judgment result.
S12:如果存在固件版本与升级服务器中对应的固件版本不一致的NVMe SSD,则确定该NVMe SSD为待升级NVMe SSD,由升级服务器中下载与待升级NVMe SSD对应的固件文件,并利用下载的固件文件对对应的待升级NVMe SSD进行固件升级。S12: If there is an NVMe SSD whose firmware version is inconsistent with the corresponding firmware version in the upgrade server, then determine that the NVMe SSD is the NVMe SSD to be upgraded, download the firmware file corresponding to the NVMe SSD to be upgraded from the upgrade server, and use the downloaded firmware The file upgrades the firmware of the corresponding NVMe SSD to be upgraded.
如果存在固件版本与升级服务器中对应固件版本不同的NVMe SSD,则确定需要对该NVMe SSD进行固件升级,具体由升级服务器中下载NVMe SSD对应的固件文件后通过烧写固件文件对应固件实现固件升级;否则,则确定不存在需要实现固件升级的NVMe SSD,无需进行固件升级的处理。If there is an NVMe SSD whose firmware version is different from the corresponding firmware version in the upgrade server, it is determined that the NVMe SSD needs to be upgraded. Specifically, after downloading the firmware file corresponding to the NVMe SSD from the upgrade server, the firmware is upgraded by programming the corresponding firmware of the firmware file. ; Otherwise, it is determined that there is no NVMe SSD that needs to be upgraded by firmware, and there is no need to perform firmware upgrade.
S13:如果不存在固件版本与升级服务器中对应的固件版本不一致的NVMe SSD,则确定无需实现对NVMe SSD进行固件升级。S13: If there is no NVMe SSD whose firmware version is inconsistent with the corresponding firmware version in the upgrade server, it is determined that there is no need to implement firmware upgrade for the NVMe SSD.
本申请公开的技术方案,在主机启动完成并实现与升级服务器的连接后,能够基于升级服务器中的固件文件判断主机包含的各NVMe SSD是否需要进行固件升级,并通过由升级服务器中下载对应的固件文件对需要进行固件升级的NVMe SSD进行固件升级,无需人工介入即可自动实现NVMe SSD固件的升级,从而大大降低了工作量,有效提高了运维效率。The technical solution disclosed in this application can judge whether each NVMe SSD contained in the host needs to be upgraded based on the firmware file in the upgrade server after the host is started and connected to the upgrade server, and downloads the corresponding NVMe SSD from the upgrade server. The firmware file upgrades the firmware of the NVMe SSD that needs to be upgraded, and the NVMe SSD firmware can be automatically upgraded without manual intervention, which greatly reduces the workload and effectively improves the operation and maintenance efficiency.
本发明实施例提供的一种NVMe SSD的自动升级方法,由升级服务器中下载与待升级NVMe SSD对应的固件文件之后,还可以包括:The automatic upgrading method of a kind of NVMe SSD that the embodiment of the present invention provides, after downloading the firmware file corresponding to the NVMe SSD to be upgraded in the upgrading server, can also include:
利用校验码对下载的固件文件进行校验,如果校验通过,则执行利用下载的固件文件对对应的待升级NVMe SSD进行固件升级的步骤,否则,则拒绝执行利用下载的固件文件对对应的待升级NVMe SSD进行固件升级的步骤;其中,校验码为下载固件文件时由升级服务器中获取的。Use the verification code to verify the downloaded firmware file. If the verification is passed, execute the step of using the downloaded firmware file to upgrade the firmware of the corresponding NVMe SSD to be upgraded; Steps for upgrading the firmware of the NVMe SSD to be upgraded; wherein, the check code is obtained from the upgrade server when downloading the firmware file.
本申请中的校验码可以对应MD5算法,具体来说,在生成固件文件后即对固件文件进行计算得到对应的校验码,并将该校验码和对应固件文件均存储至升级服务器中;在获取升级服务器中对应固件文件时,同时获取该固件文件对应的校验码,从而实现固件文件的下载后,利用校验码对应算法对下载的固件文件进行计算,将计算得到的校验码与由升级服务器中获取的校验码进行比对,如果两者相同,则说明下载的固件文件未因恶意篡改等发生变化,可用于实现固件升级,否则,则说明下载的固件文件因恶意篡改等发生了变化,安全性及可靠性无法保障,此时则确定其无法用于实现固件升级;从而通过对固件文件的校验保证了固件升级的安全性及可靠性。The check code in this application can correspond to the MD5 algorithm. Specifically, after the firmware file is generated, the firmware file is calculated to obtain the corresponding check code, and the check code and the corresponding firmware file are stored in the upgrade server ; When obtaining the corresponding firmware file in the upgrade server, obtain the corresponding verification code of the firmware file at the same time, so that after downloading the firmware file, use the verification code corresponding algorithm to calculate the downloaded firmware file, and calculate the verification code The code is compared with the check code obtained from the upgrade server. If the two are the same, it means that the downloaded firmware file has not been changed due to malicious tampering, etc., and can be used to implement firmware upgrades. Otherwise, it means that the downloaded firmware file has If there is a change in tampering, etc., the security and reliability cannot be guaranteed. At this time, it is determined that it cannot be used to implement firmware upgrades; thus, the security and reliability of firmware upgrades are guaranteed by checking the firmware files.
本发明实施例提供的一种NVMe SSD的自动升级方法,在主机启动完成并实现与升级服务器的连接后,还可以包括:The automatic upgrade method of an NVMe SSD provided by the embodiment of the present invention may further include:
发送主机的身份认证信息至升级服务器,如果升级服务器对身份认证信息的认证结果为通过认证,则确定能够实现对升级服务器中存储的固件文件及对应固件版本的访问,否则,则确定无法实现对升级服务器中存储的固件文件及对应固件版本的访问。Send the identity authentication information of the host to the upgrade server, if the authentication result of the upgrade server to the identity authentication information is authenticated, it is determined that the access to the firmware file and the corresponding firmware version stored in the upgrade server can be realized, otherwise, it is determined that the access to the firmware file and the corresponding firmware version cannot be achieved Upgrade the firmware files stored in the server and access to the corresponding firmware version.
需要说明的是,为了避免对于升级服务器中固件文件的恶意篡改等行为发生,本实施例需要发送主机的身份认证信息给升级服务器,在升级服务器对主机的身份认证通过之后才允许主机对升级服务器进行访问;其中,身份认证信息可以包括主机的主机标识,而升级服务器对于身份认证信息的认证可以是通过判断主机发送的主机标识是否存在于升级服务器中预先存储的主机标识中实现的,也即上述判断结果为是,则说明认证通过,否则则认证未通过。当然,上述身份认证信息及对身份认证信息的认证可以根据实际需要进行其他设定,均在本发明的保护范围之内。It should be noted that, in order to avoid malicious tampering of firmware files in the upgrade server, this embodiment needs to send the identity authentication information of the host to the upgrade server. access; wherein, the identity authentication information may include the host identity of the host, and the authentication of the identity authentication information by the upgrade server may be realized by judging whether the host identity sent by the host exists in the host identity pre-stored in the upgrade server, that is, If the result of the above judgment is yes, then the authentication is passed; otherwise, the authentication is not passed. Of course, the above identity authentication information and the authentication of the identity authentication information can be set in other ways according to actual needs, all of which are within the protection scope of the present invention.
本发明实施例提供的一种NVMe SSD的自动升级方法,还可以包括:A method for automatically upgrading an NVMe SSD provided in an embodiment of the present invention may also include:
确定无法实现对升级服务器中存储的固件文件及对应固件版本的访问时,将身份认证信息携带于访问请求中发送至预先指定的管理终端,以请求管理终端对应管理员进行相应的处理。When it is determined that access to the firmware file and the corresponding firmware version stored in the upgrade server cannot be realized, the identity authentication information is carried in the access request and sent to the pre-designated management terminal to request the corresponding administrator of the management terminal to perform corresponding processing.
需要说明的是,管理终端为对升级服务器具有管理权限的管理员对应终端,将身份认证信息携带于访问请求中发送至管理员对应的管理终端,是为了由管理终端人工实现对身份认证信息的认证,如果人工认证通过,管理员则可以通过对升级服务器的配置允许主机对升级服务器的访问,从而通过这种方式完善了功能,保证了合法用户对于升级服务器的顺利访问。It should be noted that the management terminal is the terminal corresponding to the administrator who has the management authority to the upgrade server, and the identity authentication information is carried in the access request and sent to the management terminal corresponding to the administrator, so that the management terminal can manually realize the authentication of the identity authentication information. Authentication, if the manual authentication is passed, the administrator can configure the upgrade server to allow hosts to access the upgrade server, thus improving the function in this way and ensuring the smooth access of legal users to the upgrade server.
本发明实施例提供的一种NVMe SSD的自动升级方法,确定待升级NVMe SSD之后,还可以包括:A method for automatically upgrading an NVMe SSD provided in an embodiment of the present invention, after determining that the NVMe SSD is to be upgraded, may further include:
判断待升级NVMe SSD的固件文件中的时间戳是否早于升级服务器中对应固件文件中的时间戳,如果是,则执行由升级服务器中下载与待升级NVMe SSD对应的固件文件的步骤,否则,则拒绝执行由升级服务器中下载与待升级NVMe SSD对应的固件文件的步骤。Determine whether the timestamp in the firmware file of the NVMe SSD to be upgraded is earlier than the timestamp in the corresponding firmware file in the upgrade server, if yes, then perform the step of downloading the firmware file corresponding to the NVMe SSD to be upgraded from the upgrade server, otherwise, Then refuse to execute the step of downloading the firmware file corresponding to the NVMe SSD to be upgraded from the upgrade server.
其中,在固件文件中可以加入固件文件生成的时间对应的时间戳,从而通过时间戳可以确定对应固件文件生成时间的早晚,生成时间越晚对应固件文件的版本越新,从而通过这种方式进一步保证实现固件升级的固件文件为有效的最新的固件,实现固件升级的有效性。Among them, the time stamp corresponding to the time when the firmware file is generated can be added to the firmware file, so that the time stamp corresponding to the generation time of the firmware file can be determined sooner or later. The later the generation time, the newer the version of the corresponding firmware file, so that further Ensure that the firmware file for firmware upgrade is the latest effective firmware, so as to realize the effectiveness of firmware upgrade.
本发明实施例提供的一种NVMe SSD的自动升级方法,还可以包括:A method for automatically upgrading an NVMe SSD provided in an embodiment of the present invention may also include:
在确定校验未通过及待升级NVMe SSD的固件文件中的时间戳不早于升级服务器中对应固件文件中的时间戳时,将对应的提示信息发送至管理终端。When it is determined that the verification fails and the time stamp in the firmware file of the NVMe SSD to be upgraded is not earlier than the time stamp in the corresponding firmware file in the upgrade server, the corresponding prompt information is sent to the management terminal.
需要说明的是,在通过时间戳确定出升级服务器中的固件文件版本并不新于主机中NVMe SSD的固件版本时,则说明无需利用升级服务器中的固件文件对主机中对应的NVMeSSD进行固件升级,也说明升级服务器中的固件文件需要进行更新,因此将对应的提示信息发送至管理终端,以由管理终端对应管理员对升级服务器中的固件文件进行更新等管理,以保证升级服务器中固件文件的有效性。It should be noted that when it is determined through the timestamp that the firmware file version in the upgrade server is not newer than the firmware version of the NVMe SSD in the host, it means that there is no need to use the firmware file in the upgrade server to upgrade the corresponding NVMeSSD in the host. , which also indicates that the firmware file in the upgrade server needs to be updated, so the corresponding prompt information is sent to the management terminal, so that the corresponding administrator of the management terminal can update the firmware file in the upgrade server to ensure that the firmware file in the upgrade server effectiveness.
本发明实施例提供的一种NVMe SSD的自动升级方法,还可以包括:A method for automatically upgrading an NVMe SSD provided in an embodiment of the present invention may also include:
在确定校验未通过及待升级NVMe SSD的固件文件中的时间戳不早于升级服务器中对应固件文件中的时间戳时,将对应的提示信息在主机上进行显示。When it is determined that the verification fails and the time stamp in the firmware file of the NVMe SSD to be upgraded is not earlier than the time stamp in the corresponding firmware file in the upgrade server, the corresponding prompt information will be displayed on the host.
需要说明的是,在确定出校验未通过及待升级NVMe SSD的固件文件中的时间戳不早于升级服务器中对应固件文件中的时间戳时,可以将对应的提示信息在主机上进行显示,从而使得主机的用户也能够及时获知校验未通过及待升级NVMe SSD的固件文件中的时间戳不早于升级服务器中对应固件文件中的时间戳的信息,便于用户基于该信息实现对应操作。It should be noted that when it is determined that the verification fails and the time stamp in the firmware file of the NVMe SSD to be upgraded is not earlier than the time stamp in the corresponding firmware file in the upgrade server, the corresponding prompt information can be displayed on the host , so that the user of the host can also know in time that the verification fails and the timestamp in the firmware file of the NVMe SSD to be upgraded is not earlier than the timestamp in the corresponding firmware file in the upgrade server, so that the user can implement corresponding operations based on this information .
本发明实施例还提供了一种NVMe SSD的自动升级装置,如图2所示,可以包括:The embodiment of the present invention also provides an automatic upgrade device for NVMe SSD, as shown in Figure 2, which may include:
第一判断模块11,用于:在主机启动完成并实现与升级服务器的连接后,判断主机中每个NVMe SSD的固件版本与升级服务器中对应的固件版本是否一致;The first judging
第一执行模块12,用于:如果存在固件版本与升级服务器中对应的固件版本不一致的NVMe SSD,则确定该NVMe SSD为待升级NVMe SSD,由升级服务器中下载与待升级NVMeSSD对应的固件文件,并利用下载的固件文件对对应的待升级NVMe SSD进行固件升级;The
第二执行模块13,用于:如果不存在固件版本与升级服务器中对应的固件版本不一致的NVMe SSD,则确定无需实现对NVMe SSD进行固件升级。The
本发明实施例提供的一种NVMe SSD的自动升级装置,还可以包括:An automatic upgrade device for NVMe SSD provided in an embodiment of the present invention may also include:
校验模块,用于:由升级服务器中下载与待升级NVMe SSD对应的固件文件之后,利用校验码对下载的固件文件进行校验,如果校验通过,则执行利用下载的固件文件对对应的待升级NVMe SSD进行固件升级的步骤,否则,则拒绝执行利用下载的固件文件对对应的待升级NVMe SSD进行固件升级的步骤;其中,校验码为下载固件文件时由升级服务器中获取的。The verification module is used for: after downloading the firmware file corresponding to the NVMe SSD to be upgraded from the upgrade server, use the verification code to verify the downloaded firmware file, and if the verification is passed, execute the corresponding Otherwise, refuse to perform the step of using the downloaded firmware file to upgrade the firmware of the corresponding NVMe SSD to be upgraded; where the check code is obtained from the upgrade server when downloading the firmware file .
本发明实施例提供的一种NVMe SSD的自动升级装置,还可以包括:An automatic upgrade device for NVMe SSD provided in an embodiment of the present invention may also include:
访问请求模块,用于:在主机启动完成并实现与升级服务器的连接后,发送主机的身份认证信息至升级服务器,如果升级服务器对身份认证信息的认证结果为通过认证,则确定能够实现对升级服务器中存储的固件文件及对应固件版本的访问,否则,则确定无法实现对升级服务器中存储的固件文件及对应固件版本的访问。The access request module is used to: send the identity authentication information of the host to the upgrade server after the host is started and realizes the connection with the upgrade server, if the authentication result of the upgrade server to the identity authentication information is authenticated, it is determined that the upgrade can be realized The access to the firmware file and the corresponding firmware version stored in the server, otherwise, it is determined that the access to the firmware file and the corresponding firmware version stored in the upgrade server cannot be realized.
本发明实施例提供的一种NVMe SSD的自动升级装置,还可以包括:An automatic upgrade device for NVMe SSD provided in an embodiment of the present invention may also include:
第一发送模块,用于:确定无法实现对升级服务器中存储的固件文件及对应固件版本的访问时,将身份认证信息携带于访问请求中发送至预先指定的管理终端,以请求管理终端对应管理员进行相应的处理。The first sending module is used for: when it is determined that access to the firmware file and the corresponding firmware version stored in the upgrade server cannot be realized, the identity authentication information is carried in the access request and sent to the pre-designated management terminal to request the corresponding management terminal of the management terminal staff to deal with it accordingly.
本发明实施例提供的一种NVMe SSD的自动升级装置,还可以包括:An automatic upgrade device for NVMe SSD provided in an embodiment of the present invention may also include:
第二判断模块,用于:确定待升级NVMe SSD之后,判断待升级NVMe SSD的固件文件中的时间戳是否早于升级服务器中对应固件文件中的时间戳,如果是,则执行由升级服务器中下载与待升级NVMe SSD对应的固件文件的步骤,否则,则拒绝执行由升级服务器中下载与待升级NVMe SSD对应的固件文件的步骤。The second judging module is used for: after determining the NVMe SSD to be upgraded, judge whether the time stamp in the firmware file of the NVMe SSD to be upgraded is earlier than the time stamp in the corresponding firmware file in the upgrade server, if yes, execute the NVMe SSD by the upgrade server The step of downloading the firmware file corresponding to the NVMe SSD to be upgraded, otherwise, rejecting the step of downloading the firmware file corresponding to the NVMe SSD to be upgraded from the upgrade server.
本发明实施例提供的一种NVMe SSD的自动升级装置,还可以包括:An automatic upgrade device for NVMe SSD provided in an embodiment of the present invention may also include:
第二发送模块,用于:在确定校验未通过及待升级NVMe SSD的固件文件中的时间戳不早于升级服务器中对应固件文件中的时间戳时,将对应的提示信息发送至管理终端。The second sending module is used to: when it is determined that the verification fails and the time stamp in the firmware file of the NVMe SSD to be upgraded is not earlier than the time stamp in the corresponding firmware file in the upgrade server, the corresponding prompt information is sent to the management terminal .
本发明实施例提供的一种NVMe SSD的自动升级装置,还可以包括:An automatic upgrade device for NVMe SSD provided in an embodiment of the present invention may also include:
显示模块,用于:在确定校验未通过及待升级NVMe SSD的固件文件中的时间戳不早于升级服务器中对应固件文件中的时间戳时,将对应的提示信息在主机上进行显示。The display module is configured to: when it is determined that the verification fails and the time stamp in the firmware file of the NVMe SSD to be upgraded is not earlier than the time stamp in the corresponding firmware file in the upgrade server, display the corresponding prompt information on the host.
本发明实施例还提供了一种NVMe SSD的自动升级设备,可以包括:The embodiment of the present invention also provides an automatic upgrade device for NVMe SSD, which may include:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行计算机程序时实现如上任一项NVMe SSD的自动升级方法的步骤。The processor is used to implement the steps of any one of the above automatic upgrade methods for NVMe SSD when executing the computer program.
本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时可以实现如上任一项NVMe SSD的自动升级方法的步骤。The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the above automatic upgrade methods for NVMe SSDs can be implemented.
需要说明的是,本发明实施例提供的一种NVMe SSD的自动升级装置、设备及计算机可读存储介质中相关部分的说明请参见本发明实施例提供的一种NVMe SSD的自动升级方法中对应部分的详细说明,在此不再赘述。另外本发明实施例提供的上述技术方案中与现有技术中对应技术方案实现原理一致的部分并未详细说明,以免过多赘述。It should be noted that, for the description of relevant parts in an automatic upgrade device, equipment, and computer-readable storage medium of an NVMe SSD provided by an embodiment of the present invention, please refer to the corresponding Part of the detailed description will not be repeated here. In addition, the parts of the technical solutions provided by the embodiments of the present invention that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910286414.8A CN109976791B (en) | 2019-04-10 | 2019-04-10 | A kind of automatic upgrading method, device and equipment of NVMe SSD |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910286414.8A CN109976791B (en) | 2019-04-10 | 2019-04-10 | A kind of automatic upgrading method, device and equipment of NVMe SSD |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109976791A CN109976791A (en) | 2019-07-05 |
CN109976791B true CN109976791B (en) | 2023-01-10 |
Family
ID=67083938
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910286414.8A Active CN109976791B (en) | 2019-04-10 | 2019-04-10 | A kind of automatic upgrading method, device and equipment of NVMe SSD |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109976791B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110968510A (en) * | 2019-11-28 | 2020-04-07 | 深圳忆联信息系统有限公司 | SSD automatic online upgrading firmware test method and device and computer equipment |
CN111522564A (en) * | 2020-04-20 | 2020-08-11 | 深圳Tcl新技术有限公司 | Method and device for identifying system upgrading state and computer readable storage medium |
CN112882734B (en) * | 2021-03-11 | 2024-04-16 | 北京百度网讯科技有限公司 | Upgrading method and device, computer equipment and medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109117159A (en) * | 2018-08-15 | 2019-01-01 | 郑州云海信息技术有限公司 | A kind of automatic identification refreshes the method and device of firmware |
-
2019
- 2019-04-10 CN CN201910286414.8A patent/CN109976791B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109117159A (en) * | 2018-08-15 | 2019-01-01 | 郑州云海信息技术有限公司 | A kind of automatic identification refreshes the method and device of firmware |
Also Published As
Publication number | Publication date |
---|---|
CN109976791A (en) | 2019-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108549580B (en) | Method for automatically deploying Kubernets slave nodes and terminal equipment | |
US10656936B2 (en) | Systems and methods for software integrity validation using blockchain | |
CN105637479B (en) | Method for modifying computer program, computer system and computer readable medium | |
CN103646082B (en) | A kind of method and device of file verification | |
WO2018157570A1 (en) | Method for upgrading software of pos terminal, pos terminal, and storage medium | |
CN109976791B (en) | A kind of automatic upgrading method, device and equipment of NVMe SSD | |
US20220398321A1 (en) | Data management | |
CN103745158A (en) | Method and device for repairing system bugs | |
US9519786B1 (en) | Firmware integrity ensurance and update | |
CN104506639A (en) | A method and device for obtaining root authority | |
TWI533216B (en) | Operating system updating method | |
US11797313B2 (en) | Method for securely configuring an information system | |
TWI706274B (en) | Computing device and non-transitory computer-readable storage medium enabling operating system repairs via recovery agents | |
CN110399719A (en) | BIT file loading method, apparatus, device and computer-readable storage medium | |
CN111158729A (en) | System upgrade method, device, device and storage medium | |
CN114756290A (en) | Operating system installation method, device and readable storage medium | |
CN108874425A (en) | Configuration file update method, device, baseboard management controller and storage medium | |
CN110399148A (en) | A verification method, device and computer-readable storage medium for BMC upgrade | |
CN114168169B (en) | A microcode updating method, device, equipment and storage medium | |
CN106406934A (en) | One-key automatic deployment method for SQL Server and Weblogic combination | |
TWI716969B (en) | Recovery image downloads via data chunks | |
CN103593612B (en) | A kind of method and device of processing rogue program | |
CN109101253B (en) | Management method and device for host in cloud computing system | |
CN118797751B (en) | Key management method, computer device, storage medium and program product | |
CN112994907B (en) | Network configuration method, device, storage medium and equipment of virtual machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |