Disk information display methods and servers
By generating a physical view by acquiring disk group and hardware information, the problem of unclear disk slots in virtual resource pool management is solved, enabling intuitive management of disk groups and reducing business failures.
Patent Information
- Application Number
- CN202310082426.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2023-01-09
- Filing Date
- 2023-02-01
- Publication Date
- 2026-11-17
- Estimated Expiration
- 2043-02-01
AI Technical Summary
In a storage-compute separation architecture, the management of virtual resource pools and disks on servers are independent. It is difficult to know which slots on the server the disks that form virtual resource pools are located on, and which disks make up a disk group, making it inconvenient to operate and manage virtual resource pools.
By acquiring disk group information and disk hardware information, a physical view is generated, displaying the disk information corresponding to the slot area and slot, including slot, disk group, health status, media type, capacity, etc., which facilitates disk management by operation and maintenance personnel.
This allows maintenance personnel to intuitively see the slots where disks are located in a disk group, avoiding incorrect insertion and removal, optimizing disk group management, and reducing the risk of business failures.
Smart Images

Figure CN116257316B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a disk information display method and server. Background Technology
[0002] With the development of communication technology, computing systems employing a compute-decentralization architecture have become possible. In this architecture, data is stored on storage devices independent of the computing devices, and the computing devices execute business logic by accessing the data in the storage devices. Based on this architecture, cloud service providers can offer data storage services. Users of these services can store their data on the storage devices provided by the cloud service provider over the network, thereby reducing their data storage costs.
[0003] Typically, data storage is provided externally through disks on multiple servers. These disks form multiple disk groups, and these disk groups on multiple servers form a virtual resource pool for unified management of storage resources across the servers. Currently, the management of the virtual resource pool and the disks on the servers are independent. It is difficult to know which slots the disks forming the virtual resource pool are located on, or which disks make up a disk group, making the operation and maintenance of the virtual resource pool inconvenient. Summary of the Invention
[0004] This application provides a disk information display method and server, which can facilitate users in managing disks.
[0005] In a first aspect, a method for displaying disk information is provided, the method comprising: acquiring disk group information and disk hardware information, wherein the disk group information includes at least one disk group, each disk group includes multiple disks, and the disk hardware information includes the slots where the multiple disks are located; obtaining disk information corresponding to each slot based on the disk group information and the disk hardware information; displaying a physical view on a display page, the physical view including multiple slot areas, the slot areas corresponding to the slots; and, when at least one slot area is selected, displaying target disk information corresponding to the selected slot area on the display page.
[0006] In one possible implementation, the disk group information is obtained through an in-band processor, and / or the disk hardware information is obtained through a baseboard management controller.
[0007] In one possible implementation, the disk information includes one or more of the following: the slot where the disk is located, the disk group to which the disk belongs, the health status of the disk, the media type, capacity, serial number, model, interface type, or manufacturer.
[0008] In one possible implementation, the method further includes: displaying a disk identifier in the slot area, the disk identifier representing the disk type of the disk in the slot corresponding to the slot area; wherein the disk type is a solid-state drive or a hard disk; and / or, the disk type is a capacity disk or a cache disk.
[0009] In one possible implementation, the physical view also includes empty slot regions corresponding to empty slots, the empty slot regions being labeled differently from the slot regions.
[0010] In one possible implementation, the method further includes: when the empty slot area is selected, displaying a prompt message on the display page, the prompt message indicating that the slot corresponding to the empty slot area is an empty slot, and / or the empty slot area cannot be selected.
[0011] In one possible implementation, the slot areas corresponding to different disks in the same disk group have the same color, while the slot areas corresponding to disks in different disk groups have different colors.
[0012] In one possible implementation, the display page includes a first display area and a second display area, the physical view is located in the first display area, and the target disk information is located in the second display area.
[0013] In one possible implementation, the location of the slot area in the physical view corresponds to the physical location of the slot.
[0014] Secondly, a server is provided, comprising: multiple disks, an in-band processor, an out-of-band baseboard management controller, and a display; the in-band processor is used to acquire disk group information, the disk group information including at least one disk group, and each disk group including multiple disks; the out-of-band baseboard management controller is used to acquire disk hardware information, the disk hardware information including slots where the multiple disks are located; the display is used to display a physical view on a display page, the physical view including multiple slot areas, the slot areas corresponding to the slots; when at least one slot area is selected, target disk information corresponding to the selected slot area is displayed on the display page.
[0015] The disk information display method and server provided in this application embodiment can obtain disk group information and disk hardware information, and display the slot area of the corresponding disk slot based on the disk group information and disk hardware information. When the user clicks on the slot area, the disk information in the slot corresponding to the clicked slot area can be displayed, which facilitates the operation and maintenance personnel to manage the disks on the server. Attached Figure Description
[0016] Figure 1 This application provides a schematic diagram of the structure of a computing system according to an embodiment of the present application.
[0017] Figure 2 A schematic diagram of the software structure of a management platform provided in an embodiment of this application;
[0018] Figure 3 A flowchart illustrating a disk information display method provided in this application embodiment;
[0019] Figure 4A This is a schematic diagram of a disk information display interface provided in an embodiment of this application;
[0020] Figure 4B This is a schematic diagram of a disk information display interface provided in an embodiment of this application;
[0021] Figure 4C This is a schematic diagram of a disk information display interface provided in an embodiment of this application;
[0022] Figure 5 A flowchart illustrating a disk information display method provided in this application embodiment;
[0023] Figure 6 A flowchart illustrating a disk information display method provided in this application embodiment;
[0024] Figure 7 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation
[0025] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them.
[0026] In the description of the embodiments of this application, "one embodiment" or "some embodiments" means that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of the embodiments of this application, do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.
[0027] In the description of the embodiments of this application, unless otherwise stated, " / " means "or", for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more.
[0028] In the description of the embodiments of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0029] Storage networking technology allows the storage resources of multiple servers to be virtualized, forming a virtual resource pool. A common storage networking technology is Virtual Storage Area Networking (vSAN). vSAN is a storage networking technology developed based on the vSphere kernel and employing a scalable distributed storage architecture. In vSAN, ESXi is installed on the servers. ESXi is a bare-metal management system that can be directly installed on physical servers. It acts as the operating system (OS) of the physical servers, dividing the disks on the physical server into multiple disk groups under the management of the vSAN technology. Each disk group includes a cache disk and at least one capacity disk. The cache disk is used to cache data, and the capacity disk is used for persistent data storage. The disk groups on multiple servers are uniformly controlled and managed in vSAN, forming a virtual resource pool.
[0030] The management component of vSAN, known as vCenter, is used by operations and maintenance personnel to manage virtual resource pools. This component focuses on logical disk information, such as the number of disks in a disk group and their capacity, but not on hardware information, such as the slots where the disks reside. Therefore, it is inconvenient for operations and maintenance personnel to know which server slots the disks forming the virtual resource pool are located in, or which disks make up a disk group, hindering the operation and management of the virtual resource pool.
[0031] This application provides a disk information display method that can obtain the correspondence between disk groups and the slots of disks within those groups. It can also display on a monitor which slots contain disks belonging to the same disk group, allowing maintenance personnel to intuitively see the slots where disks in a disk group are located, facilitating disk management on storage devices. For example, when plugging or unplugging disks, it avoids simultaneously plugging or unplugging all disks in a disk group, preventing disk failures and service outages.
[0032] For a disk group, the monitor can distinguish between the capacity disks and cache disks within the group, further facilitating management for operations and maintenance personnel. For example, when replacing disks, cache disks can be replaced with higher-performance disks first, reducing the latency of data processing for the disk group.
[0033] Next, the disk information display method provided in the embodiments of this application will be described.
[0034] Figure 1 A computing system is shown that can be used to implement the disk information display method provided in the embodiments of this application. See also... Figure 1 The computing system includes a server 100, a management platform 200, and a monitor 300.
[0035] Server 100 is a hardware device with data storage capabilities. For example... Figure 1 As shown, server 100 may include multiple disks, in-band processors, and out-of-band baseboard management controllers (BMCs).
[0036] In some embodiments, all of the disks may be solid-state drives (SSDs). In some embodiments, some of the disks may be fixed-state drives (SSDs) and others may be hard disk drives (HDDs), wherein the number of SSDs is at least two.
[0037] like Figure 1As shown, the multiple disks can be divided into at least two disk groups, such as disk group 110 and disk group 120. Each disk group has disks with two functional roles; that is, one disk in the disk group performs one of two functional roles: a cache disk and a capacity disk. In other words, a disk group includes at least one cache disk and at least one capacity disk. The cache disk is used to cache data; for example, data to be stored can first be cached on the cache disk and then stored on one or more capacity disks. The capacity disk is used for persistent data storage. The cache disk has high requirements for data read operations, and solid-state drives (SSDs) are typically used as cache disks. The capacity disk can be either an SSD or a hard disk drive (HDD).
[0038] The in-band processor can run the operating system of server 100. In some embodiments, the in-band processor can be a central processing unit (CPU). The operating system can be an operating system provided by a storage networking technology, such as ESXi for vSAN. Under the instruction of management component 220 in management platform 200, the operating system can divide multiple disks in server 100 into at least two disk groups, as well as a management disk group. The operating system and management component of server 100 belong to the same storage networking technology. For example, the operating system is ESXi for vSAN, and the management component 220 is vCenter for vSAN.
[0039] The operating system running on the in-band processor of server 100 is used to partition and manage the disk groups of server 100. Therefore, the in-band processor can obtain disk group information. Disk group information includes the number of disk groups in server 100, the disks included in each disk group, and the disks used as cache disks and the disks used as capacity disks. Disk group information may also include the interface type and disk serial number of each disk in the disk group. The disk serial number is a unique identifier set at the factory to identify the disk.
[0040] The BMC runs software programs for performing hardware management functions, such as an intelligent baseboard management controller (iBMC) system. The BMC of server 100 manages the hardware of server 100, for example, controlling the power supply connected to the slot where the disk is located, and supplying power to the disk. The BMC of server 100 can obtain disk hardware information of server 100. Disk hardware information includes the slot where the disk is located. In some embodiments, disk hardware information may also include information such as the disk manufacturer, disk capacity, disk serial number, media type, disk model, and health status. The media type refers to the type of storage media used in the disk, such as SSD or HDD. The disk health status includes information on whether the disk has failed and the type of failure (e.g., power instability).
[0041] In some embodiments, the BMC also stores an image of the server 100's chassis. The chassis has multiple slots, and the chassis image includes images of these slots. The slots are used to insert disks; that is, the server 100's disks are inserted into the slots. Each slot can hold one disk. Alternatively, for ease of description, an image including images of the slots can also be described as an image including slots.
[0042] Continue reading Figure 1 The management component 220 in the management platform 200 is an in-band management component that can directly interact with the in-band processor of the server 100, for example, to obtain disk group information of the server 100 from the in-band processor of the server 100.
[0043] In some embodiments, such as Figure 2 As shown, management component 220 may include a client and a server. The server has an interface connected to an in-band processor, which can be used to obtain disk group information from the in-band processor. The server also has an interface connected to management component 210, which can be used to send disk group information to management component 210. The client has an interface connected to display 300, which can send information to be displayed to display 300. Display 300 can then display the information to be displayed.
[0044] The management component 210 in the management platform 200 is an out-of-band management component that can directly interact with the BMC of the storage device, for example, to obtain disk hardware information and chassis images from the BMC of the server 100.
[0045] In some embodiments, such as Figure 2As shown, management component 210 includes an out-of-band interface unit, an information fusion unit, and a display unit. The out-of-band interface unit is used to obtain disk hardware information and chassis images from the BMC, and send the obtained disk hardware information and chassis images to the information fusion unit. The in-band interface unit is used to obtain disk group information from the server of management component 220, and send the obtained disk group information to the information fusion unit.
[0046] The information fusion unit can merge disk group information and disk hardware information to obtain details such as the slot, manufacturer, and capacity of the disks within the disk group. In other words, it can obtain the disk group to which the disk in the slot belongs, its functional role within the disk group (i.e., whether it is a cache disk or a capacity disk), manufacturer, media type, model, capacity, and health status. The information fusion unit can associate a slot with the disk group to which the disk in that slot belongs, associate a slot with the functional role of the disk in that slot within the disk group, and associate a slot with other information about the disk in that slot (such as capacity, manufacturer, fault information, etc.), etc., to obtain fused information.
[0047] The information fusion unit can send fused information to the physical view generation module, which can then generate a physical view based on the fused information. This physical view includes information such as the disk group to which the disk in the corresponding slot belongs and its functional role within the disk group. The information fusion unit can also send the physical view to the display unit, which can invoke the client of the management component 220 to send the physical view as information to be displayed to the monitor 300. Further details will be provided below and will not be repeated here.
[0048] Management components 220 and 210 can be implemented as virtual computing instances, such as virtual machines (VMs) or containers. Management components 220 and 210 can run on the same host or on different hosts. In some embodiments, management components 220 and / or 210 can run on server 100.
[0049] The foregoing example illustrates the computing system provided in the embodiments of this application. Next, using the computing system described above, the execution flow of the disk information display method provided in the embodiments of this application will be illustrated.
[0050] See Figure 3The management component 210 can execute step 301 to obtain disk hardware information from the BMC of the server 100. As described above, the disk hardware information includes the slot where the disk is located. In some embodiments, the disk hardware information may include a mapping table A1, which includes a mapping relationship between disk identifiers and slot identifiers, wherein the slot where the disk identified by the disk identifier is located is mapped to the slot identified by the slot identifier of the disk identifier. In one example, the disk identifier can be a disk serial number. The slot identifier can be a slot number. The multiple slots of the server 100 are arranged in a slot array according to a certain method or order, and the slot number indicates the position of the slot in the slot array, thus allowing the specific slot to be located in the slot array by its position.
[0051] In some embodiments, the disk hardware information may further include information such as the disk manufacturer, disk capacity, media type, disk model, and health status. The mapping table A1 included in the disk hardware information contains a mapping relationship between the disk identifier and information such as the disk manufacturer, disk capacity, health status, disk model, and media type. Thus, the mapping table A1 can record information such as the manufacturer, capacity, media type, model, and health status of the disk identified by the disk identifier.
[0052] In some embodiments, the management component 210 may also obtain an image of the server 100's chassis from the server 100's BMC.
[0053] Management component 220 can perform step 302, obtaining disk group information from the in-band processor of server 100. The disk group information includes the number of disk groups in server 100, the disks included in each disk group, and the disks used as cache disks and the disks used as capacity disks. The disk group information may also include the interface type of each disk in the disk group.
[0054] In some embodiments, the disk group information includes a mapping table A2, which includes a mapping relationship between disk group identifiers and disk identifiers. The disks within the disks identified by the disk group identifier are mapped to the disks identified by the disk identifier of the disk group identifier. Mapping table A2 also includes a mapping relationship between disk identifiers and function role identifiers. Function role identifiers include capacity disk identifiers and cache disk identifiers. The function role of the disk identified by the disk identifier is the function role identified by the function role identifier mapped to that disk identifier. Mapping table A2 also includes a mapping relationship between disk identifiers and interface type identifiers. The interface type of the disk identified by the disk identifier is the interface type identified by the interface type identifier mapped to that disk identifier.
[0055] After obtaining the disk group information, management component 220 can execute step 303 to send the disk group information to management component 210.
[0056] After obtaining the disk hardware information and disk group information, management component 210 can execute step 304 to determine, based on the disk hardware information and disk group information, at least the slot where each disk in the disk group is located, obtain the disk corresponding to the slot, and then obtain the disk information of the disk corresponding to the slot. The disk information of the disk corresponding to the slot can also be called slot information. This slot information records or represents the slot where the disk in the disk group is located.
[0057] Specifically, as mentioned above, disk hardware information includes the slot where the disk is located. Disk group information includes the disks included in the disk group, that is, the disk group to which the disks belong. Therefore, by using the disk hardware information and disk group information, the slot where the disks in the disk group are located can be obtained.
[0058] More specifically, as described above, the disk hardware information includes a mapping table A1 that records the mapping relationship between disk identifiers and slot identifiers, and the disk group information includes a mapping table A2 that records the mapping relationship between disk identifiers and disk group identifiers. Through mapping tables A1 and A2, the mapping relationship between disk group identifiers, disk identifiers, and slot identifiers is obtained, thereby determining the slot where the disk in the disk group is located.
[0059] In some embodiments, disk information may further include the functional role of the disk. As described above, mapping table 2 also records the mapping relationship between disk identifiers and functional role identifiers. Through mapping tables A2 and A1, the mapping relationship between slot identifiers, disk identifiers, and functional role identifiers can also be obtained, thereby obtaining the functional role of the disk in the slot within the disk group, i.e., whether it is used as a capacity disk or a cache disk.
[0060] In some embodiments, disk information may further include information such as the disk manufacturer, disk capacity, disk media type, disk model, and health status. As mentioned above, mapping table A1 also records information such as the disk manufacturer, disk capacity, disk media type, disk model, and health status of the disk identified by the disk identifier, and mapping table A2 also includes the mapping relationship between disk identifiers and interface type identifiers. Thus, through mapping tables A1 and A2, information such as the disk manufacturer, disk capacity, disk media type, disk model, health status, and interface type of the disk in the slot can be obtained.
[0061] Management component 210 can execute step 305, generating a physical view based on the disk information corresponding to the slot. As described above, the disk information corresponding to the slot records or represents the slot where the disk in the disk group is located, and can generate a physical view that displays the disk group to which the disk belongs and the slot where the disk is located. For ease of description, the disk group to which the disk in the slot belongs can be referred to as the disk group corresponding to that slot.
[0062] In the physical view, each slot corresponds to a slot area. To facilitate a more intuitive view for users, the position of the slot area corresponds to the physical location of the slot. Different disk groups correspond to different slot areas with different labels. Color can be used as a label for a disk group; in this case, different slot area labels mean different colors. Patterns can also be used as labels for disk groups; in this case, different slot area labels mean different patterns. For example,... Figure 4A As shown, the slot area corresponding to the slot where the disk is located in disk group 110 is marked differently from the slot area corresponding to the slot where the disk is located in disk group 120.
[0063] Within the same disk group, the slot areas corresponding to different disks in the same slot are labeled with the same or similar colors. For example, when colors are used to mark different disk groups, the slot areas corresponding to different disks in a disk group have the same color.
[0064] The corresponding slot area can be displayed at the corresponding location of the slot to obtain a physical view. For example, the slot area can be transparent, and the corresponding slot area can be displayed over the slot.
[0065] A disk group's corresponding slot area can also include different sub-icons, each representing a different disk type. For example, such as... Figure 4B As shown, disk type refers to the functional role of the disk; one sub-icon represents a capacity disk, and another sub-icon represents a cache disk. For example, disk types are divided into mechanical hard drives and solid-state drives (SSDs). The sub-icon in the slot area indicates whether the disk in the corresponding slot is a mechanical hard drive or an SSD.
[0066] It's understandable that server 100 has multiple slots, some of which may be empty. An empty slot is one where no disk is installed or inserted. The markings for the slot area corresponding to an empty slot are different from those for the slot area corresponding to a non-empty slot, to help users partition which slots are empty and which are not. A non-empty slot is one where a disk is installed or inserted. The slot area corresponding to an empty slot can also be called the empty slot area.
[0067] In some embodiments, as described above, the management component 210 can acquire an image of the chassis enclosure including the slots. In step 305, a physical view can be generated based on the chassis enclosure image. Specifically, the slot area corresponding to the disk group corresponding to the slot can be added to or overlaid on the position corresponding to the slot in the chassis enclosure image to obtain the physical view.
[0068] In some embodiments, in step 305, information such as the slot identifier (e.g., slot number), the manufacturer of the disk in the slot, the disk capacity, the disk media type, the disk model, health status, interface type, the disk serial number, and the disk group to which the disk belongs (specifically, the disk group identifier) can be associated with the slot area corresponding to the slot, so that when a selection operation is received on the slot area, the manufacturer of the disk, the disk capacity, the disk media type, the disk model, health status, interface type, the disk serial number, and the disk group to which the disk belongs can be displayed.
[0069] Continue reading Figure 3 Management component 210 can execute step 306, sending the physical view to display 300 for display. In some embodiments, as described above, management component 210 can first send the physical view to a client of management component 200, and then the client can send the physical view to display 300. Thus, management component 210 can send the physical view to display 300 via the communication interface between the client of management component 220 and display 300, eliminating the need for a dedicated communication interface to be developed between management component 210 and display 300.
[0070] The display 300 can perform step 307, displaying a physical view. For example, the physical view displayed by the display 300 may be as follows: Figure 4A As shown. In one example, as Figure 4A As shown, the display 300 can display a display page 400, which includes a display area 410 (such as a first display area). The physical view can be displayed on the display area 410, meaning the physical view is located within the display area 410.
[0071] In some embodiments, see Figure 4B The monitor 300 can obtain the position of the mouse pointer on the displayed physical view. When the mouse pointer is on the slot area corresponding to a certain slot, the slot area can be displayed according to a preset display mode. This display mode can be to increase the brightness of the area around the slot area or to increase the brightness of the slot area itself, so as to remind maintenance personnel that when the mouse pointer is on the slot area, they can initiate operations on the slot area by clicking the mouse.
[0072] In some embodiments, see Figure 4CWhen the display 300 receives an operation targeting a specific slot area, i.e., when the slot area is selected, the display 300 can display target disk information. The target disk refers to the disk in the slot corresponding to the selected slot area, i.e., the disk installed or inserted in the slot corresponding to the selected slot area. Target disk information may include the slot number, serial number, manufacturer, capacity, media type, model, health status, interface type, and disk group to which the disk belongs. For example, when the display 300 receives an operation targeting a slot area, it can generate an operation command and send the command to the management component 210. As described above, in step 305, information such as the slot number, serial number, manufacturer, capacity, media type, model, health status, interface type, and disk group to which the disk belongs can be associated with the slot area. Therefore, the management component 210 can respond to the operation command and send information such as the slot number, disk serial number, disk manufacturer, disk capacity, disk media type, disk model, health status, interface type, and disk group to which the disk belongs to the corresponding slot area to the display 300, so that the display 300 can display information such as the slot number, disk serial number, disk manufacturer, disk capacity, disk media type, disk model, health status, interface type, and disk group to which the disk belongs.
[0073] In one example of this embodiment, such as Figures 4A-4C As shown, the display page 400 of the monitor 300 also includes a display area 420 (such as a second display area). The display area 420 is used to display target disk information. That is, when it is necessary to display target disk information, the monitor 300 displays the target disk information in the display area 420.
[0074] In some embodiments, when a user clicks on an empty slot area, that is, when the user clicks on the slot area corresponding to an empty slot, in other words, when the slot area corresponding to an empty slot is selected, the display 300 can display a prompt message indicating that the slot area corresponding to the slot is an empty slot, that is, no disk is inserted or installed in the slot.
[0075] In some embodiments, empty slot areas cannot be selected. Even if an empty slot area is clicked, it will not be selected. In other words, operations on empty slot areas will not be responded to, i.e., no corresponding operation result will be triggered.
[0076] The disk information display method provided in this application embodiment can obtain disk group information and disk hardware information, and display the slot area of the corresponding disk slot based on the disk group information and disk hardware information. When the user clicks on the slot area, the disk information in the slot corresponding to the clicked slot area can be displayed, which facilitates the operation and maintenance personnel to manage the disks on the server.
[0077] This application also provides a method for displaying disk information, such as... Figure 5 As shown, the method includes the following steps.
[0078] Step 501: Obtain the hardware information of server 100 through the BMC of server 100. The hardware information of server 100 includes the disk hardware information of server 100. Step 502: Extract the disk hardware information of server 100 from the hardware information of server 100.
[0079] Step 503: Obtain storage network information via vCenter. Storage network information refers to disk information at the logical level, including disk group information of server 100. Step 504: Disk group information of server 100 can be obtained from the storage network information.
[0080] In step 505, it can be determined whether the disks in the disk group of server 100 are NVMe disks, that is, whether the disk interface type is NVMe interface.
[0081] If the disk is an NVMe disk, then step 506 is executed to match the slot number from the disk hardware information based on the disk serial number. The matched slot number refers to the slot where the disk is located. Step 507 determines whether a slot number was matched in step 506. If no slot number is matched, then step 508 is executed to parse the slot number according to the NVMe disk format. For example, the slot number can be parsed using the code "physical location: NVMe+Number", where "Number" is the slot number.
[0082] If the disk is not an NVMe disk, proceed to step 509 to parse the slot number according to the format of a non-NVMe disk. For example, the slot number can be parsed using the code "physical location: enclosure 1, slot 1", where "slot 1" is the slot number.
[0083] Thus, the slot number can be obtained through the above method.
[0084] In step 510, the slot number and disk group can be associated to obtain the slot information. Then, in step 511, a physical view can be generated and displayed based on the slot information.
[0085] In this way, the slots and the disk groups in which the disks in the slots are located can be displayed, making it convenient for users to manage the disks.
[0086] This application also provides a method for displaying disk information. For example... Figure 6 As shown, the method includes the following steps.
[0087] Step 601: Obtain disk group information and disk hardware information. The disk group information includes at least one disk group, and each disk group contains multiple disks. The disk hardware information includes the slots where the multiple disks are located. For details, please refer to the above text. Figure 3 The implementation of steps 301, 302, and 303 will not be described in detail here.
[0088] Step 602: Based on the disk group information and the disk hardware information, obtain the disk information corresponding to each slot. For details, please refer to the above description. Figure 3 The implementation of step 304 will not be described in detail here.
[0089] Step 603: Display a physical view on the display page. The physical view contains multiple slot areas, each corresponding to a slot. For details, please refer to the above text. Figure 3 The implementation of steps 305, 306, and 307 will not be described in detail here.
[0090] Step 604: If at least one slot area is selected, display the target disk information corresponding to the selected slot area on the display page. For details, please refer to the above description. Figure 3 The implementation of step 307 will not be repeated here.
[0091] In some embodiments, the disk group information is obtained through an in-band processor, and / or the disk hardware information is obtained through a baseboard management controller. For details, please refer to the above description. Figure 3 The implementation of steps 301, 302, and 303 will not be described in detail here.
[0092] In some embodiments, the disk information includes one or more of the following: the slot where the disk is located, the disk group to which the disk belongs, the health status of the disk, the media type, capacity, serial number, model, interface type, or manufacturer.
[0093] In some embodiments, the method further includes: displaying a disk identifier in the slot area, the disk identifier representing the disk type of the disk in the slot corresponding to the slot area; wherein the disk type is a solid-state drive or a hard disk; or, the disk type is a capacity disk or a cache disk. For details, please refer to the above description. Figure 3 The implementation of steps 305, 306, and 307 will not be described in detail here.
[0094] In some embodiments, the physical view further includes empty slot regions corresponding to empty slots, wherein the empty slot regions and the slot regions are labeled differently. See the above for details. Figure 3 The implementation of steps 305, 306, and 307 will not be described in detail here.
[0095] In one example of this embodiment, the method further includes: when the empty slot area is selected, displaying a prompt message on the display page, the prompt message indicating that the slot corresponding to the empty slot area is an empty slot, and / or that the empty slot area cannot be selected. For details, please refer to the above description. Figure 3 The implementation of steps 305, 306, and 307 will not be described in detail here.
[0096] In some embodiments, the slot areas corresponding to different disks in the same disk group have the same color, while the slot areas corresponding to disks in different disk groups have different colors. For details, please refer to the above description. Figure 3 The implementation of steps 305, 306, and 307 will not be described in detail here.
[0097] In some embodiments, the display page includes a first display area and a second display area, the physical view is located in the first display area, and the target disk information is located in the second display area.
[0098] In some embodiments, in the physical view, the location of the slot area corresponds to the physical location of the slot.
[0099] The disk information display method provided in this application embodiment can obtain disk group information and disk hardware information, and display the slot area of the corresponding disk slot based on the disk group information and disk hardware information. When the user clicks on the slot area, the disk information in the slot corresponding to the clicked slot area can be displayed, which facilitates the operation and maintenance personnel to manage the disks on the server.
[0100] This application also provides a server in its embodiments. For example... Figure 7As shown, the server includes: multiple disks 710, an in-band processor 720, an out-of-band baseboard management controller 730, and a display 740. The in-band processor is used to acquire disk group information, which includes at least one disk group, and each disk group contains multiple disks. The out-of-band baseboard management controller is used to acquire disk hardware information, which includes the slots where the multiple disks are located. The display is used to display a physical view on a display page, which includes multiple slot areas corresponding to the slots. When at least one slot area is selected, the display page displays the target disk information corresponding to the selected slot area.
[0101] The functions of the various components in this server can be further explained in the above text. Figure 3 The method implementation shown is illustrated in the example, and will not be described in detail here.
[0102] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A magnetic disk information display method characterized by comprising: The method includes: Disk group information is obtained through an in-band processor; the disk group information includes at least one disk group, each disk group contains multiple disks, wherein the disk group is formed by dividing physical disks through storage networking technology, and the at least one disk group is used to form a virtual resource pool. The disk hardware information is obtained through the baseboard management controller, and the disk hardware information includes the slots where the disks are located. Based on the disk group information and the disk hardware information, disk information corresponding to each slot is obtained. The disk information includes the disk group to which the disk in the slot belongs. The disk hardware information includes a mapping relationship between disk identifiers and slot identifiers, and the disk group information includes a mapping relationship between disk identifiers and disk group identifiers. Based on the mapping relationship between disk identifiers and slot identifiers and the mapping relationship between disk identifiers and disk group identifiers, the mapping relationship between disk group identifiers, disk identifiers, and slot identifiers is obtained, thereby obtaining the slot where the disk in the disk group is located. A physical view is displayed on the display page, which contains multiple slot areas corresponding to the slots. When at least one slot area is selected, the target disk information corresponding to the selected slot area is displayed on the display page.
2. The method of claim 1, wherein, The disk information includes one or more of the following: the slot where the disk is located, the disk group to which the disk belongs, the health status of the disk, the media type, capacity, serial number, model, interface type, or manufacturer.
3. The method according to any one of claims 1 or 2, characterized in that, The method further includes: A disk identifier is displayed in the slot area, and the disk identifier is used to represent the disk type of the disk in the slot corresponding to the slot area; Wherein, the disk type is a solid-state drive or a mechanical hard drive; and / or, the disk type is a capacity disk or a cache disk.
4. The method according to any one of claims 1-2, characterized in that, The physical view also includes empty slot areas corresponding to empty slots, and the empty slot areas and the slot areas are labeled differently.
5. The method according to claim 4, characterized in that, The method further includes: when the empty slot area is selected, displaying a prompt message on the display page, the prompt message indicating that the slot corresponding to the empty slot area is an empty slot, and / or that the empty slot area cannot be selected.
6. The method according to any one of claims 1-2, characterized in that, Within the same disk group, the slot areas corresponding to different disks in the same slot have the same color, while the slot areas corresponding to disks in different disk groups have different colors.
7. The method according to claim 1, characterized in that, The display page includes a first display area and a second display area, the physical view is located in the first display area, and the target disk information is located in the second display area.
8. The method according to claim 1, characterized in that, In the physical view, the location of the slot area corresponds to the physical location of the slot.
9. A server, characterized in that, include: Multiple disks, with an internal processor, with an external baseboard management controller, and a display; The in-band processor is used to acquire disk group information, which includes at least one disk group and each disk group contains multiple disks; wherein the disk group is formed by dividing physical disks through storage networking technology, and the at least one disk group is used to form a virtual resource pool. The out-of-band baseboard management controller is used to acquire disk hardware information, which includes multiple slots where the disks are located. The in-band processor is used to obtain disk information corresponding to each slot based on the disk group information and the disk hardware information. The disk information includes the disk group to which the disk in the slot belongs. The disk hardware information includes a mapping relationship between disk identifiers and slot identifiers, and the disk group information includes a mapping relationship between disk identifiers and disk group identifiers. Based on the mapping relationship between disk identifiers and slot identifiers and the mapping relationship between disk identifiers and disk group identifiers, the processor obtains a mapping relationship between disk group identifiers, disk identifiers, and slot identifiers, thereby obtaining the slot where the disk in the disk group is located. The display is used to show a physical view on a display page, the physical view including multiple slot areas corresponding to slots; when at least one slot area is selected, the target disk information corresponding to the selected slot area is displayed on the display page.
Citation Information
Patent Citations
Disk information query method, device and equipment, and medium
CN112684980A
Disk fault notification method and device and computer readable medium
CN113094201A
