CN114238019A - Hard disk display method, device, equipment and medium - Google Patents

Hard disk display method, device, equipment and medium Download PDF

Info

Publication number
CN114238019A
CN114238019A CN202111555226.4A CN202111555226A CN114238019A CN 114238019 A CN114238019 A CN 114238019A CN 202111555226 A CN202111555226 A CN 202111555226A CN 114238019 A CN114238019 A CN 114238019A
Authority
CN
China
Prior art keywords
hard disk
disk
topology information
sequence
type
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.)
Pending
Application number
CN202111555226.4A
Other languages
Chinese (zh)
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.)
Inspur Power Commercial Systems Co Ltd
Original Assignee
Inspur Power Commercial Systems 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 Inspur Power Commercial Systems Co Ltd filed Critical Inspur Power Commercial Systems Co Ltd
Priority to CN202111555226.4A priority Critical patent/CN114238019A/en
Publication of CN114238019A publication Critical patent/CN114238019A/en
Pending legal-status Critical Current

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/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a hard disk display method, device, equipment and medium, comprising: respectively acquiring physical layer topological information and disk sequences of various types of hard disks carried by a server; generating overall topology information corresponding to each type of hard disk in a control layer based on the physical layer topology information, the disk sequence and a preset hard disk type arrangement sequence; and when any hard disk viewing command is acquired, returning the overall topological information to display the type and the disk sequence of the hard disks carried by the server on a corresponding interface according to the preset hard disk type arrangement sequence. That is, the overall topological information of each type of hard disk is generated in the control layer based on the physical layer topological information and the disk sequence of each type of hard disk carried by the server, so that when any kind of hard disk viewing command is obtained, the overall topological information is returned, the sequence of multiple types of hard disks can be unified, and the hard disks are displayed according to the unified sequence in different hard disk viewing modes.

Description

Hard disk display method, device, equipment and medium
Technical Field
The present application relates to the field of server technologies, and in particular, to a hard disk display method, apparatus, device, and medium.
Background
In order to meet the requirements of different clients, a server can support various hard disk configurations, and the commonly used hard disks include: NVME (i.e., NVM Express) hard disk, SAS (i.e., Serial Attached SCSI (i.e., Small Computer System Interface))/SATA (i.e., Serial Advanced Technology Attachment) solid state hard disk, SAS/SATA mechanical hard disk (typically referred to as 2.5 "or 3.5" SAS/SATA hard disk), and the like. The NVME hard disk is generally used for storing information that needs to be read and written quickly by a Central Processing Unit (CPU); the SAS/SATA solid state disk is generally used for installing an operating system; SAS/SATA mechanical hard disks are commonly used to store data.
At present, there are three main ways for a computer to check the disk order of a hard disk: 1) before entering the operating system, the firmware identifies and displays the hard disk type and sequence. 2) After entering the operating system, the operating system displays the hard disk types and the hard disk sequence. 3) The BMC (Baseboard Management Controller) displays the types and the sequence of the hard disks under a monitoring Management interface. Due to the diversification of hard disk configurations and the difference of the mechanisms for acquiring the disk orders in the three modes, the disk orders of the hard disks acquired by the user in different modes have certain difference, and the hard disks may have different orders of the solid state disk, the NVME hard disk, and the mechanical hard disk, or the solid state disk, the mechanical hard disk, and the NVME hard disk, the solid state disk, and the mechanical hard disk. Inconvenience is brought to the user in the using and maintaining process.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, a device, and a medium for displaying a hard disk, which can unify the order of multiple types of hard disks, so that the hard disk display is performed according to the unified order in different hard disk viewing modes. The specific scheme is as follows:
in a first aspect, the present application discloses a hard disk display method, including:
respectively acquiring physical layer topological information and disk sequences of various types of hard disks carried by a server;
generating overall topology information corresponding to each type of hard disk in a control layer based on the physical layer topology information, the disk sequence and a preset hard disk type arrangement sequence;
and when any hard disk viewing command is acquired, returning the overall topological information to display the type and the disk sequence of the hard disks carried by the server on a corresponding interface according to the preset hard disk type arrangement sequence.
Optionally, the respectively obtaining physical layer topology information and disk orders of various types of hard disks loaded by the server includes:
acquiring physical layer topology information and disk order of the NVME hard disk from the CPU through an I2C or LPC bus;
acquiring physical layer topology information and disk sequence of the SAS/SATA hard disk from the RAID or SAS chip through an I2C bus; the SAS/SATA hard disk comprises a solid state disk and a mechanical hard disk.
Optionally, before the control layer generates the total topology information corresponding to each type of hard disk based on the physical layer topology information, the disk order, and the preset hard disk type arrangement order, the method further includes:
acquiring the hard disk type arrangement sequence sent by a user terminal to obtain a preset hard disk type arrangement sequence,
or reading the default hard disk type arrangement sequence to obtain the preset hard disk type arrangement sequence.
Optionally, the respectively obtaining physical layer topology information and disk orders of various types of hard disks loaded by the server includes:
respectively acquiring physical layer topology information and disk sequences of various types of hard disks carried by a server at regular time;
correspondingly, generating the overall topology information corresponding to each type of hard disk in the control layer based on the physical layer topology information, the disk sequence and the preset hard disk type arrangement sequence, including:
and generating total topology information corresponding to each type of hard disk in real time at a control layer based on the physical layer topology information, the disk sequence and a preset hard disk type arrangement sequence.
Optionally, the method further includes:
and acquiring fault information of various types of hard disks carried by the server in real time, and reporting the fault information in real time.
Optionally, the obtaining of the fault information of each type of hard disk loaded by the server in real time includes:
acquiring the fault information of the NVME hard disk from the CPU through an I2C or LPC bus;
and acquiring the fault information of the SAS/SATA hard disk from the RAID or SAS chip through an I2C bus.
Optionally, the method further includes:
partitioning the hard disk carried by the server based on the overall topological information to obtain a plurality of virtual partitions;
and providing storage service for different services based on different virtual partitions.
In a second aspect, the present application discloses a hard disk display device, comprising:
the hard disk information acquisition module is used for respectively acquiring physical layer topology information and disk sequences of various types of hard disks carried by the server;
the overall topology information generating module is used for generating overall topology information corresponding to each type of hard disk in the control layer based on the physical layer topology information, the disk sequence and the preset hard disk type arrangement sequence;
and the overall topology information returning module is used for returning the overall topology information when any hard disk viewing command is acquired, so that the type and the disk sequence of the hard disks carried by the server are displayed on a corresponding interface according to the preset hard disk type arrangement sequence.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the hard disk display method.
In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, which when executed by a processor implements the aforementioned hard disk display method.
It can be seen that, in the present application, physical layer topology information and disk sequences of each type of hard disk carried by a server are respectively obtained, then overall topology information corresponding to each type of hard disk is generated at a control layer based on the physical layer topology information, the disk sequences and a preset hard disk type arrangement sequence, and when any hard disk viewing command is obtained, the overall topology information is returned so as to display the type and the disk sequence of the hard disk carried by the server on a corresponding interface in the preset hard disk type arrangement sequence. That is, the overall topological information of each type of hard disk is generated in the control layer based on the physical layer topological information and the disk sequence of each type of hard disk carried by the server, so that when any kind of hard disk viewing command is obtained, the overall topological information is returned, the sequence of multiple types of hard disks can be unified, and the hard disks are displayed according to the unified sequence in different hard disk viewing modes.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a hard disk display method disclosed in the present application;
FIG. 2 is a schematic diagram of a hard disk drive disclosed herein;
FIG. 3 is a schematic diagram of a hard disk mapping between a control layer and a physical layer according to the present disclosure;
FIG. 4 is a schematic structural diagram of a hard disk display device disclosed in the present application;
fig. 5 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, there are three main ways for a computer to check the disk order of a hard disk: 1) before entering the operating system, the firmware identifies and displays the hard disk type and sequence. 2) After entering the operating system, the operating system displays the hard disk types and the hard disk sequence. 3) And the BMC displays the types and the sequence of the hard disks under the monitoring management interface. Due to the diversification of hard disk configurations and the difference of the mechanisms for acquiring the disk orders in the three modes, the disk orders of the hard disks acquired by the user in different modes have certain difference, and the hard disks may have different orders of the solid state disk, the NVME hard disk, and the mechanical hard disk, or the solid state disk, the mechanical hard disk, and the NVME hard disk, the solid state disk, and the mechanical hard disk. Inconvenience is brought to the user in the using and maintaining process. Therefore, the application provides a hard disk display scheme, the sequence of multiple types of hard disks can be unified, and the hard disks are displayed according to the unified sequence under different hard disk viewing modes.
Referring to fig. 1, an embodiment of the present application discloses a hard disk display method, including:
step S11: and respectively acquiring physical layer topology information and disk sequences of various types of hard disks carried by the server.
In a specific implementation manner, in the embodiment of the application, the physical layer topology information and the disk order of the NVME hard disk can be acquired from the CPU through the BMC and through the I2C or the LPC bus; acquiring physical layer topology information and disk sequence of the SAS/SATA hard disk from RAID (Redundant Arrays of Independent Disks, disk array) or SAS chip through BMC (baseboard management controller) and I2C bus; the SAS/SATA hard disk comprises a solid state disk and a mechanical hard disk. The physical layer topology information of the NVME hard disk is acquired through a PCIE bus protocol and comprises information such as the type, the quantity and the disk sequence of the hard disk. The disk order may be a serial number under this type of hard disk, e.g., NVME0-NVME 1. That is, in the embodiment of the present application, the BMC collects the physical layer topology information and the disk order of the hard disk.
It is noted that hard disks can be divided into various types from different dimensions. For example, the interface protocol may be divided into an NVME hard disk of a PCIE protocol and an SAS/SATA hard disk corresponding to an SAS/SATA interface, and the SAS/SATA hard disk may be divided into a solid state hard disk, a mechanical hard disk, and the like according to the process. The embodiment of the present application provides a hard disk display scheme including NVME hard disks, and SAS/SATA hard disks including solid state disks and mechanical hard disks, and it can be understood that in some other embodiments, the hard disks are not limited to the foregoing types of hard disks.
Step S12: and generating overall topology information corresponding to each type of hard disk in a control layer based on the physical layer topology information, the disk sequence and a preset hard disk type arrangement sequence.
In a specific implementation manner, the embodiment of the present application may obtain a hard disk type arrangement order sent by a user terminal, to obtain a preset hard disk type arrangement order, or read a default hard disk type arrangement order, to obtain a preset hard disk type arrangement order.
That is, the hard disk type arrangement order in the present application may be specified by a user, or may be configured by default. And, the overall topology information includes the kind of the hard disk, the disk order, and the type arrangement order.
Step S13: and when any hard disk viewing command is acquired, returning the overall topological information to display the type and the disk sequence of the hard disks carried by the server on a corresponding interface according to the preset hard disk type arrangement sequence.
In a specific implementation manner, when a hard disk viewing command sent by a firmware, or an operating system, or a BMC monitoring management end is acquired, the total topology information is returned, so that the type and the disk sequence of the hard disk carried by the server are displayed in the preset hard disk type arrangement sequence on a corresponding interface.
Furthermore, the embodiment of the application can also acquire the physical layer topology information and the disk sequence of each type of hard disk carried by the server respectively at regular time; and generating total topology information corresponding to each type of hard disk in real time at a control layer based on the physical layer topology information, the disk sequence and a preset hard disk type arrangement sequence. That is, the embodiment of the application can update the overall topology information in real time.
In addition, the embodiment of the application can acquire the fault information of various types of hard disks carried by the server in real time and report the fault information in real time.
In a specific embodiment, the fault information of the NVME hard disk is acquired from the CPU through an I2C or LPC bus; and acquiring the fault information of the SAS/SATA hard disk from the RAID or SAS chip through an I2C bus. In a specific implementation mode, fault information of the NVME hard disk is acquired from a CPU by a BMC through an I2C or LPC bus; and acquiring the fault information of the SAS/SATA hard disk from the RAID or SAS chip through an I2C bus.
Furthermore, the fault information of the NVME hard disk can be acquired from the CPU through the I2C or LPC bus at regular time; and acquiring the fault information of the SAS/SATA hard disk from the RAID or SAS chip through an I2C bus. Thus, the failure information of the hard disk can be obtained in real time.
In addition, the hard disk carried by the server can be partitioned based on the overall topology information to obtain a plurality of virtual partitions; and providing storage service for different services based on different virtual partitions. That is, the hard disks can be configured in batch to provide storage services for different services.
It should be noted that the hard disk display method provided in the embodiment of the present application is applied to a control layer, and the control layer may be placed in a hard disk management software service.
It can be seen that, in the embodiment of the present application, physical layer topology information and disk orders of various types of hard disks carried by a server are respectively obtained, then overall topology information corresponding to the various types of hard disks is generated at a control layer based on the physical layer topology information, the disk orders and a preset hard disk type arrangement order, and when any hard disk viewing command is obtained, the overall topology information is returned so as to display the types and the disk orders of the hard disks carried by the server on a corresponding interface in the preset hard disk type arrangement order. That is, the embodiment of the present application generates the overall topology information of each type of hard disk at the control layer based on the physical layer topology information and the disk order of each type of hard disk carried by the server, so that when any kind of hard disk viewing command is obtained, the overall topology information is returned, the order of multiple types of hard disks can be unified, and thus, the hard disks can be displayed according to the unified order in different hard disk viewing modes.
Next, a total of 6 kinds of hard disks were mounted on the server. The scheme is described in detail by taking 2 NVME hard disks, 2 SSDs (SAS/SATA solid state disks), and 2 SAS/SATA (SAS/SATA mechanical hard disks) as examples: for example, referring to fig. 2, fig. 2 is a schematic diagram of a hard disk disclosed in the embodiment of the present application. The BMC collects information of all hard disks: the NVME hard disk belongs to PCIE equipment, and the BMC acquires the topology and the disk sequence of the NVME hard disk from the CPU through buses such as I2C/LPC. The SSD/SAS/SATA hard disk belongs to storage equipment, and the BMC acquires the topology and the disk sequence of the hard disk from the RAID/SAS chip through an I2C bus. And after acquiring all the hard disk topologies and disk sequences through the BMC, mapping the hard disk topologies and the disk sequences into control layer topologies at a control layer. Referring to fig. 3, fig. 3 is a schematic diagram of hard disk mapping between a control layer and a physical layer provided in the embodiment of the present application, where the physical layer is configured for an actual hard disk, and the control layer is a mapping relationship of hard disk topology, where the control layer obtains hard disk topology information and arranges the information in a certain order, and may generate overall topology information according to a user-defined order, such as an SSD-NVM E-SAS/SATA order. And the topological information of the whole hard disk is uniformly acquired from the control layer in various hard disk sorting display modes, so that the order of the hard disks is consistent, and the display order of the final display interface is SSD0-SSD1-NVME0-NVME1-SAS/SATA0-SAS/SATA 1. In addition, the control layer can monitor the topology state of the hard disk in real time, quickly and timely feed back fault points according to actual conditions, update topology information, and facilitate checking and maintenance of a user, and the topology of the control layer can facilitate the user to manage the topology of the hard disk of the computer.
Referring to fig. 4, an embodiment of the present application provides a hard disk display device, including:
the hard disk information acquisition module 11 is used for respectively acquiring physical layer topology information and disk sequences of various types of hard disks carried by the server;
an overall topology information generating module 12, configured to generate overall topology information corresponding to each type of hard disk at a control layer based on the physical layer topology information, the disk order, and a preset hard disk type arrangement order;
and an overall topology information returning module 13, configured to, when any hard disk viewing command is acquired, return the overall topology information so as to display the type and the disk order of the hard disks loaded on the server in the preset hard disk type arrangement order on a corresponding interface.
It can be seen that, in the embodiment of the present application, physical layer topology information and disk orders of various types of hard disks carried by a server are respectively obtained, then overall topology information corresponding to the various types of hard disks is generated at a control layer based on the physical layer topology information, the disk orders and a preset hard disk type arrangement order, and when any hard disk viewing command is obtained, the overall topology information is returned so as to display the types and the disk orders of the hard disks carried by the server on a corresponding interface in the preset hard disk type arrangement order. That is, the embodiment of the present application generates the overall topology information of each type of hard disk at the control layer based on the physical layer topology information and the disk order of each type of hard disk carried by the server, so that when any kind of hard disk viewing command is obtained, the overall topology information is returned, the order of multiple types of hard disks can be unified, and thus, the hard disks can be displayed according to the unified order in different hard disk viewing modes.
The hard disk information obtaining module 11 is specifically configured to obtain physical layer topology information and a disk order of the NVME hard disk from the CPU through an I2C or LPC bus; acquiring physical layer topology information and disk sequence of the SAS/SATA hard disk from the RAID or SAS chip through an I2C bus; the SAS/SATA hard disk comprises a solid state disk and a mechanical hard disk.
Further, the device further comprises a preset hard disk type arrangement sequence acquisition module, configured to acquire a hard disk type arrangement sequence sent by the user terminal, to obtain the preset hard disk type arrangement sequence, or read a default hard disk type arrangement sequence, to obtain the preset hard disk type arrangement sequence.
The hard disk information obtaining module 11 is specifically configured to obtain physical layer topology information and disk sequences of various types of hard disks loaded by a server at regular time;
correspondingly, the overall topology information generating module 12 is specifically configured to generate, in real time, the overall topology information corresponding to each type of hard disk at the control layer based on the physical layer topology information, the disk order, and the preset hard disk type arrangement order.
Further, the apparatus further comprises:
the fault information acquisition module is used for acquiring fault information of various types of hard disks carried by the server in real time;
and the fault information reporting module is used for reporting the fault information in real time.
In a specific embodiment, the failure information obtaining module is specifically configured to obtain failure information of the NVME hard disk from the CPU through I2C or an LPC bus; and acquiring the fault information of the SAS/SATA hard disk from the RAID or SAS chip through an I2C bus.
Further, the apparatus further comprises: the virtual partition module is used for partitioning the hard disk carried by the server based on the overall topology information to obtain a plurality of virtual partitions; and providing storage service for different services based on different virtual partitions.
Referring to fig. 5, an embodiment of the present application discloses an electronic device 20, which includes a processor 21 and a memory 22; wherein, the memory 22 is used for saving computer programs; the processor 21 is configured to execute the computer program and the hard disk display method disclosed in the foregoing embodiment.
For the specific process of the hard disk display method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
The memory 22 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, and the storage mode may be a transient storage mode or a permanent storage mode.
In addition, the electronic device 20 further includes a power supply 23, a communication interface 24, an input-output interface 25, and a communication bus 26; the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to a specific application requirement, which is not specifically limited herein.
Further, an embodiment of the present application further discloses a computer-readable storage medium for storing a computer program, wherein the computer program is executed by a processor to implement the hard disk display method disclosed in the foregoing embodiment.
For the specific process of the hard disk display method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and details are not repeated here.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above detailed description is given to a hard disk display method, apparatus, device and medium provided by the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A hard disk display method is characterized by comprising the following steps:
respectively acquiring physical layer topological information and disk sequences of various types of hard disks carried by a server;
generating overall topology information corresponding to each type of hard disk in a control layer based on the physical layer topology information, the disk sequence and a preset hard disk type arrangement sequence;
and when any hard disk viewing command is acquired, returning the overall topological information to display the type and the disk sequence of the hard disks carried by the server on a corresponding interface according to the preset hard disk type arrangement sequence.
2. The method for displaying the hard disk according to claim 1, wherein the respectively obtaining the physical layer topology information and the disk order of each type of hard disk loaded on the server comprises:
acquiring physical layer topology information and disk order of the NVME hard disk from the CPU through an I2C or LPC bus;
acquiring physical layer topology information and disk sequence of the SAS/SATA hard disk from the RAID or SAS chip through an I2C bus; the SAS/SATA hard disk comprises a solid state disk and a mechanical hard disk.
3. The method according to claim 1, wherein before generating the overall topology information corresponding to each type of hard disk at the control layer based on the topology information of the physical layer, the disk order, and the preset hard disk type arrangement order, the method further comprises:
acquiring the hard disk type arrangement sequence sent by a user terminal to obtain a preset hard disk type arrangement sequence,
or reading the default hard disk type arrangement sequence to obtain the preset hard disk type arrangement sequence.
4. The method for displaying the hard disk according to claim 1, wherein the respectively obtaining the physical layer topology information and the disk order of each type of hard disk loaded on the server comprises:
respectively acquiring physical layer topology information and disk sequences of various types of hard disks carried by a server at regular time;
correspondingly, generating the overall topology information corresponding to each type of hard disk in the control layer based on the physical layer topology information, the disk sequence and the preset hard disk type arrangement sequence, including:
and generating total topology information corresponding to each type of hard disk in real time at a control layer based on the physical layer topology information, the disk sequence and a preset hard disk type arrangement sequence.
5. The hard disk display method according to claim 1, further comprising:
and acquiring fault information of various types of hard disks carried by the server in real time, and reporting the fault information in real time.
6. The method for displaying the hard disk according to claim 5, wherein the obtaining of the fault information of each type of hard disk loaded on the server in real time comprises:
acquiring the fault information of the NVME hard disk from the CPU through an I2C or LPC bus;
and acquiring the fault information of the SAS/SATA hard disk from the RAID or SAS chip through an I2C bus.
7. The hard disk display method according to any one of claims 1 to 6, further comprising:
partitioning the hard disk carried by the server based on the overall topological information to obtain a plurality of virtual partitions;
and providing storage service for different services based on different virtual partitions.
8. A hard disk display device, comprising:
the hard disk information acquisition module is used for respectively acquiring physical layer topology information and disk sequences of various types of hard disks carried by the server;
the overall topology information generating module is used for generating overall topology information corresponding to each type of hard disk in the control layer based on the physical layer topology information, the disk sequence and the preset hard disk type arrangement sequence;
and the overall topology information returning module is used for returning the overall topology information when any hard disk viewing command is acquired, so that the type and the disk sequence of the hard disks carried by the server are displayed on a corresponding interface according to the preset hard disk type arrangement sequence.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the hard disk display method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program which, when executed by a processor, implements the hard disk display method according to any one of claims 1 to 7.
CN202111555226.4A 2021-12-17 2021-12-17 Hard disk display method, device, equipment and medium Pending CN114238019A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111555226.4A CN114238019A (en) 2021-12-17 2021-12-17 Hard disk display method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111555226.4A CN114238019A (en) 2021-12-17 2021-12-17 Hard disk display method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114238019A true CN114238019A (en) 2022-03-25

Family

ID=80758610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111555226.4A Pending CN114238019A (en) 2021-12-17 2021-12-17 Hard disk display method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114238019A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816887A (en) * 2022-05-31 2022-07-29 苏州浪潮智能科技有限公司 Method, system, equipment and medium for checking topology setting of hard disk backboard of server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816887A (en) * 2022-05-31 2022-07-29 苏州浪潮智能科技有限公司 Method, system, equipment and medium for checking topology setting of hard disk backboard of server
CN114816887B (en) * 2022-05-31 2024-06-28 苏州浪潮智能科技有限公司 Method, system, equipment and medium for checking server hard disk backboard topology setting

Similar Documents

Publication Publication Date Title
CN109683696A (en) Fault of server power supply detection system, method, apparatus, equipment and medium
US8380757B1 (en) Techniques for providing a consolidated system configuration view using database change tracking and configuration files
CN109189627B (en) Hard disk fault monitoring and detecting method, device, terminal and storage medium
CN113126887A (en) Method, electronic device and computer program product for reconstructing a disk array
CN103176913B (en) Hard disk method for mapping dynamically and the server applying it
US11256521B2 (en) Systems and methods for evaluating and updating deprecated products
US8856441B2 (en) Dynamic hard disk mapping method and server using the same
JP2019175424A (en) Method and system for checking error of cable
CN112181942A (en) Time sequence database system and data processing method and device
CN115145733A (en) Resource allocation method, device, server and system
CN114238019A (en) Hard disk display method, device, equipment and medium
CN110780821A (en) Optimization method and device of distributed storage system, server and storage medium
CN114064435A (en) Database test method, device, medium and electronic equipment
CN111694684A (en) Abnormal construction method and device of storage equipment, electronic equipment and storage medium
US20210109672A1 (en) Apparatus configured to create extended configuration proposal of storage system including multiple notes
CN116595050A (en) RAID card control method and device
US8700832B1 (en) Automated addition of file based hardware and file based access services in a data storage system
US11126486B2 (en) Prediction of power shutdown and outage incidents
CN104394232A (en) Independent management and concentrated management method of cloud equipment
CN113900718B (en) Decoupling method, system and device for BMC and BIOS asset information
US11809893B2 (en) Systems and methods for collapsing resources used in cloud deployments
CN114020214A (en) Storage cluster capacity expansion method and device, electronic equipment and readable storage medium
CN110703988B (en) Storage pool creating method, system, terminal and storage medium for distributed storage
US9535977B1 (en) Object building for an aggregate object class request
CN111752790A (en) Hard disk state monitoring system and hard disk state monitoring method

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