CN112988513A - Server hard disk information management method, device, equipment and medium - Google Patents

Server hard disk information management method, device, equipment and medium Download PDF

Info

Publication number
CN112988513A
CN112988513A CN202110271874.0A CN202110271874A CN112988513A CN 112988513 A CN112988513 A CN 112988513A CN 202110271874 A CN202110271874 A CN 202110271874A CN 112988513 A CN112988513 A CN 112988513A
Authority
CN
China
Prior art keywords
hard disk
bmc
disk
sequence
display screen
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
Application number
CN202110271874.0A
Other languages
Chinese (zh)
Other versions
CN112988513B (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.)
Shandong Yingxin Computer Technology Co Ltd
Original Assignee
Shandong Yingxin Computer 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 Shandong Yingxin Computer Technology Co Ltd filed Critical Shandong Yingxin Computer Technology Co Ltd
Priority to CN202110271874.0A priority Critical patent/CN112988513B/en
Publication of CN112988513A publication Critical patent/CN112988513A/en
Application granted granted Critical
Publication of CN112988513B publication Critical patent/CN112988513B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a server hard disk information management method, device, equipment and medium. The method comprises the following steps: acquiring first hard disk information by using a BMC through an operating system of a server, wherein the first hard disk information comprises a corresponding relation between a system disk sequence of a hard disk and a hard disk serial number; acquiring second hard disk information by using the BMC through the CPLD of the hard disk backboard, wherein the second hard disk information comprises a physical disk sequence of the hard disk and a corresponding relation with the hard disk sequence number; determining the corresponding relation between the system disk order and the physical disk order according to the first hard disk information and the second hard disk information through the BMC; and if the trigger operation of the UID button by the user is received, starting a display screen of a front panel of the server by using the BMC and displaying the corresponding relation between the system disk order and the physical disk order on the display screen. The scheme of the invention is not limited by environments such as an operating system and the type of the used board card, is intuitive and accurate in display and has better universality, and the development, operation and maintenance cost of the server is greatly reduced.

Description

Server hard disk information management method, device, equipment and medium
Technical Field
The present invention relates to the field of server technologies, and in particular, to a server hard disk information management method, apparatus, device, and medium.
Background
The hard disk is an important component of the server, and is usually arranged on one side close to a front window of the server for facilitating the maintenance of the hard disk of the server. The server includes a plurality of hard disks, and thus, each hard disk needs to be marked for convenient maintenance and management.
At present, the existing server hard disk marking differentiation adopts hard disk silk-screen printing on a front window of a server, for example, laser engraving is performed at a position corresponding to a hard disk on a front window of a chassis or a label sticker is used for representing a serial number of the hard disk. Fig. 1A shows a schematic diagram of a front window of a conventional server, and fig. 1B shows a partially enlarged view of an area where a certain hard disk in fig. 1A is located, where a position of an upper left corner of the hard disk on the front window is marked with a number "0", a number "1", and the like to represent a system disk order of the hard disk, and it is assumed that the numbers 0 and 1 denote a disk C and a disk D, respectively, but in actual use, the system disk order corresponding to each hard disk is not fixed according to different operating systems, types of boards, and different applications, and for example, a window system is taken as an example, it is assumed that a system disk order of a hard disk "0" is used as a disk C under a certain operating system, and in another operating system, a hard disk "0" may be used as a disk D under an operating system, and at this time this mark obviously cannot indicate a true system disk order.
Therefore, the existing fixed hard disk silk-screen printing mode has the following defects: on one hand, the hard disk silk-screen printing mode is fixed engraving, and the change and the adjustment are difficult; on the other hand, the problem that the system disk order corresponding to the hard disk screen printing is not matched with the actual system disk order also exists in the method, and great inconvenience is brought to management and maintenance of the server hard disks by a user.
Disclosure of Invention
In view of the foregoing, there is a need to provide a server hard disk information management method, apparatus, device and medium capable of dynamically displaying and adapting to different operating systems and application scenarios.
According to a first aspect of the present invention, there is provided a server hard disk information management method, including:
acquiring first hard disk information through an operating system of a server by using a BMC, wherein the first hard disk information comprises a corresponding relation between a system disk sequence of a hard disk and a hard disk serial number;
acquiring second hard disk information by using the BMC through the CPLD of the hard disk backboard, wherein the second hard disk information comprises a physical disk sequence of the hard disk and a corresponding relation with the hard disk sequence number;
determining the corresponding relation between the system disk order and the physical disk order according to the first hard disk information and the second hard disk information through the BMC;
and if the trigger operation of the UID button by the user is received, starting a display screen by using the BMC, and displaying the corresponding relation between the system disk sequence and the physical disk sequence on the display screen, wherein the display screen is arranged on a front panel of the server.
In one embodiment, the method further comprises:
and if the corresponding relation between the system disk order and the physical disk order is displayed on the display screen and the triggering operation of the UID button by the user is received again, closing the display screen through the BMC.
In one embodiment, the method further comprises:
acquiring the starting duration of the display screen through a BMC (baseboard management controller);
and if the starting duration reaches the preset time and the triggering operation of the UID button by the user is not received again, closing the display screen through the BMC.
In one embodiment, the step of starting a display screen by using the BMC and displaying the correspondence between the system disk order and the physical disk order on the display screen includes:
acquiring the corresponding relation between the physical arrangement position of the hard disk and the physical disk sequence through BMC;
dividing a display area corresponding to the physical arrangement position of the hard disk on the display screen by using the BMC;
and determining and displaying the system disk sequence corresponding to the display area according to the corresponding relation between the system disk sequence and the physical disk sequence and the corresponding relation between the physical arrangement position and the physical disk sequence by utilizing the BMC.
In one embodiment, the method further comprises:
converting the system sequence to be displayed into a preset value according to the corresponding relation between the preset value and the system sequence through the BMC;
and displaying the preset numerical value in the display area corresponding to the system disk sequence by utilizing the BMC.
In one embodiment, the UID button is arranged on the left box ear or the right box ear of the server.
In one embodiment, the display screen adopts an LCD module, and the LCD module is arranged on a left box ear or a right box ear of the server.
According to a second aspect of the present invention, there is provided a server hard disk information management apparatus, the apparatus comprising:
the system comprises a first hard disk information acquisition unit, a second hard disk information acquisition unit and a first storage unit, wherein the first hard disk information acquisition unit is used for acquiring first hard disk information through an operating system of a server by using a BMC (baseboard management controller), and the first hard disk information comprises the corresponding relation between a system disk sequence of a hard disk and a serial number of the hard disk;
the second hard disk information acquisition unit is used for acquiring second hard disk information through the CPLD of the hard disk backboard by utilizing the BMC, wherein the second hard disk information comprises a physical disk sequence of a hard disk and a corresponding relation with the hard disk sequence number;
the determining unit is used for determining the corresponding relation between the system disk order and the physical disk order according to the first hard disk information and the second hard disk information through the BMC;
and the display unit is used for starting a display screen by utilizing the BMC and displaying the corresponding relation between the system disk sequence and the physical disk sequence on the display screen when the triggering operation of the UID button by the user is received, wherein the display screen is arranged on the front panel of the server.
According to a third aspect of the present invention, there is also provided a computer apparatus comprising:
at least one processor; and
the storage stores a computer program which can run on the processor, and the processor executes the server hard disk information management method when executing the program.
According to a fourth aspect of the present invention, there is also provided a computer-readable storage medium storing a computer program which, when executed by a processor, performs the aforementioned server hard disk information management method.
According to the server hard disk information management method, first hard disk information is acquired through an operating system of a server by using a BMC, wherein the first hard disk information comprises a corresponding relation between a system disk sequence of a hard disk and a hard disk serial number; acquiring second hard disk information by using the BMC through the CPLD of the hard disk backboard, wherein the second hard disk information comprises a physical disk sequence of the hard disk and a corresponding relation with the hard disk sequence number; determining the corresponding relation between the system disk order and the physical disk order according to the first hard disk information and the second hard disk information through the BMC; and finally, when the trigger operation of the user on the UID button is received, the BMC is used for starting the display screen and displaying the corresponding relation between the system disk sequence and the physical disk sequence on the display screen, so that the system disk sequence of the hard disk is dynamically displayed, the system disk sequence is different from the traditional fixed seal, the limitation of environments such as an operating system, the type of a used board card and the like is avoided, the display is visual and accurate, the universality is good, and the development, operation and maintenance cost of the server is greatly reduced.
In addition, the invention also provides a server hard disk information management device, a computer device and a computer readable storage medium, which can also realize the technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1A is a diagram of a front window of a conventional server;
FIG. 1B is an enlarged view of a portion of the hard disk of FIG. 1A;
fig. 2 is a flowchart illustrating a method for managing server hard disk information according to an embodiment of the present invention;
FIG. 3A is a schematic diagram of a front window of a server according to an embodiment of the present invention;
FIG. 3B is an enlarged view of a portion of the display screen of FIG. 3A;
FIG. 4 is a schematic diagram of a connection structure between the BMC and each component according to another embodiment of the invention;
FIG. 5 is a logic diagram of another method for managing hard disk information of a server according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server hard disk information management apparatus according to another embodiment of the present invention;
fig. 7 is an internal structural view of a computer device in another embodiment of the present invention.
[ description of reference ]
1: a server front window; 11: a left box ear; 12: a right box ear;
2: a hard disk;
3: a UID button;
4: an LCD module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In an embodiment, referring to fig. 2, the present invention provides a server hard disk information management method, including the following steps:
s100, acquiring first hard disk information through an operating system of a server by using a BMC, wherein the first hard disk information comprises a corresponding relation between a system disk sequence of a hard disk and a hard disk serial number;
s200, acquiring second hard disk information through the CPLD of the hard disk backboard by utilizing the BMC, wherein the second hard disk information comprises a physical disk sequence of the hard disk and a corresponding relation with the hard disk sequence number;
s300, determining the corresponding relation between the system disk order and the physical disk order according to the first hard disk information and the second hard disk information through the BMC;
and S400, if the triggering operation of the UID button by the user is received, starting the display screen by using the BMC, and displaying the corresponding relation between the system disk sequence and the physical disk sequence on the display screen, wherein the display screen is arranged on the front panel of the server.
According to the server hard disk information management method, first hard disk information is acquired through an operating system of a server by using a BMC, wherein the first hard disk information comprises a corresponding relation between a system disk sequence of a hard disk and a hard disk serial number; acquiring second hard disk information by using the BMC through the CPLD of the hard disk backboard, wherein the second hard disk information comprises a physical disk sequence of the hard disk and a corresponding relation with the hard disk sequence number; determining the corresponding relation between the system disk order and the physical disk order according to the first hard disk information and the second hard disk information through the BMC; and finally, when the trigger operation of the user on the UID button is received, the BMC is used for starting the display screen and displaying the corresponding relation between the system disk sequence and the physical disk sequence on the display screen, so that the system disk sequence of the hard disk is dynamically displayed, the system disk sequence is different from the traditional fixed seal, the limitation of environments such as an operating system, the type of a used board card and the like is avoided, the display is visual and accurate, the universality is good, and the development, operation and maintenance cost of the server is greatly reduced.
In yet another embodiment, the method of the present invention further comprises the steps of:
s500, if the corresponding relation between the system disk order and the physical disk order is displayed on the display screen and the triggering operation of the UID button by the user is received again, the display screen is closed through the BMC.
Preferably, the method further comprises:
s610, acquiring the starting duration of the display screen through BMC;
and S620, if the starting duration reaches the preset time and the triggering operation of the UID button by the user is not received again, the display screen is closed through the BMC.
In the specific implementation process, a user can set the opening duration of the display screen according to needs, and the display screen is closed by combining the active trigger button and is automatically closed after the display time is reached, so that energy can be saved and unnecessary light sources can be reduced.
In another embodiment, please refer to fig. 3A and 3B, the step S400 includes the following sub-steps:
s410, acquiring the corresponding relation between the physical arrangement position of the hard disk and the physical disk sequence through the BMC;
s420, dividing a display area corresponding to the physical arrangement position of the hard disk on the display screen by using BMC;
and S430, determining and displaying the system disk sequence corresponding to the display area according to the corresponding relation between the system disk sequence and the physical disk sequence and the corresponding relation between the physical arrangement position and the physical disk sequence by utilizing the BMC.
Preferably, the method further comprises:
s710, converting the physical disk sequence to be displayed into a preset value according to the corresponding relation between the preset value and the physical disk sequence through the BMC;
and 720, displaying the preset numerical value in the display area corresponding to the system disk sequence by utilizing the BMC.
For example, taking LINUX system as an example, a system disk sequence usually includes sda, sdb, sdc, etc., and since character display needs to occupy a larger space, it may be presented in a manner of assuming 0 ═ sda,1 ═ sdb, and 2 ═ sdc … …, as shown in fig. 3B, at this time, the system disk sequence corresponding to the first row and the first column of hard disks in fig. 3A is sda, the interpretation corresponding to the first row and the second column of hard disks is sdb, and so on.
Preferably, the UID button is disposed on a left box ear or a right box ear of the server.
Preferably, the display screen adopts an LCD module, and the LCD module is arranged on a left box ear or a right box ear of the server.
In yet another embodiment, as shown below in conjunction with fig. 3A and 4, the structure at the front window of the server is as follows: the both sides of server front window 1 are provided with left case ear 11 and right case ear 12 respectively, and the one end of hard disk 2 flushes with the server front window, sets up UID button 3 on left case ear 11, sets up LCD module 4 on right case ear 12. In the server, the BMC communicates with software on the operating system through an IPMI (Intelligent Platform Management Interface), the UID button is connected to the BMC through a left box ear control signal, and the BMC further communicates with the CPLD and the LCD module of the hard disk backplane through an I2C bus, respectively, for easy understanding of the technical solution of the present invention, please refer to fig. 5 below, and the method of the present invention has the following implementation steps:
step one, collecting all Hard Disk information in an operating system by system software, wherein the system software can obtain the Hard Disk information by the existing MegaRAID (SAS/RAID card management software of BROADCOM company) and HDSentel (Hard Disk Sentel Linux Edition LINUX software). The following examples of MegaRAID and Hard Disk Sentinel Linux edition applications are used in the LINUX environment: the command/HDSentiel is used to obtain a hard disk Serial number (HDD Serial No) and a system disk sequence (HDD Device sda/sdb/sdc.), and the obtained hard disk information is as follows:
[root@localhost/]#./HDSentinel
Hard Disk Sentinel for LINUX console 0.01(c)2008info@hdsentinel.com
Start with–r[reportfile]to save date to report,-h for help
examining hard disk configuration … # queries for two hard disk configuration information as follows
HDD Device 0: the/dev/sda # system disk sequence
HDD Model ID:ST3160815A
HDD Serial No: 5RA020 # hard disk serial number
HDD Revision:3.AAA
HDD Size:152628MB
Interface:IDE/ATA
Temperature:33℃
Health:100%
Performance:70%
Power on time:27days,13hours
Est.lifetime:more than 1000days
HDD Device 0: sequence of/dev/sdb # system
HDD Model ID:TOSHIBA MK1237GSX
HDD Serial No: 97LVF9MHS # hard disk serial number
HDD Revision:DL130M
HDD Size:114473 MB
Interface:S-ATA
Temperature:30℃
Health:100%
Performance:100%
Power on time:38days,11hours
Est.lifetime:more than 1000 days
And step two, collecting hard disk information, namely a physical disk sequence and a hard disk serial number, on the RAID card by using an instruction, wherein the reference of the collected instruction is as follows: the information of two hard disks is obtained by using the following method in the specification of MegaCli-PDList-aAll | egrep 'Slot \ Number | Device \ Id | Inquiry \ Data | Raw | Firmware \ state' | sed's/Slot/\\ nSlot/g':
slot Number: 0 # physical disk order
Device ID:4
Raw Size:279.460.GB[0X22eec130 Sectors]
Firmware state:Online,Spun up
Inquiry Data:BTWL3450062]300PGN INTEL SSDSC2BB300G4
D2010355# hard disk serial number
Slot Number: 1 # physical disk order
Device ID:5
Raw Size:279.460.GB[0X22eec130 Sectors]
Firmware state:Online,Spun up
Inquiry Data:BTWL345003X6300PGN INTEL SSDSC2BB308G4
D2010355# hard disk serial number
Thirdly, the system software sorts out the corresponding information of the physical disk sequence of the hard disk and the system disk sequence by using the serial number of the hard disk and sends the information to the BMC through an IPMI interface, if: sda, slot0, sdb, slot1, scdc, slot2 … …
Step four, after the BMC uses I2C to communicate with the back panel CPLD to know the type and configuration of the back panel, the BMC occupies the position of the hard disk and stores the disk sequence in the memory;
and step five, when the display is needed, the UID button is pressed to trigger a display mechanism, the BMC lights the UID lamp and controls the LED/LCD module to display through the I2C so as to display the system disk sequence of the hard disk on the LED/LCD module, specifically referring to fig. 3B, wherein the display of the LCD module is represented by 0-sda, 1-sdb and 2-sdb ….
Step six, pressing the UID button to turn off the display when the display is not needed.
The method of the invention obtains the disk sequence information of the hard disk serial number system by using the application software App in the operating system OS, the application software App is sent to the BMC through the IPMI interface, the BMC collects the back plate type from the hard disk back plate CPLD at the same time to determine the hard disk serial number and the physical disk sequence, the BMC determines the corresponding relation between the physical disk sequence and the system disk sequence after comparing the data, and the information is displayed on the LCD module after a user presses the UID button, so that operation and maintenance personnel are more convenient in operation, intuitively determine the system disk sequence corresponding to each hard disk, and provide convenience for maintenance and repair.
In another embodiment, referring to fig. 6, the present invention provides a server hard disk information management apparatus 80, including:
a first hard disk information obtaining unit 91, configured to obtain first hard disk information through an operating system of a server by using a BMC, where the first hard disk information includes a correspondence between a system disk sequence of a hard disk and a hard disk serial number;
a second hard disk information obtaining unit 92, configured to obtain second hard disk information through the CPLD of the hard disk backplane by using the BMC, where the second hard disk information includes a physical disk sequence of the hard disk and a corresponding relationship between the physical disk sequence and a hard disk sequence number;
a determining unit 93, configured to determine, by the BMC, a correspondence between a system disk order and a physical disk order according to the first hard disk information and the second hard disk information;
and the display unit 94 is configured to, when receiving a trigger operation of the UID button by a user, start a display screen by using the BMC and display a correspondence between the system disk order and the physical disk order on the display screen, where the display screen is disposed on a front panel of the server.
It should be noted that, for specific limitations of the server hard disk information management apparatus, reference may be made to the above limitations of the server hard disk information management method, which is not described herein again. All or part of each module in the server hard disk information management device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
According to another aspect of the present invention, a computer device is provided, and the computer device may be a server, and its internal structure is shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program realizes the above-mentioned server hard disk information management method when executed by a processor.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A server hard disk information management method is characterized by comprising the following steps:
acquiring first hard disk information through an operating system of a server by using a BMC, wherein the first hard disk information comprises a corresponding relation between a system disk sequence of a hard disk and a hard disk serial number;
acquiring second hard disk information by using the BMC through the CPLD of the hard disk backboard, wherein the second hard disk information comprises a physical disk sequence of the hard disk and a corresponding relation with the hard disk sequence number;
determining the corresponding relation between the system disk order and the physical disk order according to the first hard disk information and the second hard disk information through the BMC;
and if the trigger operation of the UID button by the user is received, starting a display screen by using the BMC, and displaying the corresponding relation between the system disk sequence and the physical disk sequence on the display screen, wherein the display screen is arranged on a front panel of the server.
2. The method of claim 1, further comprising:
and if the corresponding relation between the system disk order and the physical disk order is displayed on the display screen and the triggering operation of the UID button by the user is received again, closing the display screen through the BMC.
3. The method of claim 2, further comprising:
acquiring the starting duration of the display screen through a BMC (baseboard management controller);
and if the starting duration reaches the preset time and the triggering operation of the UID button by the user is not received again, closing the display screen through the BMC.
4. The method of claim 1, wherein the step of starting a display screen by the BMC and displaying the correspondence between the system disk order and the physical disk order on the display screen comprises:
acquiring the corresponding relation between the physical arrangement position of the hard disk and the physical disk sequence through BMC;
dividing a display area corresponding to the physical arrangement position of the hard disk on the display screen by using the BMC;
and determining and displaying the system disk sequence corresponding to the display area according to the corresponding relation between the system disk sequence and the physical disk sequence and the corresponding relation between the physical arrangement position and the physical disk sequence by utilizing the BMC.
5. The method of claim 4, further comprising:
converting the system sequence to be displayed into a preset value according to the corresponding relation between the preset value and the system sequence through the BMC;
and displaying the preset numerical value in the display area corresponding to the system disk sequence by utilizing the BMC.
6. The method of claim 1, wherein the UID button is disposed on a left box ear or a right box ear of the server.
7. The method of claim 1, wherein the display screen is an LCD module, and the LCD module is disposed on a left box ear or a right box ear of the server.
8. An apparatus for managing information on a hard disk of a server, the apparatus comprising:
the system comprises a first hard disk information acquisition unit, a second hard disk information acquisition unit and a first storage unit, wherein the first hard disk information acquisition unit is used for acquiring first hard disk information through an operating system of a server by using a BMC (baseboard management controller), and the first hard disk information comprises the corresponding relation between a system disk sequence of a hard disk and a serial number of the hard disk;
the second hard disk information acquisition unit is used for acquiring second hard disk information through the CPLD of the hard disk backboard by utilizing the BMC, wherein the second hard disk information comprises a physical disk sequence of a hard disk and a corresponding relation with the hard disk sequence number;
the determining unit is used for determining the corresponding relation between the system disk order and the physical disk order according to the first hard disk information and the second hard disk information through the BMC;
and the display unit is used for starting a display screen by utilizing the BMC and displaying the corresponding relation between the system disk sequence and the physical disk sequence on the display screen when the triggering operation of the UID button by the user is received, wherein the display screen is arranged on the front panel of the server.
9. A computer device, comprising:
at least one processor; and
a memory storing a computer program operable in the processor, the processor when executing the program performing the method of any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 7.
CN202110271874.0A 2021-03-12 2021-03-12 Method, device, equipment and medium for managing server hard disk information Active CN112988513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110271874.0A CN112988513B (en) 2021-03-12 2021-03-12 Method, device, equipment and medium for managing server hard disk information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110271874.0A CN112988513B (en) 2021-03-12 2021-03-12 Method, device, equipment and medium for managing server hard disk information

Publications (2)

Publication Number Publication Date
CN112988513A true CN112988513A (en) 2021-06-18
CN112988513B CN112988513B (en) 2023-07-14

Family

ID=76335376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110271874.0A Active CN112988513B (en) 2021-03-12 2021-03-12 Method, device, equipment and medium for managing server hard disk information

Country Status (1)

Country Link
CN (1) CN112988513B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115617719A (en) * 2022-12-19 2023-01-17 苏州浪潮智能科技有限公司 Hard disk backplane sequence adjustment method and device, storage medium and electronic device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479163A (en) * 2010-11-25 2012-05-30 鸿富锦精密工业(深圳)有限公司 Multi-hard-disk automatic identification system and method
CN107943723A (en) * 2017-11-23 2018-04-20 郑州云海信息技术有限公司 A kind of hard disc of computer recognition methods and system
CN108459823A (en) * 2017-07-28 2018-08-28 紫光华山信息技术有限公司 A kind of installation method and device of operating system
CN109542708A (en) * 2018-12-04 2019-03-29 浪潮电子信息产业股份有限公司 Method for recording corresponding relation between physical slot position of back plate and system drive letter
CN111400121A (en) * 2020-04-21 2020-07-10 贵州新致普惠信息技术有限公司 Server hard disk slot positioning and maintaining method
CN211742099U (en) * 2020-05-09 2020-10-23 苏州浪潮智能科技有限公司 Server hard disk information display device
CN111831345A (en) * 2020-07-17 2020-10-27 深圳市同泰怡信息技术有限公司 Management method and device for server hard disk backboard, storage medium and equipment
US10860452B1 (en) * 2019-06-24 2020-12-08 Hewlett Packard Enterprise Development Lp Systems and methods for controlling hardware device lighting in multi-chassis environment
CN112256504A (en) * 2020-10-14 2021-01-22 浪潮电子信息产业股份有限公司 Method, system and device for testing hard disk state indicator lamp

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102479163A (en) * 2010-11-25 2012-05-30 鸿富锦精密工业(深圳)有限公司 Multi-hard-disk automatic identification system and method
CN108459823A (en) * 2017-07-28 2018-08-28 紫光华山信息技术有限公司 A kind of installation method and device of operating system
CN107943723A (en) * 2017-11-23 2018-04-20 郑州云海信息技术有限公司 A kind of hard disc of computer recognition methods and system
CN109542708A (en) * 2018-12-04 2019-03-29 浪潮电子信息产业股份有限公司 Method for recording corresponding relation between physical slot position of back plate and system drive letter
US10860452B1 (en) * 2019-06-24 2020-12-08 Hewlett Packard Enterprise Development Lp Systems and methods for controlling hardware device lighting in multi-chassis environment
CN111400121A (en) * 2020-04-21 2020-07-10 贵州新致普惠信息技术有限公司 Server hard disk slot positioning and maintaining method
CN211742099U (en) * 2020-05-09 2020-10-23 苏州浪潮智能科技有限公司 Server hard disk information display device
CN111831345A (en) * 2020-07-17 2020-10-27 深圳市同泰怡信息技术有限公司 Management method and device for server hard disk backboard, storage medium and equipment
CN112256504A (en) * 2020-10-14 2021-01-22 浪潮电子信息产业股份有限公司 Method, system and device for testing hard disk state indicator lamp

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115617719A (en) * 2022-12-19 2023-01-17 苏州浪潮智能科技有限公司 Hard disk backplane sequence adjustment method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN112988513B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN107526665B (en) Case management system and case management method
CN1908902A (en) System of managing peripheral interfaces in ipmi architecture and method thereof
US8473666B2 (en) Systems and methods for driverless operation of USB device
US10387239B2 (en) Detecting memory failures in the runtime environment
CN110489367B (en) Method and system for flexibly allocating and easily managing backplane by CPLD (complex programmable logic device)
CN112988513A (en) Server hard disk information management method, device, equipment and medium
CN111400121A (en) Server hard disk slot positioning and maintaining method
US7266628B2 (en) System and method of retiring events upon device replacement
US20050289263A1 (en) System and method of SCSI and SAS hardware validation
CA3150581A1 (en) Method, apparatus, and system for incremental update of graphs
CN113194161B (en) Method and device for setting MMIO base address of server system
CN118035018A (en) Storage device detection method and device, storage medium and electronic device
CN113590405A (en) Hard disk error detection method and device, storage medium and electronic device
CN109117299B (en) Error detecting device and method for server
CN112445670B (en) eMMC test method and device
CN101795204A (en) Remote hardware detection system and method
CN113900718B (en) Decoupling method, system and device for BMC and BIOS asset information
CN115470056A (en) Method, system, device and medium for troubleshooting power-on starting of server hardware
CN108873668A (en) Time calibrating method, processor and time calibration system
CN113010303A (en) Data interaction method and device between processors and server
Nan et al. Design and development of module management controller for MicroTCA. 4 standard
TWI795950B (en) Hard disk monitoring method, electronic device, and storage medium
US12008253B2 (en) Embedded system and method for updating firmware
US20040049511A1 (en) Method for acquiring and monitoring hardware data of computer system
EP0959408A2 (en) Acquiring device-configuration information during a startup of information-processing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant