CN107402753A - The method for refreshing and device of a kind of hard disk firmware - Google Patents
The method for refreshing and device of a kind of hard disk firmware Download PDFInfo
- Publication number
- CN107402753A CN107402753A CN201710522683.0A CN201710522683A CN107402753A CN 107402753 A CN107402753 A CN 107402753A CN 201710522683 A CN201710522683 A CN 201710522683A CN 107402753 A CN107402753 A CN 107402753A
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000012216 screening Methods 0.000 claims abstract description 16
- 238000000605 extraction Methods 0.000 claims description 10
- 238000012217 deletion Methods 0.000 claims description 6
- 230000037430 deletion Effects 0.000 claims description 6
- 238000012937 correction Methods 0.000 claims description 3
- 238000012795 verification Methods 0.000 claims description 3
- 239000000284 extract Substances 0.000 abstract description 7
- 239000000203 mixture Substances 0.000 abstract description 5
- 230000014509 gene expression Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 241000208340 Araliaceae Species 0.000 description 2
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 2
- 235000003140 Panax quinquefolius Nutrition 0.000 description 2
- 235000008434 ginseng Nutrition 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001680 brushing effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000011010 flushing procedure Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Classifications
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Abstract
The embodiment of the present invention provides a kind of method for refreshing and device of hard disk firmware, by the hard disk information for obtaining all hard disks in storage system;Hard disk mark is extracted from the hard disk information, forms first list;The first list is screened, obtains second list;Corresponding firmware file is flushed in each hard disk of the second list.The embodiment of the present invention extracts hard disk mark from hard disk information, by screening composition first list roughly, again by accurately screening to obtain second list, second list can include institute it is in need progress firmware refreshing hard disk, refreshed according to the second list firmware, so as to ensure that all required hard disks carry out firmware refreshing, improve firmware and refresh quality.
Description
Technical field
The present invention relates to memory system technologies field, more particularly to the method for refreshing and device of a kind of hard disk firmware.
Background technology
Storage system is generally made up of hard disk, and hard disk bearing a large number of users data.In the background of IT industry high speed developments
Under, the userbase of storage system expands day by day, and also more and more higher is required to the Information Security of storage system, because hard disk is
The significant components of storage system, thus it is tightened up to the quality requirement of hard disk.
In order to ensure hard disk quality, and then the stability of whole storage system is ensured, it is necessary to firmware to hard disk(English:
firmware)Refreshed.Wherein, firmware is to serve as system-based, the software of bottom work, generally decides the work(of hard disk
Energy and performance;Hard disk firmware is refreshed, is the key for ensureing hard disk quality.
But inventor is had found by studying, substantial amounts of hard disk is generally comprised in storage system, is refreshed to hard disk firmware
During, it is easy to the hard disk leakage brush for causing some to need to carry out firmware refreshing, refresh of poor quality.
Therefore, the refreshing quality of hard disk firmware how is improved, is the technical problem of those skilled in the art's urgent need to resolve.
The content of the invention
In view of the above the shortcomings that prior art, it is an object of the invention to provide a kind of method for refreshing of hard disk firmware
And device, refresh ropy problem for solving hard disk firmware in the prior art.
In order to achieve the above objects and other related objects, according to the first aspect of the invention, the embodiment of the present invention provides one
The method for refreshing of kind hard disk firmware, this method comprise the following steps:
Obtain the hard disk information of all hard disks in storage system;
Hard disk mark is extracted from the hard disk information, forms first list;
The first list is screened, obtains second list;
Corresponding firmware file is flushed in each hard disk of the second list.
Alternatively, the hard disk that extracted from the hard disk information identifies, including:
From the hard disk information row, the information row with the first keyword is extracted;
From the information row extracted, the information row with the second keyword is deleted;
After deletion in remaining information row, the block of information of fixed position is extracted respectively, obtains hard disk mark.
Alternatively, this method also includes:
From the hard disk mark extracted, delete and the unmatched decollator of preset format.
Alternatively, it is described that the first list is screened, second list is obtained, including:
Identified according to the hard disk, obtain the firmware version number of hard disk;
When the firmware version number is equal with default reference version number, corresponding hard disk mark is deleted from first list
Remove, obtain second list.
Alternatively, it is described to flush to corresponding firmware file in each hard disk of the second list, including:
Hard disk mark in second list, selects firmware file corresponding to hard disk from firmware library;
The firmware file selected is flushed in corresponding hard disk.
Alternatively, the method for refreshing also includes:
Obtain the firmware version number of hard disk after firmware refreshes;
When the firmware version number and unequal default reference version number, error message is sent, is taken in the error message
Identified with corresponding hard disk, refresh mistake for identifying corresponding hard disk firmware.
According to the second aspect of the invention, the embodiment of the present invention also provides a kind of refreshing apparatus of hard disk firmware, the device
Including:
Acquisition module, for obtaining the hard disk information of all hard disks in storage system;
Extraction module, for extracting hard disk mark from the hard disk information, form first list;
Screening module, for being screened to the first list, obtain second list;
Refresh module, for corresponding firmware file to be flushed in each hard disk of the second list.
Alternatively, the extraction module is used for,
From the hard disk information, the information row with the first keyword is extracted;
From the information row extracted, the information row with the second keyword is deleted;
After deletion in remaining information row, the block of information of fixed position is extracted respectively, obtains hard disk mark.
Alternatively, the screening module is used for,
Identified according to the hard disk, obtain the firmware version number of hard disk;
When the firmware version number is equal with default reference version number, corresponding hard disk mark is deleted from first list
Remove, obtain second list.
Alternatively, the refreshing apparatus is also used for including correction verification module,
When the firmware version number and unequal default reference version number, error message is sent, the error message carries
There is corresponding hard disk to identify, refresh mistake for identifying corresponding hard disk firmware.
As described above, the method for refreshing and device of a kind of hard disk firmware provided in an embodiment of the present invention, have beneficial below
Effect:By the hard disk information for obtaining all hard disks in storage system;Hard disk mark, composition are extracted from the hard disk information
First list;The first list is screened, obtains second list;Corresponding firmware file is flushed into the secondary series
In each hard disk of table.The embodiment of the present invention extracts hard disk mark from hard disk information, by screening composition first row roughly
Table, then by accurately screening to obtain second list, second list can include the hard disk of institute's progress firmware refreshing in need, according to
The second list firmware refreshes, and so as to ensure that all required hard disks carry out firmware refreshing, improves firmware and refreshes quality.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the present invention
Example, and for explaining principle of the invention together with specification.
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for refreshing of hard disk firmware provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of the extracting method of hard disk mark provided in an embodiment of the present invention;
Fig. 3 is a kind of schematic flow sheet of screening technique provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic flow sheet of hard disk method for refreshing provided in an embodiment of the present invention;
Fig. 5 is the method for refreshing of another hard disk firmware provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of the refreshing apparatus of hard disk firmware provided in an embodiment of the present invention.
Embodiment
In order that those skilled in the art more fully understand the technical scheme in the present invention, below in conjunction with of the invention real
The accompanying drawing in example is applied, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described implementation
Example only part of the embodiment of the present invention, rather than whole embodiments.It is common based on the embodiment in the present invention, this area
The every other embodiment that technical staff is obtained under the premise of creative work is not made, should all belong to protection of the present invention
Scope.
Fig. 1 is referred to Fig. 6.It should be noted that the diagram provided in the present embodiment only illustrates this in a schematic way
The basic conception of invention, the component relevant with the present invention is only shown in illustrating then rather than according to package count during actual implement
Mesh, shape and size are drawn, and kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its
Assembly layout kenel may also be increasingly complex.
It is a kind of schematic flow sheet of the method for refreshing of hard disk firmware provided in an embodiment of the present invention referring to Fig. 1.Such as Fig. 1
Shown, this method comprises the following steps:
Step S101:Obtain the hard disk information of all hard disks in storage system.
In the specific implementation, the hard disk information of all hard disks in storage system can be obtained by control instruction.Show one
In example property embodiment, the control instruction of " fdisk-l " can be used to obtain the hard disk information.Can be with the hard disk information
Include hard disk mark, hard-disk capacity, number of sectors, sector capacity, magnetic pole quantity and the magnetic pole of all hard disks in storage system
Capacity etc..
Moreover, the hard disk information includes multiple information rows.In one exemplary embodiment, the hard disk information includes
First information row and the second information row;Wherein, first information row is expressed as " Disk/dev/sdb:27000.3GB
27000311906304 bytes ", for represent hard disk be identified as "/dev/sdb " hard-disk capacity is 27000.3GB,
27000311906304 bytes;Second information row is expressed as the " * 512=512 of Units=sectors of 1
Bytes ", sector capacity 512bytes.
Further include multiple block of informations in each information row, mutually separated with space.Such as the above-mentioned first information
OK, 5 block of informations can be included, be specially " Disk ", "/dev/sdb:", " 27000.3GB, ", " 27000311906304 " and
“bytes”。
The embodiment of the present invention by taking the hard disk information including first information row and the second information row as an example, will be described in detail follow-up
Step.
Certainly it should be noted that the acquisition modes of above-mentioned hard disk information are only an exemplary embodiments, it is being embodied
When, the hard disk informations of all hard disks in storage system can be got by other command tools;Moreover, the hard disk information
Organizational form is also not necessarily limited to the description of above-described embodiment.
Step S102:Hard disk mark is extracted from the hard disk information, forms first list.
The embodiment of the present invention extracts all hard disk marks, and the hard disk that will be extracted according to keyword from hard disk information
Mark composition first list.
It is a kind of schematic flow sheet of the extracting method of hard disk mark provided in an embodiment of the present invention referring to Fig. 2.Such as Fig. 2
Shown, this method includes:
Step S1021:From the hard disk information, the information row with the first keyword is extracted.
The hard disk information obtained according to step S101, because the information row where hard disk mark has identical pleonasm
Symbol.According to hard disk information exemplary in step S101, the repeat character (RPT) can include " Disk ", "/dev/sd ".
Under the first performance, any one in above-mentioned repeat character (RPT) can be used as the first keyword, from
And extract the information row where the first keyword.In one exemplary implementation, information row of the extraction with the first keyword can be with
Use " sed " order, according to the first keyword generate corresponding regular expression for "/Disk " or " /dev /sd/p ", pass through
" sed " is ordered and the combination of regular expression, can extract the information row where the first keyword.
Under second of performance, it can make to be combined as the first keyword in above-mentioned repeat character (RPT), so as to extract
The information row gone out where the first keyword., can according to the regular expression that the first keyword generates in another exemplary embodiment
Think "/Disk /dev /sd/p ", so by " sed " order and regular expression combination, the first pass can be extracted
Information row where key word.
By first keyword, the i.e. " Disk/dev/sdb of information behavior first information row extracted:
27000.3GB, 27000311906304 bytes ".
Step S1022:From the information row extracted, the information row with the second keyword is deleted.
Due to irrelevant information row, such as the information row including " sda " in the information row extracted, may be included,
" sda " typically represents system disk and the non-required hard disk for carrying out firmware refreshing, then needs to filter the information row extracted,
Delete unwanted information row., can be by " sda " conduct in order to delete the information row for including " sda " in one exemplary embodiment
Second keyword, by calling " sed " order, delete the information row with the second keyword.
Step S1023:After deletion in remaining information row, the block of information of fixed position is extracted respectively, obtains hard disk mark
Know.
In one exemplary embodiment, after step S1022, remaining information behavior first information row.In the first letter
In breath row, the block of information of the second place identifies for the hard disk that needs extract.In the specific implementation, can be by calling " awk " life
Order, and the block of information of the extraction second place is formulated, to extract the hard disk mark.After step S1023 processing, from first
In information row, the block of information "/dev/sdb positioned at the second place can be extracted:", can be using the block of information as hard disk mark
Know, carry out the processing of subsequent step.
Certainly it should be noted that the process of said extracted information row is only an exemplary embodiment, in the specific implementation,
Other any orders, or other any form of regular expressions can be used, are not limited in embodiments of the present invention.
In order to obtain the hard disk of reference format mark, the embodiment of the present invention also provides the extraction side of another hard disk mark
Method, on the basis of extracting method as shown in Figure 2, after execution of step S1023, step can also be included:From extracting
Hard disk mark in, delete with the unmatched separator of preset format.
In one exemplary embodiment, the preset format can be "/dev/sd* ", wherein " * " can be to identify any word
The asterisk wildcard of female or numerical character etc..Each character in hard disk mark so is obtained by traveling through comparison step S1023, can be with
It is determined that "/dev/sdb:" mismatched with preset format, a more in the end separator ":", it is necessary to remove separator ":”.
It again may be by calling " awk " order, get rid of separator, so, can so as to be met the hard disk of preset format mark
Directly to be called by subsequent step, the refresh rate of hard disk firmware is improved.
Step S103:The first list is screened, obtains second list.
The hard disk that need not refresh firmware due to that may include polylith within the storage system, is so carried out by first list
Firmware, which refreshes, may flush to unnecessary hard disk, influence firmware refresh rate, or even be also possible to due to carrying out firmware brush by force
Newly, hard disk failure is caused.
It is a kind of schematic flow sheet of screening technique provided in an embodiment of the present invention referring to Fig. 3.It is as shown in figure 3, of the invention
Implement to be illustrated the process for screening first list:
Step S1031:Identified according to the hard disk, obtain the firmware version number of hard disk.
According to hard disk mark by calling corresponding querying command, hard disk corresponding to the hard disk mark can be obtained
Firmware version number.
Step S1032:When the firmware version number with it is default with reference to version number it is equal when, by corresponding hard disk mark from
Deleted in first list, obtain second list.
Hard disk mark and the corresponding relation with reference to version number can be established in advance to the hard disk used in storage system.Example
Version number is referred to as the first hard disk mark corresponds to first, the second hard disk mark corresponding second refers to version number, first reference
Version number is the firmware version that the first hard disk can flush to, and second with reference to the firmware that version number is that the second hard disk can flush to
Version.
Inquire about what is obtained when the firmware version number is equal with default reference version number, such as by step S1031
The firmware version number of first hard disk refers to version number equal to first, then by hard disk mark corresponding to the first hard disk from first list
Delete.By traveling through all hard disks corresponding to first list, the firmware version number of all hard disks and corresponding ginseng are being judged
After examining version number and performing aforesaid operations, the second list after being screened.Include needs in second list to be consolidated
The hard disk that part refreshes, prevents from brushing again, improves the degree of accuracy that hard disk firmware refreshes, and then improve and refresh quality.
Step S104:Corresponding firmware file is flushed in each hard disk of the second list.
Under the first performance, all hard disks that storage system uses may be identical producer, same type, identical
The hard disk of model, ensure the compatibility of storage system.For example, hard disk be the production of A manufacturers, the mechanical hard disks of SATA types,
And model is also identical, all hard disks in such storage system can be upgraded using same firmware file.
Under second of performance, storage system may use the hard disk that different manufacturers produce, different manufacturers production
The hard disk of same type, the different model that either the different types of hard disk of same manufacturer production or manufacturer produce
Hard disk, so, within the storage system, it is understood that there may be, it is necessary to use different firmware files respectively in multiple hard disks, to each hard
Disk is refreshed.It is a kind of schematic flow sheet of hard disk method for refreshing provided in an embodiment of the present invention referring to Fig. 4.Such as Fig. 4 institutes
Show, this method includes:
Step S1041:Hard disk mark in second list, selects firmware file corresponding to hard disk from firmware library.
In the specific implementation, can establish includes the firmware library of a variety of different firmware files, the firmware text in the firmware library
The corresponding hard disk by corresponding producer, type and model of part.Moreover, establishing hard disk mark and the corresponding relation of firmware file, pass through
Firmware file corresponding to hard disk mark can be determined by inquiring about the corresponding relation.In one exemplary embodiment, firmware library can include
First firmware file and the second firmware file, the first firmware file and the first hard disk mark have corresponding relation, the second firmware text
Part and the second hard disk mark have corresponding relation.When needing to refresh the first hard disk, identified by the first hard disk, it may be determined that need
To be refreshed using the first firmware file.
Step S1042:The firmware file selected is flushed in corresponding hard disk.
According to the firmware file selected, corresponding firmware file is flushed in corresponding hard disk.One exemplary implementation
In example, the first firmware file has been selected by step S1041, then firmware refreshing is carried out to the first hard disk and then uses the first firmware
File.
Moreover, in one exemplary embodiment, corresponding refresh tool can be used, firmware brush is carried out using refresh command
Newly.Such as it can be completed accordingly by the title and hard disk mark for specifying firmware file using " seaflashlin " instrument
Firmware refreshes.Certainly it should be noted that any other firmware refresh tools can be used in embodiments of the present invention, sending out
Do not limited in bright embodiment.
In addition, during firmware refreshing is carried out, serial manner can be used, it is complete by recursive call refresh command
Into.Or parallel form can be used, call multiple refresh commands to carry out firmware refreshing simultaneously in concurrent process, improve
Firmware refreshes efficiency.
From the description of above-described embodiment, a kind of method for refreshing of hard disk firmware provided in an embodiment of the present invention, pass through
Obtain the hard disk information of all hard disks in storage system;Hard disk mark is extracted from the hard disk information, forms first list;
The first list is screened, obtains second list;Corresponding firmware file is flushed into each of the second list
In hard disk.The embodiment of the present invention extracts hard disk mark from hard disk information, by screening composition first list roughly, then passes through
Accurate screening obtains second list, and second list can include the hard disk of institute's progress firmware refreshing in need, according to described second
List firmware refreshes, and so as to ensure that all required hard disks carry out firmware refreshing, improves firmware and refreshes quality.
It is the method for refreshing of another hard disk firmware provided in an embodiment of the present invention referring to Fig. 5.As shown in figure 5, in Fig. 1
On the basis of the method for refreshing of shown hard disk firmware, the embodiment of the present invention can also be after the completion of firmware refreshing, to firmware brush
New result is verified, to ensure the quality of firmware refreshing.The method for refreshing includes:
Step S201:Obtain the hard disk information of all hard disks in storage system.
Step S202:Hard disk mark is extracted from the hard disk information, forms first list.
Step S203:The first list is screened, obtains second list.
Step S204:Corresponding firmware file is flushed in each hard disk of the second list.
Step S205:Obtain the firmware version number of hard disk after firmware refreshes.
In one exemplary embodiment, after the first hard disk completes firmware refreshing, the firmware version number of the first hard disk is obtained.
Step S206:When the firmware version number and unequal default reference version number, error message is sent, it is described
Corresponding hard disk mark is carried in error message, for representing that corresponding hard disk firmware refreshes mistake.
Corresponding relation with reference version number is identified by the first hard disk, can determine that the first hard disk needs the ginseng flushed to
Examine version number.When firmware version number and the unequal reference version number of the first hard disk, represent that the first hard disk firmware refreshes mistake.
Further, it is possible to send error message, corresponding hard disk mark is carried in the error message, by the error message, and
When notification technique personnel corresponding hard disk is checked.
Moreover, after the error message is sent, it can also continue to return to step S204 and carry out firmware refreshing, until this is hard
Disk firmware Flushing success.
Part same as the previously described embodiments of the embodiment of the present invention, reference can be made to the description of above-described embodiment, will not be repeated here.
From the description of above-described embodiment, the method for refreshing of another hard disk firmware provided in an embodiment of the present invention, lead to
Cross after firmware refreshing, verified to performing the hard disk refreshed, if hard disk check fails, send error message, and
Shi Jinhang processing, the success rate of hard disk firmware refreshing can be improved, further improves the quality that hard disk refreshes.
The description of embodiment of the method more than, it is apparent to those skilled in the art that the present invention can
Realized by the mode of software plus required general hardware platform, naturally it is also possible to by hardware, but in many cases the former
It is more preferably embodiment.Based on such understanding, technical scheme substantially makes tribute to prior art in other words
The part offered can be embodied in the form of software product, and the computer software product is stored in a storage medium, bag
Some instructions are included to cause a computer equipment(Can be personal computer, server, or network equipment etc.)Perform
The all or part of step of each embodiment methods described of the present invention.And foregoing storage medium includes:Read-only storage
(ROM), random access memory(RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
Corresponding with the method for refreshing embodiment of hard disk firmware provided by the invention, present invention also offers a kind of hard disk to consolidate
The refreshing apparatus of part.
It is a kind of structural representation of the refreshing apparatus of hard disk firmware provided in an embodiment of the present invention referring to Fig. 6.Such as Fig. 6
Shown, the refreshing apparatus includes:
Acquisition module 11, for obtaining the hard disk information of all hard disks in storage system;
Extraction module 12, for extracting hard disk mark from the hard disk information, form first list;
Screening module 13, for being screened to the first list, obtain second list;
Refresh module 14, for corresponding firmware file to be flushed in each hard disk of the second list.
Alternatively, the extraction module 12 is used for,
From the hard disk information, the information row with the first keyword is extracted;
From the information row extracted, the information row with the second keyword is deleted;
After deletion in remaining information row, the block of information of fixed position is extracted respectively, obtains hard disk mark.
Alternatively, the extraction module 12 is additionally operable to,
From the hard disk mark extracted, delete and the unmatched separator of preset format.
Alternatively, the screening module 13 is used for,
Identified according to the hard disk, obtain the firmware version number of hard disk;
When the firmware version number is equal with default reference version number, corresponding hard disk mark is deleted from first list
Remove, obtain second list.
Alternatively, the refresh module 14 is used for,
Hard disk mark in second list, selects firmware file corresponding to hard disk from firmware library;
The firmware file selected is flushed in corresponding hard disk.
Alternatively, the refreshing apparatus can also be used for including correction verification module 15,
Obtain the firmware version number after firmware refreshes;
When the firmware version number and unequal default reference version number, error message is sent, the error message carries
There is corresponding hard disk to identify, refresh mistake for identifying corresponding hard disk firmware.
Certainly, it is necessary to illustrate, the corresponding module in the refreshing apparatus can be used for performing above method embodiment institute
The method for refreshing of the hard disk firmware of description, something in common, reference can be made to the description of above method embodiment, will not be repeated here.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.Especially for device or
For system embodiment, because it is substantially similar to embodiment of the method, so describing fairly simple, related part is referring to method
The part explanation of embodiment.Apparatus and system embodiment described above is only schematical, wherein the conduct
The unit that separating component illustrates can be or may not be it is physically separate, can be as the part that unit is shown or
Person may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can root
Factually border needs to select some or all of module therein realize the purpose of this embodiment scheme.Ordinary skill
Personnel are without creative efforts, you can to understand and implement.
It should be noted that herein, the relational terms of such as " first " and " second " or the like are used merely to one
Individual entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operate it
Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Cover including for nonexcludability, so that process, method, article or equipment including a series of elements not only include those
Key element, but also the other element including being not expressly set out, or also include for this process, method, article or set
Standby intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Other identical element in the process including the key element, method, article or equipment also be present.
Described above is only the embodiment of the present invention, is made skilled artisans appreciate that or realizing this hair
It is bright.A variety of modifications to these embodiments will be apparent to one skilled in the art, as defined herein
General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention
The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one
The most wide scope caused.
Claims (10)
1. a kind of method for refreshing of hard disk firmware, it is characterised in that comprise the following steps:
Obtain the hard disk information of all hard disks in storage system;
Hard disk mark is extracted from the hard disk information, forms first list;
The first list is screened, obtains second list;
Corresponding firmware file is flushed in each hard disk of the second list.
2. the method for refreshing of hard disk firmware according to claim 1, it is characterised in that described to be carried from the hard disk information
Hard disk mark is taken out, including:
From the hard disk information, the information row with the first keyword is extracted;
From the information row extracted, the information row with the second keyword is deleted;
After deletion in remaining information row, the block of information of fixed position is extracted respectively, obtains hard disk mark.
3. the method for refreshing of hard disk firmware according to claim 2, it is characterised in that also include:
From the hard disk mark extracted, delete and the unmatched separator of preset format.
4. the method for refreshing of hard disk firmware according to claim 1, it is characterised in that described to be carried out to the first list
Screening, obtains second list, including:
Identified according to the hard disk, obtain the firmware version number of hard disk;
When the firmware version number is equal with default reference version number, corresponding hard disk mark is deleted from first list
Remove, obtain second list.
5. the method for refreshing of hard disk firmware according to claim 1, it is characterised in that described by corresponding firmware file brush
Newly into each hard disk of the second list, including:
Hard disk mark in second list, selects firmware file corresponding to hard disk from firmware library;
The firmware file selected is flushed in corresponding hard disk.
6. the method for refreshing of hard disk firmware according to claim 1, it is characterised in that also include:
Obtain the firmware version number of hard disk after firmware refreshes;
When the firmware version number and unequal default reference version number, error message is sent, is taken in the error message
Identified with corresponding hard disk, for representing that corresponding hard disk firmware refreshes mistake.
A kind of 7. refreshing apparatus of hard disk firmware, it is characterised in that including:
Acquisition module, for obtaining the hard disk information of all hard disks in storage system;
Extraction module, for extracting hard disk mark from the hard disk information, form first list;
Screening module, for being screened to the first list, obtain second list;
Refresh module, for corresponding firmware file to be flushed in each hard disk of the second list.
8. the refreshing apparatus of hard disk firmware according to claim 7, it is characterised in that the extraction module is used for,
From the hard disk information, the information row with the first keyword is extracted;
From the information row extracted, the information row with the second keyword is deleted;
After deletion in remaining information row, the block of information of fixed position is extracted respectively, obtains hard disk mark.
9. the refreshing apparatus of hard disk firmware according to claim 7, it is characterised in that the screening module is used for,
Identified according to the hard disk, obtain the firmware version number of hard disk;
When the firmware version number is equal with default reference version number, corresponding hard disk mark is deleted from first list
Remove, obtain second list.
10. the refreshing apparatus of hard disk firmware according to claim 7, it is characterised in that also it is used for including correction verification module,
Obtain the firmware version number after firmware refreshes;
When the firmware version number and unequal default reference version number, error message is sent, the error message carries
There is corresponding hard disk to identify, refresh mistake for identifying corresponding hard disk firmware.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710522683.0A CN107402753B (en) | 2017-06-30 | 2017-06-30 | 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 | Method and device for refreshing hard disk firmware |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107402753A true CN107402753A (en) | 2017-11-28 |
CN107402753B 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 | Method and device for refreshing hard disk firmware |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107402753B (en) |
Cited By (4)
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 |
CN109299025A (en) * | 2018-09-13 | 2019-02-01 | 郑州云海信息技术有限公司 | A kind of management method of back-end storage device, device, equipment and storage medium |
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 (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104461611A (en) * | 2014-11-05 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing node BIOSes of RACK cabinet in batches |
CN104503781A (en) * | 2014-12-10 | 2015-04-08 | 华为技术有限公司 | Firmware upgrading method for hard disk and storage system |
US20150143098A1 (en) * | 2013-11-21 | 2015-05-21 | Lenovo (Singapore) Pte. Ltd. | Method for updating firmware of an electronic device within a computer |
CN104679530A (en) * | 2013-11-26 | 2015-06-03 | 英业达科技有限公司 | Server system and firmware updating method |
CN105589717A (en) * | 2015-12-10 | 2016-05-18 | 浪潮电子信息产业股份有限公司 | Batch BIOS (Basic Input Output System) refreshing method based on SSH (Spring Struts Hibernate) 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 |
-
2017
- 2017-06-30 CN CN201710522683.0A patent/CN107402753B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150143098A1 (en) * | 2013-11-21 | 2015-05-21 | Lenovo (Singapore) Pte. Ltd. | Method for updating firmware of an electronic device within a computer |
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 BIOSes of RACK cabinet 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 (Basic Input Output System) refreshing method based on SSH (Spring Struts Hibernate) 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 |
Cited By (5)
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 |
CN109299025A (en) * | 2018-09-13 | 2019-02-01 | 郑州云海信息技术有限公司 | A kind of management method of back-end storage device, device, equipment and storage medium |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN107402753B (en) | 2020-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107402753A (en) | The method for refreshing and device of a kind of hard disk firmware | |
CN107807982B (en) | Consistency checking method and device for heterogeneous database | |
CN102831052B (en) | Test exemple automation generating apparatus and method | |
WO2018120721A1 (en) | Method and system for testing user interface, electronic device, and computer readable storage medium | |
KR20150118975A (en) | System and methods for multi-user cax editing conflict management | |
CN104182335A (en) | Software testing method and device | |
CN101504672A (en) | Method and system for dynamically configuring physical data table | |
CN113688288B (en) | Data association analysis method, device, computer equipment and storage medium | |
CN106294128B (en) | A kind of automated testing method and device exporting report data | |
CN105095304A (en) | Log template generation method and equipment | |
CN108170602B (en) | Test case generation method and device, terminal and computer readable medium | |
CN110046153B (en) | Account fund checking method, device and equipment | |
JP4477531B2 (en) | Data import method and data import apparatus | |
CN107766519B (en) | Method for visually configuring data structure | |
WO2016165461A1 (en) | Automated testing method and apparatus for network management system software of telecommunications network | |
CN109902070B (en) | WiFi log data-oriented analysis storage search method | |
JP7131119B2 (en) | Systems and methods for merging source data from a source application with target data in a target application | |
CN106227502A (en) | A kind of method and device obtaining hard disk firmware version | |
JP2013077124A (en) | Software test case generation device | |
CN108090095B (en) | Method and device for reconstructing database in batches | |
CN105243022B (en) | The performance data analysis method and device of host application software system | |
CN108062333B (en) | Method and device for processing inferior question data | |
CN104536897A (en) | Automatic testing method and system based on keyword | |
CN103164526A (en) | Generation method and generation device of test report | |
CN113001538B (en) | Command analysis method and system |
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 | ||
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. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |