CN111209174A - Method and device for generating physical position of hard disk in BIOS - Google Patents
Method and device for generating physical position of hard disk in BIOS Download PDFInfo
- Publication number
- CN111209174A CN111209174A CN202010009178.8A CN202010009178A CN111209174A CN 111209174 A CN111209174 A CN 111209174A CN 202010009178 A CN202010009178 A CN 202010009178A CN 111209174 A CN111209174 A CN 111209174A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- information
- hddlist
- bios
- generating
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000004519 manufacturing process Methods 0.000 abstract description 5
- 238000012423 maintenance Methods 0.000 abstract 1
- 238000012163 sequencing technique Methods 0.000 description 3
- 101100284507 Schizosaccharomyces pombe (strain 972 / ATCC 24843) hdd1 gene Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a device for generating a physical position of a hard disk in a BIOS (basic input/output system), wherein the method comprises the following steps: initializing a BIOS; loading a hard disk drive; collecting hard disk information and generating HDDList; acquiring configuration information in an FRU; and generating physical position information by combining the hard disk information and the configuration information, and updating the physical position information to HDDList. The device comprises: the loading module is used for loading the hard disk drive; the first acquisition module is used for collecting hard disk information by using the loading module; the generating module is used for generating HDDList by utilizing the information collected by the first collecting module; the second acquisition module is used for acquiring configuration information in the FRU; and the first updating module is used for generating physical position information and updating the physical position information to HDDList. The method and the device can not only realize the check of the physical position of the hard disk in the operation and maintenance process, but also solve the problem of positioning and displaying the physical position of the hard disk in the production link in the prior art.
Description
Technical Field
The invention relates to the technical field of servers, in particular to a method and a device for generating a physical position of a hard disk in a BIOS (basic input/output system).
Background
In the field of servers, the storage density of single-node servers is higher and higher, the number of hard disks matched with the servers is increased from several to dozens, the number of high-density storage servers reaches hundreds of hard disks, at present, when the hard disk information is checked in BIOS, the hard disk model information and the logic position information can be seen, but the hard disk physical position number of the server cannot be corresponded, for example, hard disk labels such as HDD1 and HDD2 cannot be seen, when the hard disks cannot be identified due to faults or contact and other problems, the faulty hard disks are difficult to locate, and only one hard disk can be tested by lighting and other modes, so that great trouble is brought to production.
Disclosure of Invention
The embodiment of the invention provides a method and a device for generating a physical position of a hard disk in a BIOS (basic input/output system), which are used for solving the problem that the production link in the prior art cannot realize positioning and displaying of the physical position of the hard disk.
In order to solve the technical problem, the embodiment of the invention discloses the following technical scheme:
the invention provides a method for generating a physical position of a hard disk in a BIOS (basic input/output system), which comprises the following steps:
s1: initializing a BIOS;
s2: loading a hard disk drive;
s3: collecting hard disk information and generating HDDList;
s4: acquiring configuration information in an FRU;
s5: and generating physical position information by combining the information of S3 and S4, and updating the physical position information to HDDList.
Further, the method further comprises the following steps:
s6: and updating the hard disk information of the BIOS page based on HDDList.
Further, the hard disk information in step S3 at least includes: model number, serial number, logical location information.
Further, the specific implementation process of step S5 is as follows: based on the topological relation of the logical positions, all hard disk slots are sequentially arranged in a mode of combining from top to bottom and from left to right, the physical sequence of each slot is associated to HDDList, and each group of hard disk information in the HDDList is ensured to include the model number, the serial number, the logical position information and the slot serial number information.
Further, the specific implementation process of step S6 is as follows:
reading the updated hard disk information in HDDList;
and the BIOS executes refreshing operation and replaces the original hard disk information with the updated hard disk information.
Based on the above method, in the process of executing the above method, an embodiment of the present invention further provides an apparatus for generating a physical location of a hard disk in a BIOS, where the apparatus includes:
the loading module is used for loading the hard disk drive;
the first acquisition module is used for collecting hard disk information by using the loaded drive;
the generating module is used for generating HDDList by utilizing the information collected by the first collecting module;
the second acquisition module is used for acquiring configuration information in the FRU;
and the first updating module is used for generating physical position information and updating the physical position information to HDDList.
Further, the device further comprises:
and the second updating module is used for updating the BIOS page hard disk information based on HDDList.
Further, the first updating module includes:
the identification unit is used for identifying the topological relation of the logic position;
the sorting unit is used for sequentially arranging all the hard disk slots in a mode of combining top-down and left-to-right based on the topological relation;
and the updating unit is used for associating the physical ordering of each slot position into the HDDList.
Further, the second updating module includes:
the reading unit is used for reading the updated hard disk information in the HDDList;
and the refreshing unit is used for executing BIOS refreshing operation to replace the original hard disk information.
The beneficial effects of the above technical scheme are that:
compared with the technical scheme of one-to-one lighting confirmation in the prior art, the method and the device have the advantages that the physical information of the hard disk is directly solidified to the BIOS interface in the design stage, and the real-time check of the hard disk slot position can be realized. In addition, in the positioning mode in the prior art, when a hard disk is missing, positioning cannot be performed due to the fact that no feedback object exists, and after the BIOS interface is solidified and when the hard disk is missing, the BIOS interface can display the vacancy and can see the physical serial number of the vacancy hard disk.
Drawings
In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for a person skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a flow chart of a method provided by an embodiment of the present invention;
fig. 2 is a schematic diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a method for generating a physical location of a hard disk in a BIOS according to an embodiment of the present invention includes the following steps:
1) after the server is started, the BIOS is initialized.
2) The BIOS loads hard disk related drives such as AHCI.
3) The BIOS collects the model, serial number, logic position information and the like of the hard disk by using the loaded hard disk drive to form HDDList.
4) The BIOS obtains configuration information, which is information for writing server hard disk configuration information (information for identifying machine configuration, which may be only one identifier) into a nonvolatile storage device such as an FRU when the server is manufactured, for example, 0x04300706 indicates a Sata 6 disk, an SSTATA7 disk, an SAS 32 disk, and an NVME 4 disk.
The nonvolatile memory device described in the above paragraph is not limited to a FRU (Field replaceable Unit), and RRAM (resistive random access memory) or ROM (read only memory) may be used.
5) Based on the topological relation of the logical positions, all hard disk slots are sequentially arranged in a mode of combining from top to bottom and from left to right, the physical sequence of each slot is associated to HDDList, and each group of hard disk information in the HDDList is ensured to include the model number, the serial number, the logical position information and the slot serial number information.
Based on the description, the generated physical position numbers are sorted according to the logical positions, the hard disks are connected in sequence according to the mainboard design and the configuration information in the hard disk connection mode during production, and finally the one-to-one correspondence between the hard disk information position numbers in the BIOS and the actual physical number labels of the servers is realized.
6) And the BIOS executes refreshing operation, replaces the original hard disk information with the updated hard disk information, displays the updated hard disk information at the position of the hard disk information in the Setup under the BIOS page in a character string mode, and comprises the model number, the serial number, the logic position information and the slot position serial number information.
Based on the foregoing method, in the process of executing the foregoing method, an embodiment of the present invention further provides a device for generating a physical location of a hard disk in a BIOS, as can be seen with reference to fig. 2, where the device corresponds to the steps in the method, and specifically includes:
and the loading module loads the hard disk related drives such as the AHCI and the like to the BIOS after the BIOS is initialized.
After the loading is finished, the first acquisition module collects hard disk information such as models, serial numbers, logic position information and the like by using the loaded drive.
Based on the collected hard disk information, the generation module establishes an HDDList, wherein the HDDList is in a table form or a character string form, in the table form, the vertical row is a serial number, and the horizontal row is a model number, a serial number and a logic position in sequence; under the character string form, the serial number, the model number, the serial number and the logic position are connected end to form a group of character strings.
In addition to the hard disk information, the second collection module obtains configuration information, where the configuration information is obtained by writing server hard disk configuration information (information for identifying machine configuration, which may be only one identifier) into a nonvolatile storage device such as an FRU during production of the server, for example, 0x04300706 indicates Sata 6 disks, SSTATA7 disks, SAS 32 disks, and NVME 4 disks.
After the configuration information is obtained, the first updating module can associate the configuration information with the hard disk information, and generates physical position information and updates the physical position information to HDDList according to a preset ordering principle by using a topological relation of the logical position information.
When the first updating module realizes the function, the first updating module is executed in sequence based on several internal units, and the first updating module comprises the following components:
and the identification unit is used for reading the topological relation of the logic position, and the topological relation is information contained in the logic position information.
And the sequencing unit is used for sequencing all the hard disk slots in a mode of combining top-down and left-to-right based on a topological relation, and the specific sequencing has no specific requirement and can be firstly from top-down or from left-to-right.
And the updating unit is used for associating the physical sequence of each slot position to the HDDList, specifically, the physical serial number of each slot position is associated with a group of hard disk information in the HDDList, and each group of hard disk information in the HDDList is ensured to include the model number, the serial number, the logic position information and the slot position serial number information.
After the first updating module is completed, we can already know the physical position information of the hard disk, but for better display and reference, the second updating module can be used for updating the hard disk information of the BIOS page based on HDDList.
The updating process is realized based on two units, and firstly, a reading unit is required to read the updated hard disk information in HDDList; then, for the read information, the refresh unit executes BIOS refresh operation, replaces the original hard disk information with the updated hard disk information, displays the updated hard disk information at the position of the hard disk information in the Setup under the BIOS page, and displays the hard disk information in the form of character strings, wherein the hard disk information comprises the model number, the serial number, the logic position information and the slot position serial number information.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (9)
1. A method for generating a physical location of a hard disk in a BIOS, the method comprising the steps of:
s1: initializing a BIOS;
s2: loading a hard disk drive;
s3: collecting hard disk information and generating HDDList;
s4: acquiring configuration information in an FRU;
s5: and generating physical position information by combining the information of S3 and S4, and updating the physical position information to HDDList.
2. The method of claim 1, further comprising:
s6: and updating the hard disk information of the BIOS page based on HDDList.
3. The method of claim 1 or 2, wherein the hard disk information in step S3 at least includes: model number, serial number, logical location information.
4. The method of claim 1 or 2, wherein the step S5 is implemented by the following steps: based on the topological relation of the logical positions, all hard disk slots are sequentially arranged in a mode of combining from top to bottom and from left to right, and the physical serial number of each slot is associated with a group of hard disk information in HDDList.
5. The method of claim 4, wherein the step S6 is implemented by the following steps:
reading the updated hard disk information in HDDList;
and the BIOS executes refreshing operation and replaces the original hard disk information with the updated hard disk information.
6. An apparatus for generating a physical location of a hard disk in a BIOS, the apparatus comprising:
the loading module is used for loading the hard disk drive;
the first acquisition module is used for collecting hard disk information by using the loaded drive;
the generating module is used for generating HDDList by utilizing the information collected by the first collecting module;
the second acquisition module is used for acquiring configuration information in the FRU;
and the first updating module is used for generating physical position information and updating the physical position information to HDDList.
7. The apparatus of claim 6, further comprising:
and the second updating module is used for updating the BIOS page hard disk information based on HDDList.
8. The apparatus of claim 6 or 7, wherein the first update module comprises:
the identification unit is used for identifying the topological relation of the logic position;
the sorting unit is used for sequentially arranging all the hard disk slots in a mode of combining top-down and left-to-right based on the topological relation;
and the updating unit is used for associating the physical ordering of each slot position into the HDDList.
9. The apparatus of claim 8, wherein the second update module comprises:
the reading unit is used for reading the updated hard disk information in the HDDList;
and the refreshing unit is used for executing BIOS refreshing operation to replace the original hard disk information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010009178.8A CN111209174A (en) | 2020-01-06 | 2020-01-06 | Method and device for generating physical position of hard disk in BIOS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010009178.8A CN111209174A (en) | 2020-01-06 | 2020-01-06 | Method and device for generating physical position of hard disk in BIOS |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111209174A true CN111209174A (en) | 2020-05-29 |
Family
ID=70785618
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010009178.8A Withdrawn CN111209174A (en) | 2020-01-06 | 2020-01-06 | Method and device for generating physical position of hard disk in BIOS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111209174A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021259058A1 (en) * | 2020-06-22 | 2021-12-30 | 中兴通讯股份有限公司 | Memory disk detection method and apparatus, terminal device, and storage medium |
-
2020
- 2020-01-06 CN CN202010009178.8A patent/CN111209174A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021259058A1 (en) * | 2020-06-22 | 2021-12-30 | 中兴通讯股份有限公司 | Memory disk detection method and apparatus, terminal device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110309071B (en) | Test code generation method and module, and test method and system | |
CN109119124A (en) | The production method and solid state hard disk of solid state hard disk | |
CN104252481B (en) | The dynamic check method and apparatus of master-slave database consistency | |
CN110008129B (en) | Reliability test method, device and equipment for storage timing snapshot | |
CN107402789A (en) | A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW | |
CN103592898A (en) | An electronic product production automatic control system and a method | |
CN107741903A (en) | Application compatibility method of testing, device, computer equipment and storage medium | |
CN106776165A (en) | Server performance method of testing and system | |
CN112433948A (en) | Simulation test system and method based on network data analysis | |
CN117421217A (en) | Automatic software function test method, system, terminal and medium | |
CN109272206A (en) | Production method and system based on server component informationization | |
CN109445691A (en) | A kind of method and device improving FTL algorithm development and verification efficiency | |
CN111209174A (en) | Method and device for generating physical position of hard disk in BIOS | |
CN112486957A (en) | Database migration detection method, device, equipment and storage medium | |
CN105094684B (en) | The method for reusing and system of problem disk in disc array system | |
CN102467935A (en) | Magnetic disk positioning system and method | |
CN105279013B (en) | Program dissemination method and its device based on batch production | |
CN112233718B (en) | Fault location analysis method and device for storage unit, storage medium and terminal | |
CN106971757A (en) | A kind of method and system of inspection Nand Flash mass | |
CN117217163B (en) | Script-based SOC chip testing method | |
CN104050308A (en) | Cutter in diagnosis (cid) a method to improve the throughput of the yield ramp up process | |
CN112685384A (en) | Data migration method and device, electronic equipment and storage medium | |
US20020147946A1 (en) | Method and system for automatic test report generation from memory device reliabilty testing | |
CN115587333A (en) | Failure analysis fault point prediction method and system based on multi-classification model | |
CN114385155A (en) | vue project visualization tool generation method, device, equipment and storage medium |
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 | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200529 |