Method, device, storage medium and electronic equipment for managing disk volume information

By constructing a coordinate system to display the attribute information of disk volumes, the problem of low disk management efficiency caused by the inability to visualize the data in existing technologies is solved, and convenient disk management and querying are achieved.

CN115718570BActive Publication Date: 2026-03-31INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-16
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing technologies cannot visualize the attribute information of disk volumes, resulting in low disk management efficiency.

Method used

By obtaining the attribute information of the disk volume, determining its corresponding disk partition, constructing a coordinate system and displaying the volume label within it, the attribute information can be managed visually.

Benefits of technology

It improves the efficiency of disk management, saves time and labor costs, and makes it easier for non-professionals to query disk volume information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115718570B_ABST
    Figure CN115718570B_ABST
Patent Text Reader

Abstract

This invention discloses a method, apparatus, storage medium, and electronic device for managing disk volume information, relating to the field of computer technology. The method includes: acquiring attribute information of at least one disk volume, wherein the attribute information includes at least a volume label and an address; determining a disk partition corresponding to the at least one disk volume based on the address, wherein the disk partition is composed of multiple disk volumes; constructing a first coordinate system based on the disk partition, and displaying the volume label in the first coordinate system to obtain a display result; and managing the attribute information based on the display result. This invention solves the technical problem of low disk management efficiency caused by the inability to visually display disk volume attribute information in existing technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and more specifically, to a method, apparatus, storage medium, and electronic device for managing disk volume information. Background Technology

[0002] Currently, host systems utilize disk logicalization technology to logically transform physical disks into logical storage units—disk volumes—that can be used by the operating system. This improves the host's ability to access disks concurrently while ensuring that performance is not affected by the parallel access. Typically, a host environment contains tens of thousands of disk volumes, which are divided into different storage groups (SGs) for easier management. However, the sheer volume of disk volume attributes (e.g., address, capacity) still makes disk management challenging. Currently, existing technologies cannot visualize disk volume attribute information, resulting in low disk management efficiency.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This invention provides a method, apparatus, storage medium, and electronic device for managing disk volume information, to at least solve the technical problem of low disk management efficiency caused by the inability to visualize disk volume attribute information in the prior art.

[0005] According to one aspect of the present invention, a method for managing disk volume information is provided, comprising: acquiring attribute information of at least one disk volume, wherein the attribute information includes at least a volume label and an address; determining a disk partition corresponding to the at least one disk volume based on the address, wherein the disk partition is composed of multiple disk volumes; constructing a first coordinate system based on the disk partition, and displaying the volume label in the first coordinate system to obtain a display result; and managing the attribute information based on the display result.

[0006] Furthermore, the method for managing disk volume information also includes: converting the address format to obtain a first address; obtaining the number of disk volumes contained in the disk partition to obtain a first value; and performing a modulo operation on the first value and the first address to obtain the disk partition.

[0007] Furthermore, the method for managing disk volume information also includes: performing a modulo operation on the first value and the first address to obtain the partition offset of the disk partition.

[0008] Furthermore, the method for managing disk volume information also includes: constructing a first coordinate system based on disk partitions and partition offsets, wherein the vertical axis of the first coordinate system is the disk partition and the horizontal axis of the first coordinate system is the partition offset.

[0009] Furthermore, the method for managing disk volume information also includes: responding to a volume label selection instruction to determine a target volume label from at least one volume label; determining that the capacity information and volume group information in the attribute information corresponding to the target volume label are auxiliary information of the target volume label, wherein different volume group information corresponds to different display states; detecting whether the control corresponding to the target volume label has received a trigger instruction and obtaining a detection result; and determining whether to display the auxiliary information based on the detection result.

[0010] Furthermore, the method for managing disk volume information also includes: if a trigger command is detected, a first control command is generated, wherein the first control command is used to determine whether to display supplementary information; if no trigger command is detected, a second control command is generated, wherein the second control command is used to determine whether to display supplementary information.

[0011] Furthermore, the method for managing disk volume information also includes: obtaining disaster recovery information of the disk from the storage database, wherein the disk consists of multiple disk partitions, and the disaster recovery information includes at least the address of the disaster recovery volume, which is used to back up the data stored on the disk; querying the volume address of the current disk volume in the disaster recovery information to obtain the query result; if the volume address of the current disk volume is found in the disaster recovery information, then the current disk volume is determined to be a disaster recovery volume; marking the current disk volume label with disaster recovery information, and displaying the disaster recovery label as supplementary information of the volume label, wherein the display status of the disaster recovery volume is different from that of the disk volume.

[0012] According to another aspect of the present invention, a disk volume information management device is also provided, comprising: an acquisition module, configured to acquire attribute information of at least one disk volume, wherein the attribute information includes at least a volume label and an address; a determination module, configured to determine a disk partition corresponding to at least one disk volume based on the address, wherein the disk partition is composed of multiple disk volumes; a display module, configured to construct a first coordinate system based on the disk partition and display the volume label in the first coordinate system to obtain a display result; and a management module, configured to manage the attribute information based on the display result.

[0013] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described method for managing disk volume information when it is run.

[0014] According to another aspect of the present invention, an electronic device is also provided, the electronic device including one or more processors; a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are configured to run the programs, wherein the programs are configured to execute the above-described disk volume information management method during runtime.

[0015] In this embodiment of the invention, a method for visually displaying the attribute information of disk volumes is adopted. First, the attribute information of at least one disk volume is obtained. Then, based on the address, the disk partition corresponding to the at least one disk volume is determined. Next, a first coordinate system is constructed based on the disk partition, and the volume label is displayed in the first coordinate system to obtain the display result. Then, the attribute information is managed based on the display result. The attribute information includes at least the volume label and the address, and the disk partition consists of multiple disk volumes.

[0016] In the above process, obtaining the disk volume's attribute information provides a data foundation for subsequently determining the disk partition corresponding to the disk volume. Based on the address, the disk partition corresponding to the disk volume can be determined, thus enabling the construction of a first coordinate system based on the disk partition, providing a theoretical basis for displaying the disk volume's attribute information. By displaying the volume label in the first coordinate system, the attribute information is visualized, greatly facilitating storage administrators' disk management work, saving time and manpower costs, and thereby improving the efficiency of disk volume attribute information management. Furthermore, it also allows non-professionals to quickly query disk volume attribute information.

[0017] Therefore, the technical solution of the present invention achieves the purpose of visually displaying the attribute information of disk volumes, thereby improving the technical effect of disk management efficiency and solving the technical problem of low disk management efficiency caused by the inability to visually display disk volume attribute information in the prior art. Attached Figure Description

[0018] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:

[0019] Figure 1 This is a flowchart of an optional disk volume information management method according to an embodiment of the present invention;

[0020] Figure 2 This is a flowchart of an optional label display according to an embodiment of the present invention;

[0021] Figure 3 This is an optional flowchart for displaying the attribute information of a disk volume according to an embodiment of the present invention;

[0022] Figure 4 This is a flowchart of an optional processing storage group SG according to an embodiment of the present invention;

[0023] Figure 5 This is an optional capacity aggregation flowchart according to an embodiment of the present invention;

[0024] Figure 6 This is a flowchart of an optional disaster recovery volume determination and processing according to an embodiment of the present invention;

[0025] Figure 7 This is a schematic diagram of an optional disk volume information management device according to an embodiment of the present invention;

[0026] Figure 8 This is a schematic diagram of an optional electronic device according to an embodiment of the present invention. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] It should be noted that all relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this invention are information and data authorized by the user or fully authorized by all parties. For example, this system has an interface with the relevant user or organization. Before obtaining relevant information, it needs to send an acquisition request to the aforementioned user or organization through the interface, and obtain the relevant information after receiving consent from the aforementioned user or organization.

[0030] Example 1

[0031] According to an embodiment of the present invention, a method embodiment for managing disk volume information is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0032] Figure 1 This is a flowchart of an optional disk volume information management method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:

[0033] Step S101: Obtain attribute information of at least one disk volume, wherein the attribute information includes at least the volume label and address.

[0034] In the above steps, at least one disk volume's attribute information can be obtained through application systems, processors, electronic devices, etc. Optionally, in this embodiment, the disk volume's attribute information can be obtained from the host's performance statistics table (e.g., host report). Optionally, the host can be a mainframe, such as a mainframe manufactured by International Business Machines Corporation (IBM), commonly referred to as an "IBM mainframe." Optionally, the attribute information includes at least the volume label and address, and can also include capacity, volume type, storage group (SG), disaster recovery information, etc. The disk volumes have different capacities, and their capacity changes after being used. Based on capacity, disk volumes can be categorized into types such as 3390-1, 3390-9, 3390-27, and 3390-54. Furthermore, some disk volumes are used as disaster recovery volumes, and the insertion time slice levels differ between disaster recovery volumes. Disaster recovery refers to using existing scientific and technological means and methods to establish reliable emergency response mechanisms in advance to cope with the occurrence of emergencies. Specifically, disaster recovery can be divided into disaster recovery and backup. Disaster recovery is to ensure business continuity, while backup is to ensure data security.

[0035] It should be noted that, in the above process, obtaining the attribute information of the disk volume provides a data foundation for subsequently determining the disk partition corresponding to the disk volume.

[0036] Step S102: Determine at least one disk partition corresponding to a disk volume based on the address, wherein the disk partition is composed of multiple disk volumes.

[0037] In the steps described above, disk partitions are disk control units (CUs), and each disk partition consists of multiple disk volumes. Optionally, addresses are represented in hexadecimal, with a one-to-one correspondence between addresses and disk volumes. Specifically, the host can define the disk CUs and the addresses of the disk volumes within each CU using an Input / Output Definition File (IODF).

[0038] Step S103: Based on the disk partition, construct the first coordinate system and display the volume label in the first coordinate system to obtain the display result.

[0039] In the above steps, the first coordinate system is a Cartesian coordinate system. Optionally, the first coordinate system can be represented by an Excel spreadsheet; for example, rows in the Excel spreadsheet can be used as the x-axis, and columns as the y-axis. Alternatively, the first coordinate system can also be a webpage display, where the webpage can be constructed using computer program code. The webpage construction method can employ widely used methods in this field, which will not be elaborated upon here. The representation of the first coordinate system can be chosen according to the storage administrator's needs and is not limited here.

[0040] Step S104: Manage attribute information based on the display results.

[0041] In the above steps, the attribute information of multiple disk volumes is displayed in the first coordinate system. The display format and status can be customized as needed to facilitate the management of attribute information. Optionally, different colors and shapes can be used to display disk volumes of different disk partitions; for example, multiple disk volumes of CU1 can be displayed in green, and multiple disk volumes of CU2 can be displayed in yellow.

[0042] Based on the scheme defined in steps S101 to S104 above, it can be understood that in this embodiment of the invention, a method for visually displaying the attribute information of disk volumes is adopted. First, the attribute information of at least one disk volume is obtained. Then, based on the address, the disk partition corresponding to at least one disk volume is determined. Then, based on the disk partition, a first coordinate system is constructed, and the volume label is displayed in the first coordinate system to obtain the display result. Then, the attribute information is managed based on the display result. The attribute information includes at least the volume label and the address, and the disk partition consists of multiple disk volumes.

[0043] It's noteworthy that in the above process, obtaining the disk volume's attribute information provides the data foundation for subsequently determining the corresponding disk partitions. Based on the address, the disk partitions corresponding to the disk volume can be identified, allowing the construction of a first coordinate system, which provides the theoretical basis for displaying the disk volume's attribute information. By displaying the volume label in the first coordinate system, the attribute information is visualized, greatly facilitating storage administrators' disk management work, saving time and manpower costs, and thus improving the efficiency of disk volume attribute information management. Furthermore, it also allows non-professionals to quickly query disk volume attribute information.

[0044] Therefore, the technical solution of the present invention achieves the purpose of visually displaying the attribute information of disk volumes, thereby improving the technical effect of disk management efficiency and solving the technical problem of low disk management efficiency caused by the inability to visually display disk volume attribute information in the prior art.

[0045] In one optional embodiment, during the process of determining the disk partition corresponding to at least one disk volume based on the address, the address is format-converted to obtain a first address, then the number of disk volumes contained in the disk partition is obtained to obtain a first value, and then the first value and the first address are moduloed to obtain the disk partition.

[0046] Optionally, the first address is represented in decimal, meaning that address format conversion involves converting the address from hexadecimal to decimal. Optionally, the number of disk volumes contained in each disk partition (CU) is fixed; for example, if each CU contains 10 disk volumes, then the first value is 10.

[0047] Furthermore, a modulo operation is performed on the first value and the first address to obtain the disk partition, that is, the CU to which the disk volume belongs is equal to the first address modulo the first value. Optionally, the number of disk partitions (CUs) contained in each disk is fixed, for example, each disk contains 10 CUs. Figure 2 This is a flowchart of an optional label display according to an embodiment of the present invention, such as... Figure 2 As shown, after calculating the CU to which the disk volume belongs, the disk to which the disk volume belongs is determined by the CU, that is, the disk to which the CU belongs. For example, if the calculated CU is 100, then CU1-CU10 are disk partitions of disk 1, CU11-CU20 are disk partitions of disk 2, and so on. The modulo operation is a widely used method in this field and will not be elaborated here.

[0048] It should be noted that the above process can calculate the CU to which the disk volume belongs, providing a data foundation for the subsequent display of the volume label.

[0049] In one optional embodiment, after performing a modulo operation on the first value and the first address to obtain the disk partition, a modulo operation is performed on the first value and the first address to obtain the partition offset of the disk partition.

[0050] Optionally, the partition offset of the disk partition is the offset within a CU, which is equal to the first address modulo the first value. For example, an offset of 3 within a CU can indicate that the disk volume is the 3rd position within its respective CU. The modulo operation is a widely used method in this field and will not be elaborated upon here.

[0051] Optional, such as Figure 2 As shown, the display position of the volume label in an Excel spreadsheet can be determined by the CU to which the disk volume belongs and the offset within the CU. That is, the display position of the volume label can be determined in an Excel spreadsheet by using the CU to which the volume belongs as the vertical axis and the offset within the CU as the horizontal axis.

[0052] It should be noted that the above process can calculate the offset within the CU corresponding to the disk volume, providing a data basis for the subsequent display of the volume label.

[0053] In one optional embodiment, a first coordinate system is constructed based on disk partitions and partition offsets, wherein the vertical coordinate of the first coordinate system is the disk partition and the horizontal coordinate of the first coordinate system is the partition offset.

[0054] Optionally, a first coordinate system is constructed based on the disk partition (i.e., the CU to which the disk volume belongs) and the partition offset (i.e., the offset within the CU). Optionally, the calculated CU to which the disk volume belongs is used as the vertical axis, and the calculated offset within the CU is used as the horizontal axis. Specifically, taking an Excel spreadsheet as an example, the columns of the Excel spreadsheet represent the CUs to which the disk volume belongs, and the rows of the Excel spreadsheet represent the offsets within the CUs. Optionally, the display position of the volume label in the first coordinate system (e.g., the Excel spreadsheet) can be determined using the vertical and horizontal axes.

[0055] In one optional embodiment, after displaying the label in the first coordinate system, in response to a label selection instruction, a target label is determined from at least one label. Then, the capacity information and volume group information in the attribute information corresponding to the target label are determined to be supplementary information of the target label. Next, it is detected whether the control corresponding to the target label has received a trigger instruction, and the detection result is obtained. Based on the detection result, it is then determined whether to display the supplementary information. Different volume group information corresponds to different display states.

[0056] Optionally, the volume label can be an identifier automatically generated during formatting or manually set. For example, the default disk partitions are divided into Local Disk (C:), Local Disk (D:), etc., without any volume labels. When the disk partitions are set to System (C:) and Game (D:), the volume label for disk partition C is System, and the volume label for disk partition D is Game. Optionally, the volume label selection command is used to select the target volume label. For example, entering "System" in an Excel spreadsheet will select the target volume label from at least one volume label, thus selecting the location of "System" in the Excel spreadsheet.

[0057] Furthermore, the capacity information and volume group information in the attribute information corresponding to the target volume label are identified as supplementary information of the target volume label. The volume group information refers to the storage group (SG) to which the disk volume belongs. Optionally, supplementary information may also include volume type and other information.

[0058] Furthermore, it detects whether the control corresponding to the target label has received a trigger command, obtains the detection result, and then determines whether to display supplementary information based on the detection result. The control corresponding to the target label can be a mouse or other control, and the trigger command is used to implement the movement operation of the control corresponding to the target label, i.e., the mouse. Optionally, Figure 3 This is an optional flowchart for displaying the attribute information of a disk volume according to an embodiment of the present invention. Figure 4 This is a flowchart of an optional processing storage group SG according to an embodiment of the present invention, such as... Figure 3 and Figure 4 As shown, the auxiliary information can be displayed in a three-dimensional manner as annotations at the label position (e.g., floating display). Optionally, different SGs can be colored differently at the label position to display the overall SG distribution.

[0059] Specifically, in one optional embodiment, during the process of determining whether to display auxiliary information based on the detection results, if a trigger command is detected, a first control command is generated; if no trigger command is detected, a second control command is generated. The first control command is used to determine whether to display the auxiliary information, and the second control command is used to determine whether to display the auxiliary information.

[0060] Optionally, if a trigger command is detected, the control corresponding to the target label (i.e., the mouse) will move to the label's location. In this case, the first control command generated is a display command, which can display supplementary information. For example, when the mouse moves to the target label in an Excel spreadsheet, supplementary information such as the disk volume's capacity, volume type, and storage group (SG) will be displayed. Optionally, if no trigger command is detected, meaning the mouse has not moved to the label's location, the first control command generated is a no-display command, meaning supplementary information will not be displayed.

[0061] Optional, Figure 5 This is an optional capacity aggregation flowchart according to an embodiment of the present invention, such as... Figure 5 As shown, it can also summarize and statistically analyze SG, disk volume capacity, etc. Optionally, after calculating the CU to which the disk volume belongs based on the address and knowing the disk to which it belongs through the CU, statistics can be performed on the capacity of different disks each time, which facilitates the management of disk capacity.

[0062] It should be noted that the above process enables the one-screen display of the abstract disk volume attribute information of the host, which greatly facilitates disk management for storage administrators and allows non-storage professionals to quickly query volume information.

[0063] In one optional embodiment, after displaying the volume label in the first coordinate system, the disk disaster recovery information is retrieved from the storage database. Then, the volume address of the current disk volume is queried from the disaster recovery information to obtain the query result. If the volume address of the current disk volume is found in the disaster recovery information, the current disk volume is determined to be a disaster recovery volume. The volume label of the current disk volume is then marked for disaster recovery, and this disaster recovery label is displayed as supplementary information to the volume label. The display status of the disaster recovery volume differs from that of the disk volume. The disk consists of multiple disk partitions, and the disaster recovery information includes at least the address of the disaster recovery volume. The disaster recovery volume is used to back up the data stored on the disk.

[0064] Optional, Figure 6 This is a flowchart illustrating an optional disaster recovery volume determination and processing method according to an embodiment of the present invention, such as... Figure 6 As shown, disk disaster recovery information can be obtained from the host storage database. For example, disaster recovery information is stored in the database in the form of a data table. The disk volume address contained in the disaster recovery information data table is the address of the disk volume used as the disaster recovery volume.

[0065] Furthermore, to determine if the current disk volume is configured for disaster recovery, the volume address of the current disk volume is retrieved from the disaster recovery information. If the volume address is found in the disaster recovery information, the current disk volume can be identified as a disaster recovery volume. Further, a disaster recovery label is added to the current disk volume's label, and this label is displayed as supplementary information to the label. For example, a comment can be added to the current disk volume's label in an Excel spreadsheet to create a disaster recovery label. When the mouse hovers over the label, the comment is displayed as supplementary information, making it easier for storage administrators to identify that the disk volume corresponding to the label is a disaster recovery volume.

[0066] Optionally, disaster recovery volumes and disk volumes can be displayed differently, such as by color or shape. For example, in an Excel spreadsheet, the label of a disaster recovery volume can be displayed in red, while the label of a non-disaster recovery volume can be displayed in black. Alternatively, since different disaster recovery volumes have different insertion time slice levels, different colors and shapes can be used to display disaster recovery volumes of different levels. For example, a level 1 disaster recovery volume can be displayed in blue, a level 2 disaster recovery volume in purple, and so on.

[0067] It should be noted that during the above process, the disaster recovery information of the disk and the disaster recovery attributes of the disk volume are displayed to facilitate storage administrators in overall planning and daily operation and maintenance.

[0068] Therefore, the technical solution of the present invention achieves the purpose of visually displaying the attribute information of disk volumes, thereby improving the technical effect of disk management efficiency and solving the technical problem of low disk management efficiency caused by the inability to visually display disk volume attribute information in the prior art.

[0069] Example 2

[0070] According to an embodiment of the present invention, an embodiment of a disk volume information management device is provided, wherein, Figure 7 This is a schematic diagram of an optional disk volume information management device according to an embodiment of the present invention, such as... Figure 7 As shown, the device includes: an acquisition module 701, used to acquire attribute information of at least one disk volume, wherein the attribute information includes at least a volume label and an address; a determination module 702, used to determine the disk partition corresponding to the at least one disk volume based on the address, wherein the disk partition is composed of multiple disk volumes; a display module 703, used to construct a first coordinate system based on the disk partition and display the volume label in the first coordinate system to obtain a display result; and a management module 704, used to manage the attribute information based on the display result.

[0071] It should be noted that the above-mentioned acquisition module 701, determination module 702, display module 703 and management module 704 correspond to steps S101 to S104 in the above embodiments. The examples and application scenarios implemented by the four modules and the corresponding steps are the same, but are not limited to the content disclosed in the above embodiment 1.

[0072] Optionally, the determining module includes: a first processing module for converting the address format to obtain a first address; a first obtaining module for obtaining the number of disk volumes contained in the disk partition to obtain a first value; and a first calculation module for performing a modulo operation on the first value and the first address to obtain the disk partition.

[0073] Optionally, the disk volume information management device further includes: a second calculation module, used to perform a modulo operation on the first value and the first address to obtain the partition offset of the disk partition.

[0074] Optionally, the disk volume information management device further includes: a construction module for constructing a first coordinate system based on disk partitions and partition offsets, wherein the vertical axis of the first coordinate system is the disk partition and the horizontal axis of the first coordinate system is the partition offset.

[0075] Optionally, the disk volume information management device further includes: a response module, used to respond to a volume label selection instruction and determine a target volume label from at least one volume label; a first determination module, used to determine that the capacity information and volume group information in the attribute information corresponding to the target volume label are auxiliary information of the target volume label, wherein different volume group information corresponds to different display states; a detection module, used to detect whether the control corresponding to the target volume label has received a trigger instruction and obtain a detection result; and a second determination module, used to determine whether to display the auxiliary information based on the detection result.

[0076] Optionally, the second determining module includes: a first control module, configured to generate a first control instruction if a trigger instruction is detected, wherein the first control instruction is used to determine to display supplementary information; and a second control module, configured to generate a second control instruction if no trigger instruction is detected, wherein the second control instruction is used to determine not to display supplementary information.

[0077] Optionally, the disk volume information management device further includes: a second acquisition module, used to acquire disk disaster recovery information from the storage database, wherein the disk consists of multiple disk partitions, and the disaster recovery information includes at least the address of the disaster recovery volume, which is used to back up the data stored on the disk; a query module, used to query the volume address of the current disk volume in the disaster recovery information and obtain the query result; a third determination module, used to determine that the current disk volume is a disaster recovery volume if the volume address of the current disk volume is found in the disaster recovery information; and a marking module, used to mark the current disk volume with disaster recovery labels and display the disaster recovery labels as supplementary information of the volume labels, wherein the display status of the disaster recovery volume is different from that of the disk volume.

[0078] Example 3

[0079] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, and the computer program is configured to execute the above-described method for managing disk volume information when it is run.

[0080] Example 4

[0081] According to another aspect of the present invention, an electronic device is also provided, wherein, Figure 8 This is a schematic diagram of an optional electronic device according to an embodiment of the present invention, such as... Figure 8 As shown, the electronic device includes one or more processors; and a memory for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors are configured to run the programs, wherein the programs are configured to execute the aforementioned disk volume information management method during runtime. When the processor executes the program, it performs the following steps: obtaining attribute information of at least one disk volume, wherein the attribute information includes at least a volume label and an address; determining the disk partition corresponding to the at least one disk volume based on the address, wherein the disk partition consists of multiple disk volumes; constructing a first coordinate system based on the disk partitions and displaying the volume label in the first coordinate system to obtain a display result; and managing the attribute information based on the display result.

[0082] Optionally, when the processor executes the program, it also performs the following steps: converts the address format to obtain a first address; obtains the number of disk volumes contained in the disk partition to obtain a first value; and performs a modulo operation on the first value and the first address to obtain the disk partition.

[0083] Optionally, the processor may also perform the following steps when executing the program: perform a modulo operation on the first value and the first address to obtain the partition offset of the disk partition.

[0084] Optionally, the processor may also perform the following steps when executing the program: constructing a first coordinate system based on disk partitions and partition offsets, wherein the vertical coordinate of the first coordinate system is the disk partition and the horizontal coordinate of the first coordinate system is the partition offset.

[0085] Optionally, when the processor executes the program, it also performs the following steps: responding to a label selection instruction, determining a target label from at least one label; determining that the capacity information and volume group information in the attribute information corresponding to the target label are auxiliary information of the target label, wherein different volume group information corresponds to different display states; detecting whether the control corresponding to the target label has received a trigger instruction and obtaining a detection result; and determining whether to display the auxiliary information based on the detection result.

[0086] Optionally, the processor may further perform the following steps when executing the program: if a trigger instruction is detected, a first control instruction is generated, wherein the first control instruction is used to determine whether to display the auxiliary information; if no trigger instruction is detected, a second control instruction is generated, wherein the second control instruction is used to determine whether to display the auxiliary information.

[0087] Optionally, the processor, when executing the program, also performs the following steps: obtaining disk disaster recovery information from the storage database, wherein the disk consists of multiple disk partitions, and the disaster recovery information includes at least the address of the disaster recovery volume, which is used to back up the data stored on the disk; querying the volume address of the current disk volume in the disaster recovery information and obtaining the query result; if the volume address of the current disk volume is found in the disaster recovery information, then the current disk volume is determined to be a disaster recovery volume; marking the current disk volume with a disaster recovery label and displaying the disaster recovery label as supplementary information of the volume label, wherein the display status of the disaster recovery volume is different from that of the disk volume.

[0088] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.

[0089] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0090] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0091] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0092] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0093] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0094] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0095] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. A method of managing volume information, characterized by, The method comprises the following steps: acquiring attribute information of at least one disk volume, wherein the attribute information at least comprises a volume label and an address; determining a disk partition corresponding to the at least one disk volume according to the address, wherein the disk partition is composed of a plurality of disk volumes; constructing a first coordinate system according to the disk partition, and displaying the volume label in the first coordinate system to obtain a display result; managing the attribute information based on the display result; wherein determining the disk partition corresponding to the at least one disk volume according to the address comprises: format-converting the address to obtain a first address; acquiring a number of disk volumes contained in the disk partition to obtain a first numerical value; performing a remainder operation on the first numerical value and the first address to obtain the disk partition; wherein the attribute information is displayed in the form of a note at the volume label position in three dimensions.

2. The method of claim 1, wherein, After performing the remainder operation on the first numerical value and the first address to obtain the disk partition, the method further comprises: performing a modulo operation on the first numerical value and the first address to obtain a partition offset of the disk partition.

3. The method of claim 2, wherein, Constructing the first coordinate system according to the disk partition comprises: constructing the first coordinate system based on the disk partition and the partition offset, wherein the longitudinal coordinate of the first coordinate system is the disk partition, and the horizontal coordinate of the first coordinate system is the partition offset.

4. The method of claim 1, wherein, After displaying the volume label in the first coordinate system, the method further comprises: determining a target volume label from the at least one volume label in response to a volume label selection instruction; determining capacity information and volume group information in attribute information corresponding to the target volume label as the target volume label's accessory information, wherein different volume group information corresponds to different display states; detecting whether a trigger instruction is received by a control corresponding to the target volume label to obtain a detection result; determining whether to display the accessory information according to the detection result.

5. The method of claim 4, wherein, Determining whether to display the accessory information according to the detection result comprises: if the trigger instruction is detected, generating a first control instruction, wherein the first control instruction is used to determine to display the accessory information; if the trigger instruction is not detected, generating a second control instruction, wherein the second control instruction is used to determine not to display the accessory information.

6. The method of claim 1, wherein, After displaying the volume label in the first coordinate system, the method further comprises: acquiring disaster recovery information of a disk from a storage database, wherein the disk is composed of a plurality of disk partitions, the disaster recovery information at least comprises an address of a disaster recovery volume, and the disaster recovery volume is used to backup data stored in the disk; querying a volume address of a current disk volume in the disaster recovery information to obtain a query result; if the volume address of the current disk volume is queried from the disaster recovery information, determining that the current disk volume is the disaster recovery volume; performing disaster recovery annotation on the volume label of the current disk volume, and displaying the disaster recovery annotation as accessory information of the volume label, wherein the display state of the disaster recovery volume is different from that of the disk volume.

7. An apparatus for managing volume information, characterized by comprising: The method comprises the following steps: An acquisition module is configured to acquire attribute information of at least one disk volume, wherein the attribute information at least includes a volume label and an address; A determination module is configured to determine a disk partition corresponding to the at least one disk volume according to the address, wherein the disk partition is composed of a plurality of disk volumes; A display module is configured to construct a first coordinate system according to the disk partition, and display the volume label in the first coordinate system to obtain a display result; A management module is configured to manage the attribute information based on the display result; The determination module includes a first processing module configured to perform format conversion on the address to obtain a first address, a first acquisition module configured to acquire a number of disk volumes included in the disk partition to obtain a first numerical value, and a first calculation module configured to perform a remainder operation on the first numerical value and the first address to obtain the disk partition. The attribute information is displayed in the form of a note in a three-dimensional manner at a volume label position.

8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, wherein the computer program is configured to execute the management method of the disk volume information when running.

9. An electronic device, comprising: The electronic device includes one or more processors; A memory is configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement a program running method, wherein the program is configured to execute the management method of the disk volume information when running. The electronic device includes one or more processors; A memory is configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement a program running method, wherein the program is configured to execute the management method of the disk volume information when running.

Citation Information

Patent Citations

  • Disk performance information processing method, system and device and readable storage medium

    CN114968118A

  • Storage management method and system

    US20050210192A1