CN107402753B - A method and device for refreshing hard disk firmware - Google Patents

A method and device for refreshing hard disk firmware Download PDF

Info

Publication number
CN107402753B
CN107402753B CN201710522683.0A CN201710522683A CN107402753B CN 107402753 B CN107402753 B CN 107402753B CN 201710522683 A CN201710522683 A CN 201710522683A CN 107402753 B CN107402753 B CN 107402753B
Authority
CN
China
Prior art keywords
hard disk
firmware
list
information
refreshing
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
Application number
CN201710522683.0A
Other languages
Chinese (zh)
Other versions
CN107402753A (en
Inventor
翟文琼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201710522683.0A priority Critical patent/CN107402753B/en
Publication of CN107402753A publication Critical patent/CN107402753A/en
Application granted granted Critical
Publication of CN107402753B publication Critical patent/CN107402753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明实施例提供一种硬盘固件的刷新方法及装置,通过获取存储系统中所有硬盘的硬盘信息;从所述硬盘信息中提取出硬盘标识,组成第一列表;对所述第一列表进行筛选,得到第二列表;将相应的固件文件刷新到所述第二列表的每个硬盘中。本发明实施例从硬盘信息中提取出硬盘标识,通过粗略筛选组成第一列表,再通过精确筛选得到第二列表,第二列表能够包括所有需要进行固件刷新的硬盘,根据所述第二列表固件刷新,从而保证所有必需的硬盘均进行固件刷新,提高了固件刷新质量。

Figure 201710522683

Embodiments of the present invention provide a method and device for refreshing hard disk firmware, by acquiring hard disk information of all hard disks in a storage system; extracting hard disk identifiers from the hard disk information to form a first list; filtering the first list , obtain the second list; refresh the corresponding firmware file to each hard disk in the second list. In this embodiment of the present invention, hard disk identifiers are extracted from hard disk information, a first list is formed by rough screening, and a second list is obtained by precise screening. The second list can include all hard disks whose firmware needs to be refreshed. According to the second list, the firmware Refresh, thus ensuring that all required hard drives are firmware refreshed, improving firmware refresh quality.

Figure 201710522683

Description

一种硬盘固件的刷新方法及装置A method and device for refreshing hard disk firmware

技术领域technical field

本发明涉及存储系统技术领域,特别是涉及一种硬盘固件的刷新方法及装置。The present invention relates to the technical field of storage systems, and in particular, to a method and device for refreshing hard disk firmware.

背景技术Background technique

存储系统通常由硬盘组成,硬盘承载着大量用户数据。在IT行业高速发展的背景下,存储系统的用户规模日益扩大,对存储系统的数据安全性要求也越来越高,由于硬盘是存储系统的重要组件,因此对硬盘的质量要求更严格。A storage system usually consists of hard disks, which carry a large amount of user data. In the context of the rapid development of the IT industry, the user scale of storage systems is expanding, and the requirements for data security of storage systems are getting higher and higher. Since hard disks are important components of storage systems, the quality requirements for hard disks are stricter.

为了保证硬盘质量,进而确保整个存储系统的稳定性,需要对硬盘的固件(英文:firmware)进行刷新。其中,固件是担任着系统基础、底层工作的软件,通常决定着硬盘的功能及性能;对硬盘固件进行刷新,是保证硬盘质量的关键。In order to ensure the quality of the hard disk and thus ensure the stability of the entire storage system, the firmware of the hard disk needs to be refreshed. Among them, firmware is the software that serves as the foundation and bottom layer of the system, and usually determines the function and performance of the hard disk. Refreshing the hard disk firmware is the key to ensuring the quality of the hard disk.

然而发明人通过研究发现,存储系统中通常包含大量的硬盘,在对硬盘固件刷新的过程中,很容易导致一些需要进行固件刷新的硬盘漏刷,刷新质量差。However, the inventor found through research that a storage system usually contains a large number of hard disks, and in the process of refreshing the hard disk firmware, it is easy to cause some hard disks that need to be refreshed to be refreshed, and the refresh quality is poor.

因此,如何提高硬盘固件的刷新质量,是本领域技术人员亟需解决的技术问题。Therefore, how to improve the refresh quality of the hard disk firmware is a technical problem that needs to be solved urgently by those skilled in the art.

发明内容SUMMARY OF THE INVENTION

鉴于以上所述现有技术的缺点,本发明的目的在于提供一种硬盘固件的刷新方法及装置,用于解决现有技术中硬盘固件刷新质量差的问题。In view of the above-mentioned shortcomings of the prior art, the purpose of the present invention is to provide a method and device for refreshing hard disk firmware, which are used to solve the problem of poor refresh quality of hard disk firmware in the prior art.

为实现上述目的及其他相关目的,根据本发明的第一方面,本发明实施例提供一种硬盘固件的刷新方法,该方法包括以下步骤:In order to achieve the above purpose and other related purposes, according to the first aspect of the present invention, an embodiment of the present invention provides a method for refreshing hard disk firmware, the method comprising the following steps:

获取存储系统中所有硬盘的硬盘信息;Obtain the hard disk information of all hard disks in the storage system;

从所述硬盘信息中提取出硬盘标识,组成第一列表;Extract the hard disk identification from the hard disk information to form a first list;

对所述第一列表进行筛选,得到第二列表;Screening the first list to obtain a second list;

将相应的固件文件刷新到所述第二列表的每个硬盘中。Flash the corresponding firmware file to each hard disk in the second list.

可选地,所述从所述硬盘信息中提取出硬盘标识,包括:Optionally, the extracting the hard disk identifier from the hard disk information includes:

从所述硬盘信息行中,提取出具有第一关键字的信息行;From the hard disk information row, extract the information row with the first keyword;

从提取出的信息行中,删除具有第二关键字的信息行;From the extracted information row, delete the information row with the second keyword;

从删除后剩余的信息行中,分别提取固定位置的信息块,得到硬盘标识。From the remaining information lines after deletion, information blocks at fixed positions are respectively extracted to obtain the hard disk identification.

可选地,该方法还包括:Optionally, the method further includes:

从提取到的硬盘标识中,删除与预设格式不匹配的分割符。From the extracted hard disk identification, delete the separator that does not match the preset format.

可选地,所述对所述第一列表进行筛选,得到第二列表,包括:Optionally, the filtering of the first list to obtain a second list includes:

根据所述硬盘标识,获取硬盘的固件版本号;Obtain the firmware version number of the hard disk according to the hard disk identification;

当所述固件版本号与预设的参考版本号相等时,将相应的硬盘标识从第一列表中删除,得到第二列表。When the firmware version number is equal to the preset reference version number, the corresponding hard disk identifier is deleted from the first list to obtain a second list.

可选地,所述将相应的固件文件刷新到所述第二列表的每个硬盘中,包括:Optionally, the refreshing of the corresponding firmware file to each hard disk in the second list includes:

根据第二列表中的硬盘标识,从固件库中选择硬盘对应的固件文件;According to the hard disk identification in the second list, select the firmware file corresponding to the hard disk from the firmware library;

将选择出的固件文件刷新到相应的硬盘中。Flash the selected firmware file to the corresponding hard disk.

可选地,该刷新方法还包括:Optionally, the refresh method further includes:

获取固件刷新后硬盘的固件版本号;Get the firmware version number of the hard disk after the firmware is refreshed;

当所述固件版本号与预设的参考版本号不相等时,发出错误消息,所述错误消息中携带有相应的硬盘标识,用于标识相应的硬盘固件刷新错误。When the firmware version number is not equal to the preset reference version number, an error message is sent, and the error message carries a corresponding hard disk identification for identifying a corresponding hard disk firmware refresh error.

根据本发明的第二方面,本发明实施例还提供一种硬盘固件的刷新装置,该装置包括:According to a second aspect of the present invention, an embodiment of the present invention further provides a device for refreshing hard disk firmware, the device comprising:

获取模块,用于获取存储系统中所有硬盘的硬盘信息;The acquisition module is used to acquire the hard disk information of all hard disks in the storage system;

提取模块,用于从所述硬盘信息中提取出硬盘标识,组成第一列表;an extraction module, used for extracting the hard disk identification from the hard disk information to form a first list;

筛选模块,用于对所述第一列表进行筛选,得到第二列表;a screening module for screening the first list to obtain a second list;

刷新模块,用于将相应的固件文件刷新到所述第二列表的每个硬盘中。A refresh module, configured to refresh the corresponding firmware file to each hard disk in the second list.

可选地,所述提取模块用于,Optionally, the extraction module is used for,

从所述硬盘信息中,提取出具有第一关键字的信息行;From the hard disk information, extract the information row with the first keyword;

从提取出的信息行中,删除具有第二关键字的信息行;From the extracted information row, delete the information row with the second keyword;

从删除后剩余的信息行中,分别提取固定位置的信息块,得到硬盘标识。From the remaining information lines after deletion, information blocks at fixed positions are respectively extracted to obtain the hard disk identification.

可选地,所述筛选模块用于,Optionally, the screening module is used for,

根据所述硬盘标识,获取硬盘的固件版本号;Obtain the firmware version number of the hard disk according to the hard disk identification;

当所述固件版本号与预设的参考版本号相等时,将相应的硬盘标识从第一列表中删除,得到第二列表。When the firmware version number is equal to the preset reference version number, the corresponding hard disk identifier is deleted from the first list to obtain a second list.

可选地,该刷新装置还包括校验模块用于,Optionally, the refresh device also includes a verification module for,

当所述固件版本号与预设的参考版本号不相等时,发出错误消息,所述错误消息携带有相应的硬盘标识,用于标识相应的硬盘固件刷新错误。When the firmware version number is not equal to the preset reference version number, an error message is sent, and the error message carries a corresponding hard disk identifier for identifying a corresponding hard disk firmware refresh error.

如上所述,本发明实施例提供的一种硬盘固件的刷新方法及装置,具有以下有益效果:通过获取存储系统中所有硬盘的硬盘信息;从所述硬盘信息中提取出硬盘标识,组成第一列表;对所述第一列表进行筛选,得到第二列表;将相应的固件文件刷新到所述第二列表的每个硬盘中。本发明实施例从硬盘信息中提取出硬盘标识,通过粗略筛选组成第一列表,再通过精确筛选得到第二列表,第二列表能够包括所有需要进行固件刷新的硬盘,根据所述第二列表固件刷新,从而保证所有必需的硬盘均进行固件刷新,提高了固件刷新质量。As described above, a method and device for refreshing hard disk firmware provided by the embodiments of the present invention have the following beneficial effects: by acquiring the hard disk information of all hard disks in the storage system; list; filter the first list to obtain a second list; refresh the corresponding firmware file to each hard disk in the second list. In this embodiment of the present invention, hard disk identifiers are extracted from hard disk information, a first list is formed by rough screening, and a second list is obtained by precise screening. The second list can include all hard disks whose firmware needs to be refreshed. According to the second list, the firmware Refresh, thereby ensuring that all required hard drives are firmware refreshed, improving firmware refresh quality.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. In other words, on the premise of no creative labor, other drawings can also be obtained from these drawings.

图1是本发明实施例提供的一种硬盘固件的刷新方法的流程示意图;1 is a schematic flowchart of a method for refreshing hard disk firmware according to an embodiment of the present invention;

图2是本发明实施例提供的一种硬盘标识的提取方法的流程示意图;2 is a schematic flowchart of a method for extracting a hard disk identifier according to an embodiment of the present invention;

图3是本发明实施例提供的一种筛选方法的流程示意图;3 is a schematic flowchart of a screening method provided by an embodiment of the present invention;

图4是是本发明实施例提供的一种硬盘刷新方法的流程示意图;4 is a schematic flowchart of a method for refreshing a hard disk provided by an embodiment of the present invention;

图5是本发明实施例提供的另一种硬盘固件的刷新方法;5 is another method for refreshing hard disk firmware provided by an embodiment of the present invention;

图6是本发明实施例提供的一种硬盘固件的刷新装置的结构示意图。FIG. 6 is a schematic structural diagram of a device for refreshing hard disk firmware according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

请参阅图1至图6。需要说明的是,本实施例中所提供的图示仅以示意方式说明本发明的基本构想,遂图示中仅显示与本发明中有关的组件而非按照实际实施时的组件数目、形状及尺寸绘制,其实际实施时各组件的型态、数量及比例可为一种随意的改变,且其组件布局型态也可能更为复杂。See Figures 1 to 6. It should be noted that the diagrams provided in this embodiment are only to illustrate the basic concept of the present invention in a schematic way, so the diagrams only show the components related to the present invention rather than the number, shape and the number of components in the actual implementation. For dimension drawing, the type, quantity and proportion of each component can be changed at will in actual implementation, and the component layout may also be more complicated.

参见图1,是本发明实施例提供的一种硬盘固件的刷新方法的流程示意图。如图1所示,该方法包括以下步骤:Referring to FIG. 1 , it is a schematic flowchart of a method for refreshing hard disk firmware according to an embodiment of the present invention. As shown in Figure 1, the method includes the following steps:

步骤S101:获取存储系统中所有硬盘的硬盘信息。Step S101: Acquire hard disk information of all hard disks in the storage system.

在具体实施时,可以通过控制指令获取存储系统中所有硬盘的硬盘信息。在一示例性实施例中,可以使用“fdisk -l”的控制指令获取所述硬盘信息。所述硬盘信息中可以包括存储系统中所有硬盘的硬盘标识、硬盘容量、扇区数量、扇区容量、磁柱数量以及磁柱容量等。During specific implementation, the hard disk information of all hard disks in the storage system can be acquired through the control instruction. In an exemplary embodiment, the hard disk information can be acquired using the control instruction of "fdisk -1". The hard disk information may include hard disk identifiers, hard disk capacities, sector numbers, sector capacities, magnetic column numbers, and magnetic column capacities of all hard disks in the storage system.

而且,所述硬盘信息中包括多个信息行。在一示例性实施例中,所述硬盘信息包括第一信息行和第二信息行;其中,第一信息行表示为“Disk /dev/sdb: 27000.3GB,27000311906304 bytes”,用于表示硬盘标识为“/dev/sdb”的硬盘容量为27000.3GB,27000311906304 bytes;第二信息行表示为“Units = sectors of 1 * 512 = 512bytes”,扇区容量为512bytes。Moreover, the hard disk information includes a plurality of information lines. In an exemplary embodiment, the hard disk information includes a first information row and a second information row; wherein, the first information row is represented as "Disk /dev/sdb: 27000.3GB, 27000311906304 bytes", which is used to represent the hard disk identification. The hard disk capacity of "/dev/sdb" is 27000.3GB, 27000311906304 bytes; the second information line is expressed as "Units = sectors of 1 * 512 = 512bytes", and the sector capacity is 512bytes.

每个信息行中又进一步包括多个信息块,用空格相分隔。例如对于上述第一信息行,可以包括5个信息块,具体为“Disk”、“/dev/sdb:”、“27000.3GB,”、“27000311906304”和“bytes”。Each line of information further includes a plurality of blocks of information, separated by spaces. For example, the above-mentioned first information row may include 5 information blocks, specifically "Disk", "/dev/sdb:", "27000.3GB,", "27000311906304", and "bytes".

本发明实施例将以包括第一信息行和第二信息行的硬盘信息为例,详细描述后续步骤。In this embodiment of the present invention, the following steps will be described in detail by taking the hard disk information including the first information row and the second information row as an example.

当然需要说明的是,上述硬盘信息的获取方式仅是一示例性实施例,在具体实施时,可以通过其他命令工具获取到存储系统中所有硬盘的硬盘信息;而且,所述硬盘信息的组织形式也不限于上述实施例的描述。Of course, it should be noted that the above-mentioned way of obtaining the hard disk information is only an exemplary embodiment. During the specific implementation, the hard disk information of all the hard disks in the storage system can be obtained through other command tools; moreover, the organization form of the hard disk information Nor is it limited to the description of the above-mentioned embodiments.

步骤S102:从所述硬盘信息中提取出硬盘标识,组成第一列表。Step S102: Extract the hard disk identifier from the hard disk information to form a first list.

本发明实施例根据关键字从硬盘信息中提取出所有硬盘标识,并将提取出的硬盘标识组成第一列表。In the embodiment of the present invention, all hard disk identifiers are extracted from the hard disk information according to the keywords, and the extracted hard disk identifiers are formed into a first list.

参见图2,是本发明实施例提供的一种硬盘标识的提取方法的流程示意图。如图2所示,该方法包括:Referring to FIG. 2 , it is a schematic flowchart of a method for extracting a hard disk identifier according to an embodiment of the present invention. As shown in Figure 2, the method includes:

步骤S1021:从所述硬盘信息中,提取出具有第一关键字的信息行。Step S1021: Extract the information row with the first keyword from the hard disk information.

根据步骤S101得到的硬盘信息,由于硬盘标识所在的信息行具有相同的重复字符。根据步骤S101中示例性的硬盘信息,所述重复字符可以包括“Disk”、“/dev/sd”。According to the hard disk information obtained in step S101, since the information row where the hard disk identification is located has the same repeated characters. According to the exemplary hard disk information in step S101, the repeated characters may include "Disk" and "/dev/sd".

在第一种实施情况下,可以使用上述重复字符中的任意一个作为第一关键字,从而提取出第一关键字所在的信息行。一示例性实施中,提取具有第一关键字的信息行可以使用“sed”命令,根据第一关键字生成相应的正则表达式为“/Disk”或“\/dev\/sd/p”,通过“sed”命令与正则表达式的结合,能够提取出第一关键字所在的信息行。In the first implementation case, any one of the above-mentioned repeated characters can be used as the first keyword, so as to extract the information row where the first keyword is located. In an exemplary implementation, the "sed" command can be used to extract the information line with the first keyword, and the corresponding regular expression is generated according to the first keyword as "/Disk" or "\/dev\/sd/p", Through the combination of the "sed" command and the regular expression, the information line where the first keyword is located can be extracted.

在第二种实施情况下, 可以使上述重复字符中的结合作为第一关键字,从而提取出第一关键字所在的信息行。另一示例性实施例中,根据第一关键字生成的正则表达式可以为“/Disk\ \/dev\/sd/p”,这样通过“sed”命令与正则表达式的结合,能够提取出第一关键字所在的信息行。In the second implementation case, the combination of the above repeated characters can be used as the first keyword, so as to extract the information line where the first keyword is located. In another exemplary embodiment, the regular expression generated according to the first keyword may be "/Disk\ \/dev\/sd/p", so that through the combination of the "sed" command and the regular expression, the The information line where the first keyword is located.

通过所述第一关键字,提取到的信息行为第一信息行即“Disk /dev/sdb:27000.3GB,27000311906304 bytes”。Through the first keyword, the extracted information row is the first information row, namely "Disk /dev/sdb: 27000.3GB, 27000311906304 bytes".

步骤S1022:从提取出的信息行中,删除具有第二关键字的信息行。Step S1022: Delete the information row with the second keyword from the extracted information row.

由于在提取出的信息行中,可能包括不需要信息行,例如包括“sda”的信息行,“sda”通常代表系统盘而非需要进行固件刷新的硬盘,则需要对提取出的信息行进行过滤,删除不需要的信息行。一示例性实施例中,为了删除包含“sda”的信息行,可以将“sda”作为第二关键字,通过调用“sed”命令,删除具有第二关键字的信息行。Since the extracted information lines may include unnecessary information lines, such as information lines including "sda", "sda" usually represents the system disk rather than the hard disk that needs to be refreshed. Filter, remove unneeded lines of information. In an exemplary embodiment, in order to delete the information row containing "sda", "sda" may be used as the second keyword, and the information row with the second keyword can be deleted by calling the "sed" command.

步骤S1023:从删除后剩余的信息行中,分别提取固定位置的信息块,得到硬盘标识。Step S1023 : extract information blocks at fixed positions from the remaining information rows after deletion, respectively, to obtain a hard disk identifier.

一示例性实施例中,在经过步骤S1022后,剩余的信息行为第一信息行。在第一信息行中,第二位置的信息块为需要提取的硬盘标识。在具体实施时,可以通过调用“awk”命令,并制定提取第二位置的信息块,来提取所述硬盘标识。经过步骤S1023的处理后,从第一信息行中,可以提取到位于第二位置的信息块“/dev/sdb:”,可以将该信息块作为硬盘标识,进行后续步骤的处理。In an exemplary embodiment, after step S1022, the remaining information row is the first information row. In the first information row, the information block in the second position is the identification of the hard disk to be extracted. During specific implementation, the hard disk identifier can be extracted by calling the "awk" command and formulating an information block for extracting the second position. After the processing in step S1023, the information block "/dev/sdb:" located at the second position can be extracted from the first information row, and the information block can be used as a hard disk identifier for processing in subsequent steps.

当然需要说明的是,上述提取信息行的过程仅是一示例性实施例,在具体实施时,可以使用任意其他命令,或者其他任意形式的正则表达式,在本发明实施例中不做限定。Of course, it should be noted that the above process of extracting information lines is only an exemplary embodiment, and during specific implementation, any other command or regular expression in any other form may be used, which is not limited in this embodiment of the present invention.

为了获得标准格式的硬盘标识,本发明实施例还提供另一种硬盘标识的提取方法,在如图2所示的提取方法的基础上,执行完步骤S1023之后,还可以包括步骤:从提取到的硬盘标识中,删除与预设格式不匹配的分隔符。In order to obtain a hard disk identifier in a standard format, the embodiment of the present invention further provides another method for extracting a hard disk identifier. On the basis of the extraction method shown in FIG. 2 , after step S1023 is performed, the following steps may be further included: from extracting to , delete the delimiter that does not match the preset format.

一示例性实施例中,所述预设格式可以为“/dev/sd*”,其中“*”可以为标识任何字母或数字字符等的通配符。这样通过遍历比较步骤S1023得到硬盘标识中的每个字符,可以确定“/dev/sdb:”与预设格式不匹配,在结尾处多了一个分隔符“:”,需要去除分隔符“:”。同样可以通过调用“awk”命令,去除掉分隔符,从而得到满足预设格式的硬盘标识,这样,可以直接被后续步骤调用,提高硬盘固件的刷新速度。In an exemplary embodiment, the preset format may be "/dev/sd*", where "*" may be a wildcard character identifying any alphanumeric character or the like. In this way, by traversing and comparing step S1023 to obtain each character in the hard disk identification, it can be determined that "/dev/sdb:" does not match the preset format, and a separator ":" is added at the end, and the separator ":" needs to be removed. . Similarly, by calling the "awk" command, the separator can be removed, so as to obtain the hard disk identification that meets the preset format, so that it can be directly called by the subsequent steps to improve the refresh speed of the hard disk firmware.

步骤S103:对所述第一列表进行筛选,得到第二列表。Step S103: Filter the first list to obtain a second list.

由于在存储系统中可能包括多块不需要刷新固件的硬盘,这样通过第一列表进行固件刷新可能刷新到不必要的硬盘,影响固件刷新速度,甚至还可能由于强行进行固件刷新,导致硬盘故障。Since the storage system may include multiple hard disks that do not need to be refreshed, firmware refresh through the first list may refresh to unnecessary hard disks, affecting the firmware refresh speed, and may even cause hard disk failure due to forcible firmware refresh.

参见图3,是本发明实施例提供的一种筛选方法的流程示意图。如图3所示,本发明实施例示出了对第一列表进行筛选的过程:Referring to FIG. 3 , it is a schematic flowchart of a screening method provided by an embodiment of the present invention. As shown in FIG. 3, an embodiment of the present invention shows a process of filtering the first list:

步骤S1031:根据所述硬盘标识,获取硬盘的固件版本号。Step S1031: Obtain the firmware version number of the hard disk according to the hard disk identifier.

根据所述硬盘标识通过调用相应的查询命令,可以获取所述硬盘标识对应的硬盘的固件版本号。The firmware version number of the hard disk corresponding to the hard disk identifier can be acquired by invoking a corresponding query command according to the hard disk identifier.

步骤S1032:当所述固件版本号与预设的参考版本号相等时,将相应的硬盘标识从第一列表中删除,得到第二列表。Step S1032: when the firmware version number is equal to the preset reference version number, delete the corresponding hard disk identifier from the first list to obtain a second list.

可以预先对存储系统中的所用硬盘,建立硬盘标识与参考版本号的对应关系。例如第一硬盘标识对应第一参考版本号,第二硬盘标识对应第二参考版本号,所述第一参考版本号是第一硬盘可以刷新到的固件版本,第二参考版本号为第二硬盘可以刷新到的固件版本。The corresponding relationship between the hard disk identifier and the reference version number can be established for the hard disk used in the storage system in advance. For example, the first hard disk identifier corresponds to the first reference version number, the second hard disk identifier corresponds to the second reference version number, the first reference version number is the firmware version to which the first hard disk can be refreshed, and the second reference version number is the second hard disk. The firmware version that can be flashed to.

当所述固件版本号与预设的参考版本号相等时,例如通过步骤S1031查询得到的第一硬盘的固件版本号等于第一参考版本号,则将第一硬盘对应的硬盘标识从第一列表中删除。通过遍历第一列表所对应的所有硬盘,在判断完所有硬盘的固件版本号与相应的参考版本号并执行上述操作后,可以得到筛选后的第二列表。在第二列表中包括需要进行固件刷新的硬盘,防止重刷,提高硬盘固件刷新的准确度,进而提高刷新质量。When the firmware version number is equal to the preset reference version number, for example, the firmware version number of the first hard disk obtained by the query in step S1031 is equal to the first reference version number, then the hard disk identifier corresponding to the first hard disk is removed from the first list. deleted in . By traversing all the hard disks corresponding to the first list, after judging the firmware version numbers and the corresponding reference version numbers of all the hard disks and performing the above operations, a filtered second list can be obtained. The second list includes hard disks whose firmware needs to be refreshed, so as to prevent re-flashing, improve the accuracy of hard disk firmware refreshing, and further improve the refresh quality.

步骤S104:将相应的固件文件刷新到所述第二列表的每个硬盘中。Step S104: Refresh the corresponding firmware file to each hard disk in the second list.

在第一种实施情况下,存储系统使用的所有硬盘可能为相同厂家、相同类型、相同型号的硬盘,保证存储系统的兼容性。例如,硬盘均为A厂商生产的、SATA类型的机械硬盘、而且型号也相同,这样存储系统中的所有硬盘可以使用同样的固件文件进行升级。In the first implementation situation, all hard disks used by the storage system may be hard disks of the same manufacturer, same type, and same model, to ensure the compatibility of the storage system. For example, the hard disks are all SATA-type mechanical hard disks produced by manufacturer A and have the same model, so that all hard disks in the storage system can be upgraded using the same firmware file.

在第二种实施情况下,存储系统可能使用不同厂家生产的硬盘,不同厂家生产的相同类型的硬盘,或者同一厂家生产的不同类型的硬盘,或者生产厂家生产的不同型号的硬盘,这样,在存储系统中,可能存在多个硬盘中,需要分别使用不同的固件文件,对每个硬盘进行刷新。参见图4,是本发明实施例提供的一种硬盘刷新方法的流程示意图。如图4所示,该方法包括:In the second implementation situation, the storage system may use hard disks produced by different manufacturers, the same type of hard disks produced by different manufacturers, or different types of hard disks produced by the same manufacturer, or different types of hard disks produced by manufacturers. In the storage system, there may be multiple hard disks, and each hard disk needs to be refreshed with different firmware files. Referring to FIG. 4 , it is a schematic flowchart of a method for refreshing a hard disk according to an embodiment of the present invention. As shown in Figure 4, the method includes:

步骤S1041:根据第二列表中的硬盘标识,从固件库中选择硬盘对应的固件文件。Step S1041: Select a firmware file corresponding to the hard disk from the firmware library according to the hard disk identifier in the second list.

在具体实施时,可以建立包括多种不同固件文件的固件库,该固件库中的固件文件对应由相应厂家、类型和型号的硬盘。而且,建立硬盘标识与固件文件的对应关系,通过查询该对应关系可以确定硬盘标识对应的固件文件。一示例性实施例中,固件库可以包括第一固件文件和第二固件文件,第一固件文件与第一硬盘标识具有对应关系,第二固件文件与第二硬盘标识具有对应关系。当需要刷新第一硬盘时,通过第一硬盘标识,可以确定需要使用第一固件文件进行刷新。During specific implementation, a firmware library including a variety of different firmware files can be established, and the firmware files in the firmware library correspond to hard disks of corresponding manufacturers, types and models. Moreover, a corresponding relationship between the hard disk identifier and the firmware file is established, and the firmware file corresponding to the hard disk identifier can be determined by querying the corresponding relationship. In an exemplary embodiment, the firmware library may include a first firmware file and a second firmware file, the first firmware file has a corresponding relationship with the first hard disk identifier, and the second firmware file has a corresponding relationship with the second hard disk identifier. When the first hard disk needs to be refreshed, it can be determined that the first firmware file needs to be refreshed by using the first hard disk identifier.

步骤S1042:将选择出的固件文件刷新到相应的硬盘中。Step S1042: Refresh the selected firmware file to the corresponding hard disk.

根据选择出的固件文件,将相应的固件文件刷新到相应的硬盘中。一示例性实施例中,通过步骤S1041选择出了第一固件文件,则对第一硬盘进行固件刷新则使用第一固件文件。According to the selected firmware file, refresh the corresponding firmware file to the corresponding hard disk. In an exemplary embodiment, the first firmware file is selected through step S1041, and the first firmware file is used when the firmware of the first hard disk is refreshed.

而且,在一示例性实施例中,可以使用相应的刷新工具,使用刷新命令进行固件刷新。例如使用“seaflashlin”工具通过指定固件文件的名称、以及硬盘标识即可完成相应的固件刷新。当然需要说明的是,在本发明实施例中可以使用任意其他的固件刷新工具,在发明实施例中不做限定。Also, in an exemplary embodiment, a corresponding flash tool can be used to flash the firmware using a flash command. For example, using the "seaflashlin" tool, you can complete the corresponding firmware update by specifying the name of the firmware file and the hard disk identification. Of course, it should be noted that any other firmware refresh tool may be used in this embodiment of the present invention, which is not limited in this embodiment of the present invention.

另外,在进行固件刷新的过程中,可以使用串行的方式,通过循环调用刷新命令完成。或者,可以使用并行的方式,在并发进程中同时调用多个刷新命令进行固件刷新,提高固件刷新效率。In addition, in the process of firmware refresh, it can be done in a serial manner by calling the refresh command cyclically. Alternatively, a parallel manner can be used to simultaneously call multiple refresh commands to perform firmware refresh in a concurrent process, thereby improving firmware refresh efficiency.

由上述实施例的描述可见,本发明实施例提供的一种硬盘固件的刷新方法,通过获取存储系统中所有硬盘的硬盘信息;从所述硬盘信息中提取出硬盘标识,组成第一列表;对所述第一列表进行筛选,得到第二列表;将相应的固件文件刷新到所述第二列表的每个硬盘中。本发明实施例从硬盘信息中提取出硬盘标识,通过粗略筛选组成第一列表,再通过精确筛选得到第二列表,第二列表能够包括所有需要进行固件刷新的硬盘,根据所述第二列表固件刷新,从而保证所有必需的硬盘均进行固件刷新,提高了固件刷新质量。As can be seen from the description of the above-mentioned embodiments, a method for refreshing hard disk firmware provided in the embodiment of the present invention obtains the hard disk information of all the hard disks in the storage system; extracts the hard disk identifiers from the hard disk information to form a first list; The first list is filtered to obtain a second list; the corresponding firmware file is refreshed to each hard disk in the second list. In this embodiment of the present invention, hard disk identifiers are extracted from hard disk information, a first list is formed by rough screening, and a second list is obtained by precise screening. The second list can include all hard disks whose firmware needs to be refreshed. According to the second list, the firmware Refresh, thereby ensuring that all required hard drives are firmware refreshed, improving firmware refresh quality.

参见图5,是本发明实施例提供的另一种硬盘固件的刷新方法。如图5所示,在图1所示的硬盘固件的刷新方法的基础上,本发明实施例还可以在固件刷新完成后,对固件刷新结果进行校验,以保证固件刷新的质量。该刷新方法包括:Referring to FIG. 5 , it is another method for refreshing hard disk firmware provided by an embodiment of the present invention. As shown in FIG. 5 , on the basis of the method for refreshing the hard disk firmware shown in FIG. 1 , the embodiment of the present invention may further verify the firmware refreshing result after the firmware refreshing is completed, so as to ensure the quality of the firmware refreshing. The refresh method includes:

步骤S201:获取存储系统中所有硬盘的硬盘信息。Step S201: Acquire hard disk information of all hard disks in the storage system.

步骤S202:从所述硬盘信息中提取出硬盘标识,组成第一列表。Step S202: Extract the hard disk identifier from the hard disk information to form a first list.

步骤S203:对所述第一列表进行筛选,得到第二列表。Step S203: Filter the first list to obtain a second list.

步骤S204:将相应的固件文件刷新到所述第二列表的每个硬盘中。Step S204: Refresh the corresponding firmware file to each hard disk in the second list.

步骤S205:获取固件刷新后硬盘的固件版本号。Step S205: Obtain the firmware version number of the hard disk after the firmware is refreshed.

一示例性实施例中,第一硬盘完成固件刷新后,获取第一硬盘的固件版本号。In an exemplary embodiment, after the first hard disk completes the firmware refresh, the firmware version number of the first hard disk is obtained.

步骤S206:当所述固件版本号与预设的参考版本号不相等时,发出错误消息,所述错误消息中携带有相应的硬盘标识,用于表示相应的硬盘固件刷新错误。Step S206 : when the firmware version number is not equal to the preset reference version number, an error message is sent, and the error message carries a corresponding hard disk identifier to indicate that the corresponding hard disk firmware is refreshed incorrectly.

通过第一硬盘标识与参考版本号的对应关系,能够确定第一硬盘需要刷新到的参考版本号。当第一硬盘的固件版本号与参考版本号不相等时,表示第一硬盘固件刷新错误。进一步,可以发出错误消息,该错误消息中携带有相应的硬盘标识,通过该错误消息,以及时通知技术人员对相应的硬盘进行检查。Through the correspondence between the first hard disk identifier and the reference version number, the reference version number to which the first hard disk needs to be refreshed can be determined. When the firmware version number of the first hard disk is not equal to the reference version number, it means that the firmware of the first hard disk is refreshed incorrectly. Further, an error message can be sent, and the error message carries the corresponding hard disk identification, and the technician can be notified in time to check the corresponding hard disk through the error message.

而且,在发出所述错误消息后,还可以继续返回步骤S204进行固件刷新,直至该硬盘固件刷新成功。Moreover, after the error message is sent, it is also possible to continue to return to step S204 to refresh the firmware until the hard disk firmware is refreshed successfully.

本发明实施例与上述实施例相同之处,可参见上述实施例的描述,在此不再赘述。For the similarities between the embodiments of the present invention and the foregoing embodiments, reference may be made to the descriptions of the foregoing embodiments, and details are not described herein again.

由上述实施例的描述可见,本发明实施例提供的另一种硬盘固件的刷新方法,通过在固件刷新后,对执行刷新的硬盘进行校验,如果硬盘校验失败,则发出错误消息,以及时进行处理,可以提高硬盘固件刷新的成功率,进一步提高硬盘刷新的质量。It can be seen from the description of the above embodiment that another method for refreshing hard disk firmware provided by the embodiment of the present invention, after the firmware is refreshed, the hard disk to be refreshed is verified, and if the verification of the hard disk fails, an error message is sent to show Timely processing can improve the success rate of hard disk firmware refresh and further improve the quality of hard disk refresh.

通过以上的方法实施例的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:只读存储器(ROM)、随机存取存储器(RAM)、磁碟或者光盘等各种可以存储程序代码的介质。From the description of the above method embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such understanding, the technical solutions of the present invention essentially or the parts that contribute to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium and includes several instructions for making a A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: read only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes.

与本发明提供的硬盘固件的刷新方法实施例相对应,本发明还提供了一种硬盘固件的刷新装置。Corresponding to the embodiments of the method for refreshing hard disk firmware provided by the present invention, the present invention further provides a device for refreshing hard disk firmware.

参见图6,是本发明实施例提供的一种硬盘固件的刷新装置的结构示意图。如图6所示,该刷新装置包括:Referring to FIG. 6 , it is a schematic structural diagram of a device for refreshing hard disk firmware according to an embodiment of the present invention. As shown in Figure 6, the refresh device includes:

获取模块11,用于获取存储系统中所有硬盘的硬盘信息;an acquisition module 11, used for acquiring hard disk information of all hard disks in the storage system;

提取模块12,用于从所述硬盘信息中提取出硬盘标识,组成第一列表;The extraction module 12 is used to extract the hard disk identification from the hard disk information to form a first list;

筛选模块13,用于对所述第一列表进行筛选,得到第二列表;A screening module 13, configured to screen the first list to obtain a second list;

刷新模块14,用于将相应的固件文件刷新到所述第二列表的每个硬盘中。The refresh module 14 is configured to refresh the corresponding firmware file to each hard disk in the second list.

可选地,所述提取模块12用于,Optionally, the extraction module 12 is used to:

从所述硬盘信息中,提取出具有第一关键字的信息行;From the hard disk information, extract the information row with the first keyword;

从提取出的信息行中,删除具有第二关键字的信息行;From the extracted information row, delete the information row with the second keyword;

从删除后剩余的信息行中,分别提取固定位置的信息块,得到硬盘标识。From the remaining information lines after deletion, information blocks at fixed positions are respectively extracted to obtain the hard disk identification.

可选地,所述提取模块12还用于,Optionally, the extraction module 12 is also used to:

从提取到的硬盘标识中,删除与预设格式不匹配的分隔符。Remove delimiters that do not match the preset format from the extracted HDD ID.

可选地,所述筛选模块13用于,Optionally, the screening module 13 is used for,

根据所述硬盘标识,获取硬盘的固件版本号;Obtain the firmware version number of the hard disk according to the hard disk identification;

当所述固件版本号与预设的参考版本号相等时,将相应的硬盘标识从第一列表中删除,得到第二列表。When the firmware version number is equal to the preset reference version number, the corresponding hard disk identifier is deleted from the first list to obtain a second list.

可选地,所述刷新模块14用于,Optionally, the refresh module 14 is used to:

根据第二列表中的硬盘标识,从固件库中选择硬盘对应的固件文件;According to the hard disk identification in the second list, select the firmware file corresponding to the hard disk from the firmware library;

将选择出的固件文件刷新到相应的硬盘中。Flash the selected firmware file to the corresponding hard disk.

可选地,该刷新装置还可以包括校验模块15用于,Optionally, the refresh device may also include a verification module 15 for:

获取固件刷新后的固件版本号;Get the firmware version number after the firmware is refreshed;

当所述固件版本号与预设的参考版本号不相等时,发出错误消息,所述错误消息携带有相应的硬盘标识,用于标识相应的硬盘固件刷新错误。When the firmware version number is not equal to the preset reference version number, an error message is sent, and the error message carries a corresponding hard disk identification for identifying a corresponding hard disk firmware refresh error.

当然,需要说明的是,该刷新装置中的相应模块可以用于执行上述方法实施例所描述的硬盘固件的刷新方法,相同之处,可参见上述方法实施例的描述,在此不再赘述。Of course, it should be noted that the corresponding modules in the refresh device can be used to execute the hard disk firmware refresh method described in the above method embodiments.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置或系统实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置及系统实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the apparatus or system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for related parts. The apparatus and system embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, It can be located in one place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as "first" and "second" etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is no such actual relationship or sequence between entities or operations. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

以上所述仅是本发明的具体实施方式,使本领域技术人员能够理解或实现本发明。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific embodiments of the present invention, so that those skilled in the art can understand or implement 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 implemented in 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 (10)

1. A method for refreshing hard disk firmware is characterized by comprising the following steps:
acquiring hard disk information of all hard disks in a storage system;
extracting hard disk identifiers from the hard disk information to form a first list;
screening the first list to obtain a second list;
and refreshing the corresponding firmware file to each hard disk of the second list.
2. The method of claim 1, wherein the extracting the hard disk identifier from the hard disk information comprises:
extracting an information line with a first keyword from the hard disk information;
deleting the information lines with the second keywords from the extracted information lines;
and respectively extracting the information blocks at fixed positions from the rest information lines after deletion to obtain hard disk identifiers.
3. The method for refreshing hard disk firmware according to claim 2, further comprising:
and deleting the separators which do not match with the preset format from the extracted hard disk identifiers.
4. The method according to claim 1, wherein the screening the first list to obtain a second list comprises:
acquiring a firmware version number of the hard disk according to the hard disk identifier;
and when the firmware version number is equal to a preset reference version number, deleting the corresponding hard disk identifier from the first list to obtain a second list.
5. The method of claim 1, wherein the refreshing the corresponding firmware file to each hard disk of the second list comprises:
selecting a firmware file corresponding to the hard disk from the firmware library according to the hard disk identifier in the second list;
and refreshing the selected firmware file to the corresponding hard disk.
6. The method for refreshing hard disk firmware according to claim 1, further comprising:
acquiring a firmware version number of a hard disk after firmware refreshing;
and when the firmware version number is not equal to the preset reference version number, sending an error message, wherein the error message carries a corresponding hard disk identifier and is used for indicating a corresponding hard disk firmware refresh error.
7. A device for refreshing hard disk firmware, comprising:
the acquisition module is used for acquiring hard disk information of all hard disks in the storage system;
the extraction module is used for extracting hard disk identifiers from the hard disk information to form a first list;
the screening module is used for screening the first list to obtain a second list;
and the refreshing module is used for refreshing the corresponding firmware file to each hard disk of the second list.
8. The apparatus of claim 7, wherein the extraction module is configured to,
extracting an information line with a first keyword from the hard disk information;
deleting the information lines with the second keywords from the extracted information lines;
and respectively extracting the information blocks at fixed positions from the rest information lines after deletion to obtain hard disk identifiers.
9. The apparatus of claim 7, wherein the filter module is configured to filter the firmware stored in the hard disk firmware,
acquiring a firmware version number of the hard disk according to the hard disk identifier;
and when the firmware version number is equal to a preset reference version number, deleting the corresponding hard disk identifier from the first list to obtain a second list.
10. The apparatus for refreshing hard disk firmware of claim 7, further comprising a verification module for,
acquiring a firmware version number after firmware refreshing;
and when the firmware version number is not equal to the preset reference version number, sending an error message, wherein the error message carries a corresponding hard disk identifier and is used for identifying a corresponding hard disk firmware refresh error.
CN201710522683.0A 2017-06-30 2017-06-30 A method and device for refreshing hard disk firmware Active CN107402753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710522683.0A CN107402753B (en) 2017-06-30 2017-06-30 A method and device for refreshing hard disk firmware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710522683.0A CN107402753B (en) 2017-06-30 2017-06-30 A method and device for refreshing hard disk firmware

Publications (2)

Publication Number Publication Date
CN107402753A CN107402753A (en) 2017-11-28
CN107402753B true CN107402753B (en) 2020-11-27

Family

ID=60404776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710522683.0A Active CN107402753B (en) 2017-06-30 2017-06-30 A method and device for refreshing hard disk firmware

Country Status (1)

Country Link
CN (1) CN107402753B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213506A (en) * 2018-08-24 2019-01-15 郑州云海信息技术有限公司 A kind of firmware information acquisition methods and relevant apparatus
CN109299025B (en) * 2018-09-13 2021-11-19 郑州云海信息技术有限公司 Management method, device, equipment and storage medium of back-end storage equipment
CN109828929A (en) * 2019-02-27 2019-05-31 苏州浪潮智能科技有限公司 The anti-tamper method for testing security of hard disk firmware, system, terminal and storage medium
CN113918197A (en) * 2021-12-13 2022-01-11 苏州浪潮智能科技有限公司 Firmware upgrading method, system, storage medium and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461611A (en) * 2014-11-05 2015-03-25 浪潮电子信息产业股份有限公司 Method for refreshing node BIOS (basic input/output system) of RACK (RACK operating system) in batches
CN104503781A (en) * 2014-12-10 2015-04-08 华为技术有限公司 Firmware upgrading method for hard disk and storage system
CN104679530A (en) * 2013-11-26 2015-06-03 英业达科技有限公司 Server system and firmware updating method
CN105589717A (en) * 2015-12-10 2016-05-18 浪潮电子信息产业股份有限公司 Batch BIOS refreshing method based on SSH service
CN106681775A (en) * 2017-01-03 2017-05-17 郑州云海信息技术有限公司 Method for achieving online batch upgrading of hard disk firmware through RAID card under Linux system
CN106775877A (en) * 2016-12-22 2017-05-31 郑州云海信息技术有限公司 A kind of firmware method for refreshing and a kind of server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015102889A (en) * 2013-11-21 2015-06-04 レノボ・シンガポール・プライベート・リミテッド Method for updating firmware, electronic device, computer and computer program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679530A (en) * 2013-11-26 2015-06-03 英业达科技有限公司 Server system and firmware updating method
CN104461611A (en) * 2014-11-05 2015-03-25 浪潮电子信息产业股份有限公司 Method for refreshing node BIOS (basic input/output system) of RACK (RACK operating system) in batches
CN104503781A (en) * 2014-12-10 2015-04-08 华为技术有限公司 Firmware upgrading method for hard disk and storage system
CN105589717A (en) * 2015-12-10 2016-05-18 浪潮电子信息产业股份有限公司 Batch BIOS refreshing method based on SSH service
CN106775877A (en) * 2016-12-22 2017-05-31 郑州云海信息技术有限公司 A kind of firmware method for refreshing and a kind of server
CN106681775A (en) * 2017-01-03 2017-05-17 郑州云海信息技术有限公司 Method for achieving online batch upgrading of hard disk firmware through RAID card under Linux system

Also Published As

Publication number Publication date
CN107402753A (en) 2017-11-28

Similar Documents

Publication Publication Date Title
CN107402753B (en) A method and device for refreshing hard disk firmware
CN110162525B (en) B+ tree-based read-write conflict resolution method, device and storage medium
CN103559301A (en) Method of data update, database trigger and SE (search engine)
WO2019161645A1 (en) Shell-based data table extraction method, terminal, device, and storage medium
CN110888837B (en) Object storage small file merging method and device
US11074133B2 (en) Method, electronic device and computer readable medium of file management
CN111125298A (en) Method, equipment and storage medium for reconstructing NTFS file directory tree
CN107656970A (en) A kind of method of data synchronization, device and server
CN104270605A (en) Method and device for processing video surveillance data
CN103593447A (en) Data processing method and device applied to database table
US8577890B2 (en) Modifying data set name qualifiers
CN109189343B (en) Metadata disk-dropping method, device, equipment and computer-readable storage medium
CN114816470A (en) Metabase management method, apparatus, electronic device and medium
CN102866964B (en) Method and device for protecting data on storage equipment
CN102314490B (en) Method and device for recovering Linux FAT (File Allocation Table) file system
CN113741889A (en) Method and equipment for intelligently accessing data of heterogeneous database
CN113448946A (en) Data migration method and device and electronic equipment
CN107480242A (en) A kind of method and system of establishment file system snapshot tree
US20150067192A1 (en) System and method for adjusting sas addresses of sas expanders
KR101135629B1 (en) Method and apparatus for preventing autorun of portable USB storage
CN110851437A (en) A storage method, device and equipment
CN113220992B (en) A method, system and medium for recommending information flow content
CN111858590B (en) A storage system metadata organization method, system, terminal and storage medium
CN114968725A (en) Task dependency relationship correction method and device, computer equipment and storage medium
CN108984780B (en) Method and apparatus for managing disk data based on data structure supporting duplicate key-value tree

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
TA01 Transfer of patent application right

Effective date of registration: 20201104

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant