CN109976791B - Automatic upgrading method, device and equipment for NVMe SSD - Google Patents
Automatic upgrading method, device and equipment for 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
- server
- upgrade
- upgrading
- 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 40
- 238000012795 verification Methods 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 5
- 238000012423 maintenance Methods 0.000 abstract description 7
- 239000007787 solid Substances 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 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
- 238000013403 standard screening design Methods 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
The invention discloses an automatic upgrading method, device and equipment of NVMe SSD, wherein the method comprises the following steps: after the host is started and connected with the upgrade server, judging whether the firmware version of each NVMe SSD in the host is consistent with the corresponding firmware version in the upgrade server; if the NVMe SSD with the firmware version inconsistent with the corresponding firmware version in the upgrading server exists, determining the NVMe SSD as the NVMe SSD to be upgraded, downloading a firmware file corresponding to the NVMe to be upgraded from the upgrading server, and upgrading the firmware of the NVMe SSD to be upgraded by using the downloaded firmware file; and if the NVMe SSD with the firmware version inconsistent with the corresponding firmware version in the upgrade server does not exist, determining that the firmware upgrade of the NVMe SSD is not needed. Thereby greatly reducing the workload and effectively improving the operation and maintenance efficiency.
Description
Technical Field
The invention relates to the technical field of solid state disks, in particular to an automatic upgrading method, device and equipment of an NVMe SSD and a computer readable storage medium.
Background
With the rapid development of scientific technology and information technology, the number of servers maintained by operation and maintenance personnel is no longer several or dozens of servers but hundreds of machines. When NVMe (NVMe Non-Volatile Memory host controller interface specification) SSD (Solid State Disk) firmware in a server needs to be upgraded, the traditional manual upgrade manner undoubtedly generates the problems of large workload and low operation and maintenance efficiency.
In summary, the technical solution for implementing firmware upgrade of NVMe SSD in the prior art has the problems of large workload and low operation and maintenance efficiency.
Disclosure of Invention
The invention aims to provide an automatic upgrading method, device and equipment of an NVMe SSD and a computer readable storage medium, which can solve the problems of large workload and low operation and maintenance efficiency in the technical scheme of realizing firmware upgrading of the NVMe SSD in the prior art.
In order to achieve the above purpose, the invention provides the following technical scheme:
an automatic upgrading method of an NVMe SSD comprises the following steps:
after the host is started and connected with an upgrade server, judging whether the firmware version of each NVMe SSD in the host is consistent with the corresponding firmware version in the upgrade server;
if the NVMe SSD with the firmware version inconsistent with the corresponding firmware version in the upgrading server exists, determining the NVMe SSD as the NVMe SSD to be upgraded, downloading a firmware file corresponding to the NVMe to be upgraded from the upgrading server, and upgrading the firmware of the NVMe SSD to be upgraded by using the downloaded firmware file;
and if the NVMe SSD of which the firmware version is inconsistent with the corresponding firmware version in the upgrade server does not exist, determining that the firmware upgrade of the NVMe SSD is not required to be realized.
Preferably, after downloading the firmware file corresponding to the NVMe SSD to be upgraded from the upgrade server, the method further includes:
verifying the downloaded firmware file by using a verification code, if the verification is passed, executing a step of performing firmware upgrade by using the NVMe SSD to be upgraded corresponding to the downloaded firmware file, otherwise, refusing to execute the step of performing firmware upgrade by using the NVMe SSD to be upgraded corresponding to the downloaded firmware file; and the check code is obtained from the upgrading server when the firmware file is downloaded.
Preferably, after the host computer is started and connected to the upgrade server, the method further includes:
and sending 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 that the identity authentication information passes the authentication, determining that the access to the firmware file and the corresponding firmware version stored in the upgrade server can be realized, and otherwise, determining that the access to the firmware file and the corresponding firmware version stored in the upgrade server cannot be realized.
Preferably, the method further comprises the following steps:
and when determining that the access to the firmware file and the corresponding firmware version stored in the upgrade server cannot be realized, carrying the identity authentication information in an access request and sending the access request to a pre-specified management terminal so as to request the management terminal to perform corresponding processing corresponding to an administrator.
Preferably, after determining the NVMe SSD to be upgraded, the method further includes:
judging 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 so, executing the step of downloading the firmware file corresponding to the NVMe SSD from the upgrade server, otherwise, refusing to execute the step of downloading the firmware file corresponding to the NVMe SSD from the upgrade server.
Preferably, the method further comprises the following steps:
and when the verification is not passed 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, sending the corresponding prompt information to the management terminal.
Preferably, the method further comprises the following steps:
and when the verification is not passed 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, displaying the corresponding prompt information on the host.
An automatic upgrade device of NVMe SSD, comprising:
a first determining module configured to: after the host is started and connected with an upgrade server, judging whether the firmware version of each NVMe SSD in the host is consistent with the corresponding firmware version in the upgrade server;
a first execution module to: if the NVMe SSD with the firmware version inconsistent with the corresponding firmware version in the upgrading server exists, determining that the NVMe SSD is the NVMe SSD to be upgraded, downloading a firmware file corresponding to the NVMe SSD to be upgraded from the upgrading server, and upgrading the firmware of the NVMe SSD to be upgraded by using the downloaded firmware file;
a second execution module to: and if the NVMe SSD of which the firmware version is inconsistent with the corresponding firmware version in the upgrade server does not exist, determining that the firmware upgrade of the NVMe SSD is not required to be realized.
An automatic upgrade device for NVMe SSD, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for automatically upgrading NVMe SSD when executing the computer program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the automatic upgrade method of NVMe SSD as described in any one of the above.
The invention provides an automatic upgrading method, device and equipment of NVMe SSD, wherein the method comprises the following steps: after the host is started and connected with an upgrade server, judging whether the firmware version of each NVMe SSD in the host is consistent with the corresponding firmware version in the upgrade server; if the NVMe SSD with the firmware version inconsistent with the corresponding firmware version in the upgrading server exists, determining that the NVMe SSD is the NVMe SSD to be upgraded, downloading a firmware file corresponding to the NVMe SSD to be upgraded from the upgrading server, and upgrading the firmware of the NVMe SSD to be upgraded by using the downloaded firmware file; and if the NVMe SSD of which the firmware version is inconsistent with the corresponding firmware version in the upgrade server does not exist, determining that the firmware upgrade of the NVMe SSD is not required to be realized. According to the technical scheme, after the host computer is started, the connection with the upgrading server is achieved, whether all NVMe SSD contained in the host computer needs to be upgraded or not can be judged based on the firmware files in the upgrading server, the NVMe SSD needing to be upgraded is upgraded by downloading the corresponding firmware files in the upgrading server, the upgrading of NVMe SSD firmware can be automatically achieved without manual intervention, the workload is greatly reduced, and the operation and maintenance efficiency is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an automatic NVMe SSD upgrading method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an automatic upgrading apparatus for NVMe SSD according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of an automatic NVMe SSD upgrading method according to an embodiment of the present invention is shown, where the method may include:
s11: after the host is started and connected with the upgrade server, whether the firmware version of each NVMe SSD in the host is consistent with the corresponding firmware version in the upgrade server is judged.
It should be noted that the execution subject of the automatic upgrading method for the NVMe SSD provided in the embodiment of the present invention may be a corresponding automatic upgrading apparatus, and the automatic upgrading apparatus may be set in the host, so that the automatic upgrading method for the NVMe SSD provided in the embodiment of the present invention may be the host; in the embodiment of the application, the number of the hosts can be multiple, and after each host is started and connected with the upgrade server, batch upgrade of the multiple NVMe SSDs is automatically realized.
Specifically, an upgrade server for storing firmware files may be preset, and firmware files required to implement firmware upgrade are automatically stored in the upgrade server by a worker or a terminal generating the firmware files; for any host, after the host is powered on, started and connected with the upgrade server, the firmware version of the firmware file corresponding to each NVMe SSD in the host, which is contained in the upgrade server, can be acquired, and the firmware file in the upgrade server and the NVMe SSD in the host have a one-to-one correspondence relationship; and sequentially comparing each NVMe SSD with the firmware version of the corresponding firmware file contained in the upgrade server, if the NVMe SSD is different from the corresponding NVMe file contained in the upgrade server, indicating that the corresponding NVMe SSD needs to realize firmware upgrade, otherwise, indicating that the corresponding NVMe SSD does not need to realize firmware upgrade, and further realizing the processing of the corresponding NVMe SSD based on the judgment result.
S12: and if the NVMe SSD with the firmware version inconsistent with the corresponding firmware version in the upgrading server exists, determining the NVMe SSD as the NVMe SSD to be upgraded, downloading a firmware file corresponding to the NVMe to be upgraded from the upgrading server, and upgrading the firmware of the NVMe SSD to be upgraded by using the downloaded firmware file.
If the NVMe SSD with the firmware version different from the corresponding firmware version in the upgrading server exists, determining that the NVMe SSD needs to be upgraded, and specifically, after downloading a firmware file corresponding to the NVMe SSD in the upgrading server, programming the firmware corresponding to the firmware file to realize firmware upgrading; otherwise, determining that the NVMe SSD needing to realize firmware upgrading does not exist, and not needing to perform firmware upgrading.
S13: and if the NVMe SSD of which the firmware version is inconsistent with the corresponding firmware version in the upgrade server does not exist, determining that the firmware upgrade of the NVMe SSD is not needed.
According to the technical scheme, after the host computer is started, the connection with the upgrading server is achieved, whether all NVMe SSD contained in the host computer needs to be upgraded or not can be judged based on the firmware files in the upgrading server, the NVMe SSD needing to be upgraded is upgraded by downloading the corresponding firmware files in the upgrading server, the upgrading of NVMe SSD firmware can be automatically achieved without manual intervention, the workload is greatly reduced, and the operation and maintenance efficiency is effectively improved.
The method for automatically upgrading the NVMe SSD, provided by the embodiment of the present invention, may further include, after downloading the firmware file corresponding to the NVMe SSD to be upgraded from the upgrade server:
verifying the downloaded firmware file by using the verification code, if the verification is passed, executing the step of performing firmware upgrade by using the NVMe SSD to be upgraded corresponding to the downloaded firmware file, otherwise, refusing to execute the step of performing firmware upgrade by using the NVMe SSD to be upgraded corresponding to the downloaded firmware file; the check code is obtained from the upgrade server when the firmware file is downloaded.
The check code in the application can correspond to an MD5 algorithm, specifically, after a 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 both stored in an upgrade server; when a corresponding firmware file in an upgrade server is obtained, a check code corresponding to the firmware file is obtained at the same time, so that after the firmware file is downloaded, the downloaded firmware file is calculated by using a check code corresponding algorithm, the calculated check code is compared with the check code obtained from the upgrade server, if the check code and the check code are the same, the downloaded firmware file is not changed due to malicious tampering and the like and can be used for realizing the firmware upgrade, otherwise, the downloaded firmware file is changed due to the malicious tampering and the like, the safety and the reliability cannot be guaranteed, and at the moment, the downloaded firmware file is determined to be incapable of being used for realizing the firmware upgrade; therefore, the safety and reliability of firmware upgrading are ensured through the verification of the firmware file.
The automatic upgrading method for the NVMe SSD provided by the embodiment of the present invention may further include, after the host is started and the connection with the upgrade server is implemented:
and sending the identity authentication information of the host to the upgrade server, if the authentication result of the upgrade server on the identity authentication information is that the identity authentication is passed, determining that the access to the firmware file and the corresponding firmware version stored in the upgrade server can be realized, otherwise, determining that the access to the firmware file and the corresponding firmware version stored in the upgrade server cannot be realized.
It should be noted that, in order to avoid malicious tampering and other behaviors of the firmware file in the upgrade server, in this embodiment, identity authentication information of the host needs to be sent to the upgrade server, and the host is allowed to access the upgrade server only after the upgrade server passes the identity authentication of the host; the identity authentication information may include a host identifier of the host, and the upgrade server may authenticate the identity authentication information by determining whether the host identifier sent by the host exists in the host identifier pre-stored in the upgrade server, that is, if the determination result is yes, it indicates that the authentication is passed, otherwise, the authentication is not passed. Of course, the above-mentioned identity authentication information and the authentication of the identity authentication information may be set according to actual needs, and are within the protection scope of the present invention.
The automatic upgrading method for the NVMe SSD provided by the embodiment of the invention can further comprise the following steps:
and when determining that the access to the firmware file and the corresponding firmware version stored in the upgrade server cannot be realized, carrying the identity authentication information in the access request and sending the access request to a pre-specified management terminal so as to request the management terminal to perform corresponding processing corresponding to an administrator.
It should be noted that the management terminal is a terminal corresponding to an administrator having a management right on 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 manually authenticates the identity authentication information, and if the manual authentication is passed, the administrator can allow the host to access the upgrade server through the configuration of the upgrade server, thereby improving the functions and ensuring the successful access of a legitimate user to the upgrade server.
The automatic upgrading method for the NVMe SSD, provided by the embodiment of the invention, can further comprise the following steps after the NVMe SSD to be upgraded is determined:
and judging 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 so, executing the step of downloading the firmware file corresponding to the NVMe SSD from the upgrade server, and otherwise, refusing to execute the step of downloading the firmware file corresponding to the NVMe SSD from the upgrade server.
The time stamp corresponding to the time of generating the firmware file can be added into the firmware file, so that the morning and evening of the corresponding firmware file generation time can be determined through the time stamp, the later the generation time is, the newer the version of the corresponding firmware file is, the firmware file for realizing firmware upgrading is further guaranteed to be the effective and latest firmware, and the effectiveness of firmware upgrading is realized.
The automatic upgrading method for the NVMe SSD provided by the embodiment of the invention can further comprise the following steps:
and when the verification fails and the time stamp in the firmware file of the NVMe SSD to be upgraded is determined to be not earlier than the time stamp in the corresponding firmware file in the upgrade server, sending the corresponding prompt information to the management terminal.
It should be noted that when it is determined that the firmware file version in the upgrade server is not newer than the firmware version of the NVMe SSD in the host through the timestamp, it indicates that the firmware file in the upgrade server does not need to be used to perform firmware upgrade on the corresponding NVMe SSD in the host, and also indicates that the firmware file in the upgrade server needs to be updated, so that the corresponding prompt information is sent to the management terminal, so that an administrator corresponding to the management terminal performs management such as updating on the firmware file in the upgrade server, and the validity of the firmware file in the upgrade server is ensured.
The automatic upgrading method for the NVMe SSD provided by the embodiment of the invention can further comprise the following steps:
and when the verification fails and the time stamp in the firmware file of the NVMe SSD to be upgraded is determined not to be earlier than the time stamp in the corresponding firmware file in the upgrade server, displaying the corresponding prompt information on the host.
It should be noted that when it is determined that the time stamp in the firmware file of the NVMe SSD fails to be verified and is not earlier than the time stamp in the corresponding firmware file in the upgrade server, the corresponding prompt information may be displayed on the host, so that the user of the host can also timely know that the time stamp in the firmware file of the NVMe SSD fails to be verified is not earlier than the information of the time stamp in the corresponding firmware file in the upgrade server, and the user can conveniently implement the corresponding operation based on the information.
An embodiment of the present invention further provides an automatic upgrading apparatus for an NVMe SSD, which, as shown in fig. 2, may include:
a first determining module 11, configured to: after the host is started and connected with the upgrade server, judging whether the firmware version of each NVMe SSD in the host is consistent with the corresponding firmware version in the upgrade server;
a first execution module 12, configured to: if the NVMe SSD with the firmware version inconsistent with the corresponding firmware version in the upgrading server exists, determining the NVMe SSD as the NVMe SSD to be upgraded, downloading a firmware file corresponding to the NVMe SSD to be upgraded from the upgrading server, and performing firmware upgrading on the NVMe SSD to be upgraded by using the downloaded firmware file;
a second execution module 13, configured to: and if the NVMe SSD with the firmware version inconsistent with the corresponding firmware version in the upgrade server does not exist, determining that the firmware upgrade of the NVMe SSD is not needed.
The automatic upgrading device of the NVMe SSD provided by the embodiment of the present invention may further include:
a verification module to: after downloading the firmware file corresponding to the NVMe SSD to be upgraded from the upgrade server, verifying the downloaded firmware file by using the verification code, if the verification is passed, executing the step of performing firmware upgrade by using the NVMe SSD to be upgraded corresponding to the downloaded firmware file, otherwise, refusing to execute the step of performing firmware upgrade by using the NVMe SSD to be upgraded corresponding to the downloaded firmware file; the check code is obtained from the upgrade server when the firmware file is downloaded.
The automatic upgrading device for the NVMe SSD provided by the embodiment of the present invention may further include:
an access request module to: after the host is started and connected with the upgrading server, identity authentication information of the host is sent to the upgrading server, if the upgrading server passes the authentication of the identity authentication information, the upgrading server determines that the access to the firmware files and the corresponding firmware versions stored in the upgrading server can be realized, and if not, the upgrading server determines that the access to the firmware files and the corresponding firmware versions stored in the upgrading server cannot be realized.
The automatic upgrading device for the NVMe SSD provided by the embodiment of the present invention may further include:
a first sending module configured to: and when determining that the access to the firmware file and the corresponding firmware version stored in the upgrade server cannot be realized, carrying the identity authentication information in the access request and sending the access request to a pre-specified management terminal so as to request a corresponding administrator of the management terminal to perform corresponding processing.
The automatic upgrading device of the NVMe SSD provided by the embodiment of the present invention may further include:
a second determining module configured to: after determining the NVMe SSD to be upgraded, judging whether a time stamp in a firmware file of the NVMe SSD to be upgraded is earlier than a time stamp in a corresponding firmware file in an upgrade server, if so, executing a step of downloading the firmware file corresponding to the NVMe SSD to be upgraded in the upgrade server, and if not, refusing to execute a step of downloading the firmware file corresponding to the NVMe SSD to be upgraded in the upgrade server.
The automatic upgrading device for the NVMe SSD provided by the embodiment of the present invention may further include:
a second sending module, configured to: and when the verification fails and the time stamp in the firmware file of the NVMe SSD to be upgraded is determined not to be earlier than the time stamp in the corresponding firmware file in the upgrade server, sending the corresponding prompt information to the management terminal.
The automatic upgrading device for the NVMe SSD provided by the embodiment of the present invention may further include:
a display module to: and when the verification fails and the time stamp in the firmware file of the NVMe SSD to be upgraded is determined not to be earlier than the time stamp in the corresponding firmware file in the upgrade server, displaying the corresponding prompt information on the host.
The embodiment of the invention also provides an automatic upgrading device of the NVMe SSD, which comprises the following steps:
a memory for storing a computer program;
a processor for implementing the steps of the above method for automatically upgrading NVMe SSD when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when being executed by a processor, the computer program can realize the steps of the automatic upgrading method of the NVMe SSD.
It should be noted that for the description of the relevant parts in the apparatus, the device, and the computer-readable storage medium for automatically upgrading NVMe SSD provided in the embodiment of the present invention, reference is made to the detailed description of the corresponding parts in the method for automatically upgrading NVMe SSD provided in the embodiment of the present invention, and details are not repeated here. In addition, parts of the technical solutions provided by the embodiments of the present invention that are consistent with the implementation principle of the corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to 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)
1. An automatic upgrading method of NVMe SSD is characterized by comprising the following steps:
after the host is started and connected with an upgrade server, judging whether the firmware version of each NVMe SSD in the host is consistent with the corresponding firmware version in the upgrade server;
if the NVMe SSD with the firmware version inconsistent with the corresponding firmware version in the upgrading server exists, determining the NVMe SSD as the NVMe SSD to be upgraded, downloading a firmware file corresponding to the NVMe to be upgraded from the upgrading server, and upgrading the firmware of the NVMe SSD to be upgraded by using the downloaded firmware file;
if the NVMe SSD of which the firmware version is inconsistent with the corresponding firmware version in the upgrade server does not exist, determining that the firmware upgrade of the NVMe SSD does not need to be realized;
in addition, after the host computer is started and completed and the connection with the upgrade server is realized, the method further comprises the following steps:
and sending the identity authentication information of the host to the upgrade server, if the authentication result of the upgrade server on the identity authentication information is authentication, determining that the access to the firmware file and the corresponding firmware version stored in the upgrade server can be realized, otherwise, determining that the access to the firmware file and the corresponding firmware version stored in the upgrade server cannot be realized.
2. The method according to claim 1, wherein after downloading the firmware file corresponding to the NVMe SSD to be upgraded from the upgrade server, further comprising:
verifying the downloaded firmware file by using a verification code, if the verification is passed, executing a step of performing firmware upgrade by using the NVMe SSD to be upgraded corresponding to the downloaded firmware file, otherwise, refusing to execute the step of performing firmware upgrade by using the NVMe SSD to be upgraded corresponding to the downloaded firmware file; and the check code is acquired from the upgrading server when the firmware file is downloaded.
3. The method of claim 2, further comprising:
and when determining that the access to the firmware file and the corresponding firmware version stored in the upgrade server cannot be realized, carrying the identity authentication information in an access request and sending the access request to a pre-specified management terminal so as to request the management terminal to perform corresponding processing corresponding to an administrator.
4. The method of claim 3, wherein after determining the NVMe SSD to be upgraded, further comprising:
judging 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 so, executing the step of downloading the firmware file corresponding to the NVMe SSD from the upgrade server, otherwise, refusing to execute the step of downloading the firmware file corresponding to the NVMe SSD from the upgrade server.
5. The method of claim 4, further comprising:
and when the verification is not passed 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, sending the corresponding prompt information to the management terminal.
6. The method of claim 5, further comprising:
and when the verification is not passed 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, displaying the corresponding prompt information on the host.
7. An automatic upgrading device of NVMe SSD is characterized by comprising the following components:
a first determining module, configured to: after the host is started and connected with an upgrade server, judging whether the firmware version of each NVMe SSD in the host is consistent with the corresponding firmware version in the upgrade server;
a first execution module to: if the NVMe SSD with the firmware version inconsistent with the corresponding firmware version in the upgrading server exists, determining that the NVMe SSD is the NVMe SSD to be upgraded, downloading a firmware file corresponding to the NVMe SSD to be upgraded from the upgrading server, and upgrading the firmware of the NVMe SSD to be upgraded by using the downloaded firmware file;
a second execution module to: if the NVMe SSD of which the firmware version is inconsistent with the corresponding firmware version in the upgrade server does not exist, determining that the firmware upgrade of the NVMe SSD is not needed;
an access request module to: after the host is started and connected with the upgrading server, identity authentication information of the host is sent to the upgrading server, if the upgrading server passes the authentication of the identity authentication information, the upgrading server determines that the access to the firmware files and the corresponding firmware versions stored in the upgrading server can be realized, and if not, the upgrading server determines that the access to the firmware files and the corresponding firmware versions stored in the upgrading server cannot be realized.
8. An automatic upgrade device for NVMe SSD, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for automatic upgrade of NVMe SSD of any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, realizes the steps of the automatic upgrade method of NVMe SSD according to any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910286414.8A CN109976791B (en) | 2019-04-10 | 2019-04-10 | Automatic upgrading method, device and equipment for NVMe SSD |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910286414.8A CN109976791B (en) | 2019-04-10 | 2019-04-10 | Automatic upgrading method, device and equipment for 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 | Automatic upgrading method, device and equipment for 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 | |
CN106325929B (en) | Firmware upgrading method, firmware upgrading device, refrigerator and server | |
CN109976791B (en) | Automatic upgrading method, device and equipment for NVMe SSD | |
US20190317755A1 (en) | Method for upgrading software of pos terminal, pos terminal, and storage medium | |
EP2840492A1 (en) | Method and apparatus for modifying a computer program in a trusted manner | |
JP6458133B2 (en) | Application program restoration method, apparatus, and recording medium | |
CN110943860B (en) | BMC (baseboard management controller) firmware updating method and system, electronic equipment and storage medium | |
US9519786B1 (en) | Firmware integrity ensurance and update | |
TWI490702B (en) | Method for recovering system file in computer and apparatus thereof | |
CN109240731B (en) | Safe upgrading method and system for TBox | |
CN110597545B (en) | Hot patch Ding Zhineng upgrading method and system based on OTA component | |
CN111338656A (en) | Method and device for installing software package to target host and computer equipment | |
CN112817621A (en) | BIOS firmware refreshing method and device and related components | |
WO2019089047A1 (en) | Operating system repairs via recovery agents | |
CN113360914A (en) | BIOS updating method, system, equipment and medium | |
CN114840242A (en) | System upgrading method and device of electronic equipment and readable storage medium | |
KR20190062797A (en) | User terminal for using cloud service, integrated security management server of user terminal and method thereof | |
CN111176685A (en) | Upgrading method and device | |
CN115244534A (en) | Information processing apparatus and program startup method | |
CN115220755A (en) | Router online upgrading system based on credibility measurement | |
TWI730415B (en) | Detection system, detection method, and an update verification method performed by using the detection method | |
US9417863B2 (en) | System and method for expedited loading of an image onto a storage device | |
CN111427607A (en) | Configuration file repair method, device and computer-readable storage medium | |
CN114168169B (en) | Microcode updating method, device, equipment and storage medium | |
CN113326055B (en) | Equipment updating method and related device |
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 |