CN112558882B - Method and device for determining disk reconstruction information - Google Patents
Method and device for determining disk reconstruction information Download PDFInfo
- Publication number
- CN112558882B CN112558882B CN202011538948.4A CN202011538948A CN112558882B CN 112558882 B CN112558882 B CN 112558882B CN 202011538948 A CN202011538948 A CN 202011538948A CN 112558882 B CN112558882 B CN 112558882B
- Authority
- CN
- China
- Prior art keywords
- data block
- host
- application file
- priority
- raid
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/062—Securing storage systems
- G06F3/0623—Securing storage systems in relation to content
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1471—Saving, restoring, recovering or retrying involving logging of persistent data for recovery
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/064—Management of blocks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0643—Management of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0689—Disk arrays, e.g. RAID, JBOD
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application provides a method and a device for determining disk reconfiguration information, wherein the method comprises the following steps: the SAN system of the storage area network obtains importance setting information sent by a host, wherein the importance setting information comprises the following steps: importance degree corresponding to each first data block of the application file stored in the logic unit of the SAN system; determining the importance degree of each second data block of the application file in the Redundant Array of Independent Disks (RAID) of the SAN system according to the importance degree corresponding to each first data block of the application file stored in the logic unit of the SAN system; and determining the reconstruction priority of each data block in the RAID according to the importance degree of each second data block of the application file in the RAID of the SAN system, wherein the reconstruction priority of each data block in the RAID is the priority according to which each data block in the RAID is reconstructed after the disk fails. By the method and the device, the data with higher importance degree can be preferentially recovered, and time consumption for recovering the important service data is reduced.
Description
Technical Field
The present application relates to the field of storage technologies, and in particular, to a method and an apparatus for determining disk reconfiguration information.
Background
A Storage Area Network (SAN) adopts a mesh Channel (FC) technology, a Storage array and a host are connected through an FC switch, and a special Area Network for data Storage is established.
In a storage system adopting an SAN architecture, a storage array may be a Redundant Array of Independent Disks (RAID), and RAID is a disk group or a hard disk group formed by combining a plurality of Independent Disks or hard Disks and improves fault-tolerant capability by storing data in a Redundant manner. When one disk in the RAID fails, the data of the disk may be reconstructed by using the data on the other disks in the RAID to realize data recovery.
However, if a RAID disk fails, the process of reconstructing the disk data takes a long time, which may cause recovery of some key service data required by the host to take a long time, and further cause service interruption time to be too long.
Disclosure of Invention
The application provides a method and a device for determining disk reconfiguration information.
The method for determining the disk reconfiguration information comprises the following steps:
the method comprises the following steps that a storage area network SAN system obtains importance setting information sent by a host, wherein the importance setting information comprises the following steps: the importance degree corresponding to each first data block of an application file stored in a logic unit of the SAN system, wherein the application file is an application file applied in the host;
determining the importance degree of each second data block of the application file in the Redundant Array of Independent Disks (RAID) of the SAN system according to the importance degree corresponding to each first data block of the application file stored in the logic unit of the SAN system;
determining the reconstruction priority of each data block in the RAID according to the importance degree of each second data block of the application file in the RAID of the SAN system, wherein the reconstruction priority of each data block in the disk is the priority according to which each data block in the disk is reconstructed after the disk fails.
Preferably, before obtaining the importance setting information sent by the host, the method further includes:
acquiring a priority setting request sent by a host, wherein the priority setting request indicates that an application file needing to set a reconstruction priority is available;
sending a first logical block address list to a host, wherein the first logical block address list comprises addresses of first logical blocks, in which the application files are stored, in logical units of the SAN system;
the obtaining of the importance setting information sent by the host includes:
and obtaining the importance degree corresponding to the address of each first logic block in the first logic block address list sent by the host, wherein the first logic block is used for storing a first data block of the application file in a logic unit of the SAN system.
Preferably, the determining, according to the importance degree corresponding to each first data block of the application file stored in the logic unit of the SAN system, the importance degree of each second data block of the application file in the redundant array of independent disks RAID of the SAN system includes:
determining the importance degree corresponding to the address of each second logic block in a second logic block address list in the RAID of the SAN system according to the importance degree corresponding to the address of each first logic block in the first logic block address list;
the second logical block address list includes addresses of second logical blocks in the RAID, where the second logical blocks store the application file, and the second logical blocks are used to store second data blocks in the RAID.
Preferably, the obtaining the importance degree corresponding to the address of each first logical block in the first logical block address list sent by the host includes:
acquiring the priority corresponding to the address of each first logic block in the first logic block address list sent by the host;
the importance degree of each second data block of the application file is the priority of each second data block of the application file;
the determining the reconstruction priority of each data block in the RAID disk according to the importance degree of each second data block of the application file in the RAID of the SAN system includes:
and setting the reconstruction priority corresponding to each second logic block in the RAID disk in the reconstruction list according to the priority corresponding to the address of each second logic block in the second logic address list.
Preferably, after the obtaining the priority setting request sent by the host, the method further includes:
sending priority reference information of the SAN system to the host to enable the host to set the priority of data in an application file according to the priority reference information, wherein the priority reference information comprises: at least one candidate priority which can be configured selectively, and at least one logic unit which can be set by each candidate priority and the maximum number of logic blocks in the logic unit corresponding to each candidate priority.
Preferably, the obtaining of the importance setting information sent by the host includes:
acquiring time-consuming setting information sent by a host, wherein the time-consuming setting information comprises: the method comprises the steps of obtaining a time consumption upper limit corresponding to each first data block of an application file stored in a logic unit of the SAN system, wherein the lower the time consumption upper limit of the first data block is, the higher the importance degree of representing the first data block is.
Preferably, the determining the importance of each second data block of the application file in the redundant array of independent disks RAID of the SAN system includes:
determining an upper time consumption limit of each second data block of the application file in the RAID of the SAN system;
the determining the reconstruction priority of each data block in the RAID disk according to the importance degree of each second data block of the application file in the redundant array of independent disks RAID of the SAN system includes:
determining a reconstruction priority order of the data blocks in each disk of the RAID according to the time consumption upper limit of each second data block of the application file in the RAID, the disk of the RAID in which the second data block is located and the reconstruction rate of the disk of the RAID.
In another aspect, the present application further provides a method for determining disk reconfiguration information, including:
obtaining importance setting information set by a user for an application file applied in a host, wherein the importance setting information comprises: the importance degree of the application file corresponding to each first data block in a logic unit of a Storage Area Network (SAN) system;
sending the importance setting information to the SAN system, so that the SAN system determines the importance degree of each second data block of the application file in the RAID of the SAN based on the importance setting information, and determines the reconstruction priority of each data block in the disk of the RAID based on the importance degree of each second data block of the application file in the RAID of the SAN system, wherein the reconstruction priority of each data block in the disk is the priority according to which each data block in the disk is reconstructed after the disk fails.
The device for determining the disk reconstruction information comprises the following steps:
a setting obtaining unit, configured to obtain importance setting information sent by a host, where the importance setting information includes: the importance degree corresponding to each first data block of an application file stored in a logic unit of the SAN system, wherein the application file is an application file applied in the host;
the information conversion unit is used for determining the importance degree of each second data block of the application file in the Redundant Array of Independent Disks (RAID) of the SAN system according to the importance degree corresponding to each first data block of the application file stored in the logic unit of the SAN system;
a reconstruction information determining unit, configured to determine a reconstruction priority of each data block in a disk of the RAID according to an importance degree of each second data block of the application file in the RAID of the SAN system, where the reconstruction priority of each data block in the disk is a priority according to which each data block in the disk is reconstructed after the disk fails.
In another aspect, the present application further provides another apparatus for determining disk reconfiguration information, including:
an information obtaining unit, configured to obtain importance setting information set by a user for an application file applied in a host, where the importance setting information includes: the importance degree of the application file corresponding to each first data block in the logic unit of the storage area network SAN system;
and the setting initiating unit is used for sending the importance setting information to the SAN system so that the SAN system determines the importance degree of each second data block of the application file in the RAID of the SAN based on the importance setting information, and determines the reconstruction priority of each data block in the disk of the RAID based on the importance degree of each second data block of the application file in the RAID of the SAN system, wherein the reconstruction priority of each data block in the disk is the priority according to which each data block in the disk is reconstructed after the disk fails.
According to the scheme, the SAN system can obtain the importance setting information sent by the host. Meanwhile, the SAN system may determine the importance degree of each second data block of the application file in the RAID according to the importance degree of each first data block of the application file stored in the logic unit indicated by the importance information, and finally determine the reconstruction priority of each data block in the RAID disk, so that the SAN system may set the reconstruction priority of corresponding data in the RAID disk according to the importance degree of different data in the application file indicated by the host, so that the data with a higher importance degree in the RAID disk has a higher reconstruction priority, and further, under the condition that the disk in the RAID has a failure, the data with a higher importance degree may be preferentially restored according to the reconstruction priority of data in the disk, time required to restore important service data is reduced, and service interruption time is also reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating an architecture of a storage area network according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a method for determining disk reconfiguration information according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another method for determining disk reconfiguration information according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another method for determining disk reconfiguration information according to an embodiment of the present application;
FIG. 5 is a block diagram of an implementation of the present application for setting reconfiguration priorities of different logical blocks in a RAID;
fig. 6 is a schematic flowchart of interaction of a process of determining disk reconfiguration information according to an embodiment of the present disclosure;
fig. 7 is a schematic flowchart of another method for determining disk reconfiguration information according to an embodiment of the present disclosure;
FIG. 8 is a block diagram of a further embodiment of the present application for setting the reconstruction priority of different logical blocks in RAID;
fig. 9 is a schematic flowchart of another method for determining disk reconfiguration information according to an embodiment of the present disclosure;
FIG. 10 is a schematic structural diagram of an apparatus for determining reconfiguration information of a disk according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a component of another apparatus for determining disk reconfiguration information according to an embodiment of the present application;
fig. 12 is a schematic diagram of a composition architecture of an electronic device according to an embodiment of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in other sequences than those illustrated.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any inventive step are within the scope of protection of the present application.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating a composition architecture of a Storage Area Network (SAN) system according to an embodiment of the present disclosure.
As can be seen from fig. 1, the SAN system, also referred to as SAN storage system, comprises: a storage management server 101 and a Redundant Array of Independent Disks (RAID) 102.
The storage management server 101 in the SAN system may have one or more servers, and may be specifically set according to needs. An SAN management program for managing data storage in the SAN system may be run on the storage management server in the SAN system, and data storage, reading, reconstruction, and the like in the SAN system may be completed by the SAN management program.
It is understood that at least one switch 103 may also be provided between the server 101 and the RAID array 102. Such as the switch may be a fabric switch.
The RAID is a disk group or a hard disk group formed by combining a plurality of independent disks or hard disks. In the present application, a RAID may comprise a plurality of disks 104.
The physical storage space formed by the disks of the RAID may be divided into a plurality of stripes (segments), and each stripe may include a plurality of storage blocks located on different disks, each storage block may be used for storing one data block (data block), and each storage block may also be referred to as one logical block.
In the SAN system, the physical storage space formed by the plurality of disks in the RAID may be logically divided into at least one logical unit, and optionally, the SAN system may include a plurality of logical units. Each logical unit is not a logical storage space, not an actual physical storage space, but each logical unit may map to a storage space in the RAID.
For example, each logical unit may be a storage space corresponding to a stripe in a plurality of disks of the RAID. After the logical unit corresponding to the RAID is constructed, a fixed mapping relationship exists between the logical storage space in the logical unit and the physical storage space of the RAID.
Each Logical Unit corresponds to a Logical Unit Number (LUN), and the LUN is used to uniquely identify one Logical Unit.
In the storage architecture of the SAN system, the host 105 can store application files applied in the host to the SAN system. The application file of the application is used for storing application-related data, such as data required by the application to run or data generated by the application to run, and the application is not limited to a specific type of data content stored in the application file of the application.
The host may be a personal computer or a server or the like that needs to store data to the SAN system.
The host layer only can see each logic unit in the SAN system and requests to store application files applied in the host into the logic units.
Correspondingly, after the SAN system (for example, to a server of the SAN system) obtains the application file to be stored in the host, the SAN system stores the application file in the RAID, and determines the logical storage address of the application file in the logical unit of the SAN according to the mapping relationship between the storage space of the RAID and the storage space of the logical unit.
The SAN management program run by the SAN system may include a logical unit management program and a RAID management program, among others.
The logic unit management program is used for acquiring the application files requested to be stored by the host and transmitting the application files to the RAID management program to store the application files in the RAID.
And the RAID management program may send address information of the application file stored in the RAID to the logical unit management program, so that the logical unit management program determines a storage location of the application file in the logical unit of the SAN system according to the storage location of the application file in the disk of the RAID. For example, a list of Logical Block Addresses (LBAs) of the application file in a Logical unit of the SAN system is determined.
It can be understood that fig. 1 is only one form of the SAN system, and in practical applications, the SAN system may also use the host as its storage management server, and build a virtual management platform on physical hardware of multiple hosts, where the virtual management platform may run a SAN management program, and accordingly, data stored to the SAN system by the host is managed by the virtual management platform.
Of course, in practical applications, the SAN system may have other forms, which is not limited to this.
The method for determining disk reconfiguration information according to the present application is described below with reference to a flowchart.
Fig. 2 is a schematic flowchart illustrating an embodiment of a method for determining disk reconfiguration information according to the present invention, where the method of the present embodiment is applied to a SAN system, for example, and may be executed by a SAN management program in the SAN system.
The method of the embodiment can comprise the following steps:
s201, obtaining the importance setting information sent by the host.
Wherein the importance setting information includes: the importance degree corresponding to each first data block of the application file stored in the logic unit of the SAN system. The application file is an application file applied in the host.
It will be appreciated that the RAID of the SAN system is not visible to the host, and therefore, the host may request to store data to logical units of the SAN system. On this basis, the host can set information of the degree of importance for each data block of the application file in the host stored in the logical unit of the SAN system.
Wherein the host may set different levels of importance for different data blocks of the application file in the logical units of the SAN system.
It is understood that the corresponding importance level of a data block may characterize the importance of the data block, for example, if the data block belongs to more critical service data required by the application running in the host, the host may set a higher importance level for the data block stored in the logical unit of the SAN system by the application file of the application.
For the sake of convenience of distinction, the present application refers to a data block stored in a logical unit of the SAN system by an application file as a first data block, and refers to a data block stored in a RAID of the SAN system by the application file as a second data block.
Wherein the importance level of each first data block can be represented in various forms. For example, in one possible scenario, the importance level of the first data block may be a priority level of the first data block, wherein the higher the priority level, the higher the importance level of the data block.
As another example, in yet another possible scenario, the importance of the first data block may be an upper time limit of the first data block, the upper time limit of the first data block characterizing a maximum length of time required to restore the first database. It is understood that the higher the importance of the first data block, the more the first data block needs to be recovered as soon as possible, and therefore, the lower the upper time consumption limit of the first data block is, the higher the importance of the first data block is represented.
Of course, there may be other possibilities for the way in which the host configures the importance level for the first data block, without limitation.
S202, determining the importance degree of each second data block of the application file in the RAID of the SAN system according to the importance degree corresponding to each first data block of the application file stored in the logic unit of the SAN system.
As can be seen from the foregoing description, a logical unit in a SAN system refers to a storage area that logically divides a physical storage space of the SAN system, that is, the logical unit is not an actual physical storage space.
The storage space of the RAID in the SAN system is a physical storage space formed by the disks, and therefore, the data stored in the physical storage space of the disk is affected by the disk failure. Correspondingly, when a disk fails, data stored in the physical space of the disk needs to be recovered, and in order to recover important data blocks in the disk, which belong to the application file in the host, in time, the importance degree of each second data block stored in the disk, which belongs to the application file, needs to be determined.
It can be understood that, because the logical storage space in the logical unit and the physical storage space of the RAID have a fixed mapping relationship, based on the mapping relationship, the importance degree corresponding to each first data block in the logical unit of the SAN system can be converted into the importance degree corresponding to each second data block stored in the RAID of the SAN system by the application file.
For example, assuming that the host sets the importance degree of the first data block 1 of the application file stored in the logic unit of the SAN system as the importance degree M, according to the mapping relationship between the logic unit and the RAID, it may be determined that the storage block of the first data block 1 in the logic unit corresponds to the storage block B in the disk a in the RAID, and then it may be determined that the importance degree of the second data block stored in the storage block B is the importance degree M.
In one possible case, the determined importance level of the second data block is the priority level of the second data block when the importance level of the first data block is the priority level of the first data block.
Similarly, if the importance degree of the first data block is the upper time limit of the first data block, the determined importance degree of the second data block is the upper time limit of the second data block.
S203, determining the reconstruction priority of each data block in the RAID according to the importance degree of each second data block of the application file in the RAID of the SAN system.
And the reconstruction priority of each data block in the disk is the priority according to which each data block in the disk is reconstructed after the disk fails.
For example, the determined importance of each second data block may be combined to obtain the reconstruction priority of each second data block in the RAID disk. For example, in a case where the importance degree of the second data block is the priority of the second data block, the reconstruction priority of each second data block in the disk of the RAID may be determined, and at this time, the priority of the second data block is stored as the reconstruction priority of the second data block.
For another example, the determined importance degree of the second data block may be combined, and the reconstruction priority of each data block in the RAID disk needs to be adjusted, and the reconstruction priority of each data block in the RAID disk is finally obtained. For example, the importance degree of the second data block is the time consumption upper limit of the second data block, and then the reconstruction priority of each data block in the disk is determined according to the time consumption upper limit of each second data block.
It can be understood that different hosts can configure the importance degree of the data blocks stored in the disks in the RAID of the SAN system by sending the importance setting information to the SAN system, so that the SAN system finally determines the reconstruction priority of the data blocks in different disks of the RAID.
It is understood that, after the step S203, if there is a failure in the disk in the RAID, the data blocks in the disk may be sequentially recovered according to the reconstruction priority of the data blocks in the disk.
As can be seen from the above, the SAN system can obtain the importance setting information sent by the host. Meanwhile, the SAN system may determine the importance degree of each second data block of the application file in the RAID according to the importance degree of each first data block of the application file stored in the logic unit indicated by the importance information, and finally determine the reconstruction priority of each data block in the RAID disk, so that the SAN system may set the reconstruction priority of corresponding data in the RAID disk according to the importance degree of different data in the application file indicated by the host, so that the data with a higher importance degree in the RAID disk has a higher reconstruction priority, and further, under the condition that the disk in the RAID has a failure, the data with a higher importance degree may be preferentially restored according to the reconstruction priority of data in the disk, time required to restore important service data is reduced, and service interruption time is also reduced.
The importance setting information sent by the host in the present application can indicate the importance of each first data block belonging to the application file in the host stored in the logical unit in the SAN in various ways. The following description takes the example that the host generates the importance setting information by marking the priority corresponding to the LBA list of the logical block address of the application file in the logical unit.
Fig. 3 is a schematic flowchart illustrating a method for determining disk reconfiguration information according to another embodiment of the present invention, where the method of the present embodiment is applied to a SAN system.
The method of the embodiment may include:
s301, a priority setting request sent by the host is obtained.
Wherein, the priority setting request indicates that there is an application file requiring setting of reconstruction priority. The host may set a priority for the data block of the application file in the logical unit of the SAN system to the SAN management extent request of the SAN system by sending the priority setting request to the SAN system.
For example, the priority setting request may also carry an identifier of the application file, such as a file name or a number of the application file.
S302, the first logical block address list is sent to the host.
For convenience of distinguishing, the LBA list of the application file stored in the logical unit is referred to as a first LBA list, so as to distinguish the first logical block address list from the LBA list of the application file stored in the RAID of the subsequent SAN system (that is, a second logical block address list mentioned later).
The first logical block address list includes addresses of first logical blocks storing the application file in logical units of the SAN system. The first logic block is used for storing a first data block of the application file in a logic unit of the SAN system.
It can be understood that, after the SAN system stores the data of the application file in the host in the RAID, the SAN system applies the storage address of the file in the storage block of each disk of the RAID, determines the address of each first logical block in the logical unit in the SAN corresponding to the application file, and generates the first logical block address list.
For example, a RAID management program running on the SAN system may send a logical block address list of the application file in the RAID disk to the logical unit management program, and the logical unit management program may determine the logical block address list of the application file in the logical unit of the SAN according to a mapping relationship between the logical unit and the storage space of the RAID disk and the logical block address list of the application file in the RAID disk, that is, determine and store the first logical block address list. On this basis, the first logical block address list may be fed back to the host by the lun manager.
S303, obtaining the importance degree corresponding to the address of each first logical block in the first logical block address list sent by the host.
It can be understood that each first data block of the application file in the logical unit of the SAN system can be represented by the address of the first logical block storing each first data block, and therefore, in this embodiment, the host can set the importance degree of the address of each first logical block.
For example, the host may send information about the degree of importance corresponding to each address of each first logical block in the first logical block address list, such as the priority or upper time limit corresponding to each address of each first logical block.
Of course, the host may mark the importance degree corresponding to the address of each first logical block in the first logical block address list in other forms, which is not limited to this.
S304, determining the importance degree corresponding to the address of each second logic block in the second logic block address list in the RAID of the SAN system according to the importance degree corresponding to the address of each first logic block in the first logic block address list.
The second logical block address list includes addresses of second logical blocks storing the application file in the RAID. Wherein each logical block may be a storage block in a disk of the RAID. The second logical block is used for storing a second data block of the application file in the RAID.
It can be understood that, in the case that the importance degree of each first data block in the logical unit of the application file is represented by the importance degree corresponding to the address of the first logical block of each first data block, the importance degree corresponding to the address of the second logical block corresponding to each second data block in the RAID of the application file can be determined.
Of course, in step S304, the importance level of each second data block of the application file in RAID is not represented by the importance level corresponding to the address of the second logical block, and the present embodiment is also applicable to this embodiment without limitation.
In the present application, a routing program may be newly added to the logical unit management program of the SAN system, and the operation of step S305 may be performed by the routing program.
S305, determining the reconstruction priority of each data block in the RAID according to the importance degree of each second data block of the application file in the RAID of the SAN system.
And the reconstruction priority of each data block in the disk is the priority according to which each data block in the disk is reconstructed after the disk fails.
For example, a reconfiguration management subroutine may be added to the RAID manager of the SAN system, and the step S305 is executed by the subroutine.
The step S305 can refer to the related description of the previous embodiment, and is not described herein again.
In the embodiment of the present application, after the host sends the priority setting request, the SAN system may return the first logical block address list of the application file in the logical unit, which the host requests to set, to the host, so that the host may more conveniently mark the importance level of each first logical block in the first logical block address list, and meanwhile, according to the importance level corresponding to the address of each first logical block in the first logical block address list, the importance level corresponding to the address of each second logical block in the first logical block address list may also be more conveniently and efficiently determined, thereby facilitating more quickly determining the reconstruction priority of each data block in the disk.
The following describes a method for determining disk reconfiguration information according to several possible forms of importance of the first data block in the importance setting information reported by the host.
First, the importance of the first data block is taken as the priority of the first data block as an example, and for the convenience of understanding, the priority is set in combination with the first logical block address list of the application file as an example. Referring to fig. 4, which illustrates a method for determining disk reconfiguration information according to the present application, where the method of this embodiment is applied to a SAN system, the method of this embodiment may include:
s401, a priority setting request sent by the host is obtained.
Wherein, the priority setting request indicates that there is an application file requiring setting of reconstruction priority.
S402, sending the first logic block address list to the host.
The first logical block address list is an address of each first logical block storing the application file in a logical unit of the SAN system.
S403, obtain the priority corresponding to the address of each first logical block in the first logical block address list sent by the host.
The higher the priority corresponding to the address of the first logical block is, the higher the importance of the first data block stored in the first logical block is.
In one possible scenario, the host may set different priorities for the addresses of the first logical blocks in the first LBA list as needed. In this case, the kind of priority corresponding to all the first logical blocks in the first LBA list may be set by the host side.
In yet another possible scenario, alternative priorities and related information may be configured in the SAN system. On this basis, the SAN system may send priority reference information of the SAN system to the host, so that the host can set the priority of data within the application file according to the priority reference information.
Wherein the priority reference information includes: at least one candidate priority which can be selected and configured, at least one logic unit which can be set by each candidate priority and the maximum number of logic blocks in the logic unit corresponding to each candidate priority. The maximum number corresponding to each candidate priority may be different, and the maximum number corresponding to a candidate priority is the maximum number of logical blocks that can be set with the candidate priority at most.
Accordingly, the host may present the priority reference information, so that a user on the host side may determine, in combination with the priority reference information, priorities that can be set by which logical blocks of which logical units of the SAN system, and set an appropriate priority for addresses of each first logical block in the first LBA list.
Alternatively, the SAN system may store priority configuration information, such as that maintained in a hypervisor of the SAN system's RAID. The priority configuration information may include alternative candidate priorities and metadata for each candidate priority, and the metadata for the candidate priorities may include: the disks and stripe segments to which each candidate priority can be distributed, and the maximum number of logical blocks in the RAID to which each candidate priority can be set, etc.
Accordingly, the logical unit management program of the SAN system may convert the priority configuration information into priority reference information and return the priority reference information to the host.
S404, according to the priority corresponding to the address of each first logic block in the first logic block address list, determining the priority corresponding to the address of each second logic block in the second logic block address list in the RAID of the SAN system.
The second logical block address list includes addresses of second logical blocks storing the application file in the RAID.
If the first logical block a corresponds to a second logical block B in the RAID, the priority corresponding to the address of the first logical block a is priority 1, and the priority corresponding to the address of the second logical block B is also priority 1.
S405, according to the priority corresponding to the address of each second logic block in the second logic address list, setting the reconstruction priority corresponding to each second logic block in the RAID disk in the reconstruction list.
And the reconstruction priority of the second logic block in the disk is the priority according to which the data block in the second logic block of the disk is reconstructed after the disk fails.
The reconstruction list may store reconstruction priorities corresponding to different logical blocks in the disk of the RAID. After determining the priority corresponding to the address of each second logical block that the host wishes to set, the reconstruction priority corresponding to each second logical block may be set in the reconstruction list.
It can be understood that, the SAN system may set an initial priority for each second logical block in the disk in advance, in this case, after obtaining the priority corresponding to the address of each second logical block in the second logical address list, the reconstruction priority of each second logical block in the reconstruction list may be directly updated.
It is understood that the SAN system may maintain the rebuild list through a RAID management program, such as by adding a new rebuild management program to the RAID management program. For ease of understanding, reference may be made to fig. 5, which is a block diagram illustrating an implementation of the present application for setting reconstruction priorities of different logical blocks in a RAID;
as can be seen from fig. 5, an application program runs on the host, and in the present application, a reconfiguration time-consuming setting program (or referred to as a reconfiguration time-consuming setting module) is further provided on the host. The host may request from the SAN system through the rebuild time-consuming setting program to set a priority of the application file of the application program for the data blocks in the SAN system.
A logical unit management program and a RAID management program run in the SAN system.
In the present application, a reconfiguration routing program is added to the logic unit management program, such as a reconfiguration time-consuming demand routing module in the logic unit management program in fig. 5. The reconfiguration routing program can convert addresses between the logical units and the RAID and priorities corresponding to the addresses.
Meanwhile, a reconfiguration management program is added to the RAID management program, as shown by the reconfiguration management module in fig. 5.
Wherein, the reconfiguration management program may obtain and store configured priority configuration information, and the priority configuration information may include: the type and number of candidate priorities, the disks and stripes to which each candidate priority can be distributed, and the data block capacity in the RAID for each candidate priority configuration. The data block capacity of the candidate priority allocation is the maximum number of data blocks (or logic blocks) with the candidate priority set in the RAID.
For example, it is assumed that there are three candidate priorities to be set. Meanwhile, assuming that the candidate priority 1 can be set at the disk a, the disk B, and the stripe M, the disks to which the candidate priority 1 can be distributed include the disk a and the disk B, and the stripe to which the candidate priority 1 can be distributed includes the stripe M. The capacity of the data blocks in the RAID configured by the candidate priority 1 is 1000, then at most 1000 data blocks in the RAID can be set as the candidate priority 1.
Meanwhile, the reconfiguration management program can respectively determine reconfiguration time required by reconfiguration of all data blocks under each candidate priority in the RAID according to the configured priority configuration information.
For each candidate priority, the reconfiguration management program calculates the total duration required for reconfiguring each data block under the candidate priority according to one or more of the disk to which the candidate priority can be distributed, the data block capacity of the data block of the candidate priority, the stripe depth, the stripe width and the reconfiguration rate, and the total duration is the reconfiguration duration. The stripe depth is the size of the stripe on the disk, and the stripe width is the number of the disks to which the stripe is distributed. The reconstruction rate of the disk is an inherent attribute of the disk and represents the reconstruction speed of the data in the reconstructed disk.
The reconstruction duration corresponding to the candidate priority may provide a basis for the host to select the candidate priority, so that the host may specify an approximate duration required for reconstructing each data under each candidate priority.
In an alternative way, the reconfiguration management program may further determine, for each candidate priority, the maximum number of logical blocks that the candidate priority can be set to the RAID again according to one or more of the disk to which the candidate priority can be distributed, the data block capacity of the data block of the candidate priority, the stripe depth, the stripe width, and the reconfiguration rate, so as to update the data block capacity of the candidate priority.
It will be appreciated that the reconfiguration manager may also maintain and manage reconfiguration priorities for different logical blocks in the RAID. Meanwhile, when the disk failure is reconstructed, the reconstruction management program can sequentially reconstruct the data blocks (data blocks) in each logical block of the disk according to the reconstruction priority of each logical block in the disk (including the stripe of the disk) in the RAID.
With reference to fig. 5, the method for determining disk reconfiguration information according to the present application is described below from the perspective of interaction between the host and the logical unit management program and the reconfiguration management program in the SAN system.
Fig. 6 is a schematic flow chart illustrating an interaction of a method for determining disk reconfiguration information according to the present application. The present embodiment may include:
s601, the host sends a priority setting request to the SAN system.
Wherein, the priority setting request indicates that the ID of the application file needing to set the reconstruction priority is available.
S602, the reconfiguration routing program in the logical unit management program of the SAN system obtains the first LBA list and the priority reference information corresponding to the application file according to the identifier of the application file, and returns the first LBA list and the priority reference information to the host.
The first LBA list includes addresses of first logical blocks of the SAN system that store the application file within logical units of the SAN system.
Wherein, the priority reference information may include: at least one candidate priority which can be configured selectively, and at least one logic unit which can be set by each candidate priority and the maximum number of logic blocks in the logic unit corresponding to each candidate priority. Of course, the priority reference information may be a reconstruction duration corresponding to each candidate priority.
For example, the reconstruction router may obtain priority configuration information from the reconstruction manager, i.e., obtain at least one candidate priority for alternative configurations, the disks and stripes to which each candidate priority can be distributed, and the data block capacity in the RAID for each candidate priority configuration.
Accordingly, the reconfiguration routing program may convert information of the disk and the stripe to which each candidate priority can be distributed into a logical unit to which each candidate priority can be distributed, and at the same time, convert the capacity of the data blocks in the RAID configured by each candidate priority into the maximum number of logical blocks that can be set in the logical unit for each candidate priority.
Of course, the priority configuration information may further include a reconfiguration time corresponding to each candidate priority, so that the reconfiguration routing program adds this information in the priority reference information, thereby providing a basis for setting the priority for the host side user.
S603, the host sends the mapping relation between the first LBA list and the priority to the SAN system.
The mapping relationship between the first LBA list and the priority includes the priority corresponding to the address of each first logical block in the first LBA list.
The mapping relation reported by the host can be pushed in an out-of-band manner or in-band manner.
S604, the route reconstruction program in the SAN system converts the priority corresponding to the address of each first logic block in the first LBA list into the priority corresponding to the address of each second logic block in a second LBA list in the RAID of the SAN system, and sends the mapping relation between the second LBA list and the priority to the reconstruction management program in the RAID management program of the SAN system.
The second LBA list includes addresses of second logical blocks in the RAID that store the application file.
The mapping relationship between the second LBA list and the priority includes a priority corresponding to an address of each second logical block in the second LBA list.
S605, the reconfiguration management program in the SAN system sets the reconfiguration priority corresponding to each second logical block in the RAID disk in the reconfiguration list according to the priority corresponding to the address of each second logical block in the second logical address list.
It is understood that after S605, if there is a disk failure in the RAID, the reconfiguration management program may also control to reconfigure the data blocks in the logical blocks in the failed disk according to the reconfiguration priority of the logical blocks in the failed disk in which there is a failure.
In this application, the importance information reported by the host side may also be time-consuming setting information, where the time-consuming setting information may include: and the time consumption upper limit corresponding to each first data block of the application file stored in the logic unit of the SAN system. Wherein, the lower the upper limit of the time consumption of the first data block, the higher the importance degree of the first data block is represented. On the basis, the SAN system may determine, based on the upper time consumption limit corresponding to each first data block, an upper time consumption limit or importance level corresponding to each second data block storing the application file in the RAID disk. On this basis, the reconstruction priority order of the data blocks in the disk of the RAID can be determined by combining the time consumption upper limit or the importance degree corresponding to each second data block.
As shown in fig. 7, it shows another implementation flow diagram of the method for determining disk reconfiguration information in this application, where the method of this embodiment may be applied to a SAN system, and the method of this embodiment may include:
s701, time consumption setting information sent by the host is obtained.
Wherein the time-consuming setting information includes: and the time consumption upper limit corresponding to each first data block of the application file stored in the logic unit of the SAN system. The upper limit is the maximum elapsed time that the host side wishes to recover the first data block. Wherein, the lower the upper limit of the time consumption of the first data block, the higher the importance degree of the first data block is represented.
In an alternative implementation manner, before this step S701, the host may also send a priority setting request to the SAN system, where the priority setting request indicates that there is an application file that needs to set the reconfiguration priority. Accordingly, the SAN system may return a first list of LBAs for the host. The process of the host sending the priority setting request and the SAN system returning the first LBA list to the host may refer to the related description of the foregoing embodiment, and is not described herein again.
In the case where the SAN system returns the first LBA list to the host, the time-consuming setting information sent by the host may be: and the first LBA list is used for storing a time consumption upper limit corresponding to the address of each first logic block of the application file.
S702, determining the time consumption upper limit of each second data block of the application file in the RAID of the SAN system according to the time consumption upper limit corresponding to each first data block of the application file stored in the logic unit of the SAN system.
For example, the SAN system determines, according to a mapping relationship between a logical storage space of the logical unit and a physical storage space of the RAID, that each first data block corresponds to a storage block in the RAID, and determines, based on the upper time consumption limit of the first data block, an upper time consumption limit of a second data block stored in the corresponding storage block.
It can be understood that, in the case that the time consumption setting information returned by the host is a time consumption upper limit corresponding to the address of each first logical block in the first LBA list, this step may determine the time consumption upper limit corresponding to the address of each second logical block in the second LBA list storing the application file in the RAID of the SAN system.
S703, determining a reconstruction priority order of the data blocks in each disk of the RAID according to an upper time limit of each second data block of the application file in the RAID, the disk in the RAID where the second data block is located, and a reconstruction rate of the disk in the RAID.
For example, by combining the disk in the RAID in which each second data block is located and the reconstruction rate of the corresponding disk, a reconstruction order for reconstructing the data blocks in the disk in the RAID may be determined in order to satisfy the time consumption upper limit corresponding to each second data block, where the reconstruction order of the data blocks in the disk is the reconstruction priority order of the data blocks in the disk.
It can be understood that, when determining the reconstruction priority order, in addition to combining the currently determined time consumption upper limit of each second data block, the reconstruction priority order of each data block in the reconstructed disk may also be determined by combining the time consumption upper limits already set for other data blocks in the disk of the RAID.
It can be understood that, in this embodiment of the present application, if it is determined that the second data block cannot be reconstructed within the upper time limit of the second data block according to the upper time limit of each second data block of the application file in the RAID, the disk in the RAID where the second data block is located, and the reconstruction rate of the disk in the RAID, a reconstruction configuration exception alert may be returned to the host.
The reconfiguration abnormal prompt is used for prompting that the time-consuming setting information provided by the host cannot complete the priority setting of the application file. The user at the host side can be prompted to reset time-consuming setting information through the reconfiguration abnormal prompt.
Of course, if it is determined that the upper time limit of each second data block can be met, after the step S703 is executed, the result of successful configuration may also be fed back to the host.
It is understood that, after the step S703, if there is a disk failure in the RAID, when data reconstruction is performed on the disk, the data blocks in the disk may be sequentially restored according to the reconstruction priority order of the data blocks in the disk.
It is understood that, in the embodiment of the present application, the SAN system may also set a reconfiguration routing program in the logical unit management program, and perform S701 and S702 through the reconfiguration routing program. Meanwhile, a reconstruction management module is additionally arranged in a RAID management program operated by the SAN system.
Meanwhile, a reconfiguration time-consuming requirement setting program is operated on the host, so that reconfiguration priority is set for the application files of each application in the host through the reconfiguration time-consuming requirement setting program.
For example, referring to fig. 8, a schematic block diagram of another implementation of the present application for setting reconfiguration priorities of different logical blocks in a RAID is shown.
As can be seen from fig. 8, the host may send, to the SAN system, a first mapping relationship between the first LBA list of the logic unit and the time consumption upper limit, where the first mapping relationship includes the time consumption upper limit corresponding to the address of each first logic block in the first LBA list, where the time consumption upper limit is a logical block of the application file.
Based on the first mapping relationship, a reconfiguration routing program (reconfiguration time-consuming requirement routing module in fig. 8) of the logical unit management program in the SAN system converts a second mapping relationship between a second LBA list storing the application file in the RAID and a reconfiguration time-consuming upper limit, where the second mapping relationship includes the time-consuming upper limit corresponding to the address of each second logical block in the second LBA list.
And a reconstruction management program in the RAID management program obtains a second mapping relation determined by the reconstruction routing program, and determines the reconstruction priority order of the data blocks in the RAID disk according to the second mapping relation.
The reconfiguration management program reconfiguration management module calculates a reconfiguration priority order of data blocks in the stripe segment corresponding to the application file according to the first mapping relation, reconfiguration time of other configured logic blocks in the RAID, disk and stripe information to which the data of the application file is distributed, reconfiguration rate of the disk and the like.
Of course, in the process of determining the reconstruction priority order, if the storage location of each data block in the RAID needs to be adjusted, the storage of each data block in the RAID may also be reorganized.
Meanwhile, the reconfiguration management program may also feed back a time consumption setting result to the user through the reconfiguration routing program, where the time consumption setting result is used to characterize whether a time consumption upper limit set by the user for each first logic block of the application file in the logic unit can be met.
The following describes a method for determining disk reconfiguration information according to the present application from the host side.
Referring to fig. 9, which shows a flowchart of an implementation of the method for determining disk reconfiguration information executed on a host side according to the present application, the method of this embodiment may include:
s901, obtaining the importance setting information set by the user for the application file applied in the host.
Wherein the importance setting information includes: the importance degree of the application file corresponding to each first data block in the logic unit of the SAN system.
For example, the importance setting information may include: the priority corresponding to the address of each first logic block in the first logic block address list. The first logical block address list includes: and the logic unit of the SAN system stores the address of each first logic block of the application file.
For another example, the importance setting information may also be time-consuming setting information, which may specifically refer to the related description of the foregoing embodiment, and is not described again here.
As understood from the foregoing embodiment, before this step S901, the host may send a priority setting request to the SAN system, the priority setting request indicating that there is an application file for which the reconfiguration priority needs to be set.
Accordingly, the host may obtain a first logical block address list returned by the SAN system, where the first logical block address list includes addresses of first logical blocks, in the logical unit of the SAN system, that store the application file. On the basis, the host can obtain the importance level, such as priority or upper time limit, set by the user for the address of each first logical block in the first logical block address list. Accordingly, the host may send the importance degree corresponding to the address of each first logical block in the first logical block address list to the SAN system.
S902, sending the importance setting information to the SAN system, so that the SAN system determines the reconstruction priority of each data block in the RAID disk based on the importance setting information.
And the reconstruction priority of each data block in the disk is the priority according to which each data block in the disk is reconstructed after the disk fails.
The step S902 can refer to the related description of the previous embodiment, and is not described herein again.
Corresponding to the operation of the SAN system side in the method for determining the disk reconfiguration information, the application also provides a device for determining the disk reconfiguration information.
Fig. 10 is a schematic diagram illustrating a component structure of an embodiment of an apparatus for determining disk reconfiguration information according to the present application, which is applied to a SAN system. The apparatus of this embodiment may include:
a setting obtaining unit 1001 configured to obtain importance setting information sent by a host, where the importance setting information includes: the importance degree corresponding to each first data block of an application file stored in a logic unit of the SAN system, wherein the application file is the application file applied in the host;
an information conversion unit 1002, configured to determine, according to importance degrees corresponding to first data blocks of the application file stored in a logic unit of the SAN system, importance degrees of second data blocks of the application file in a redundant array of independent disks RAID of the SAN system;
a reconstruction information determining unit 1003, configured to determine a reconstruction priority of each data block in the disk of the RAID according to an importance degree of each second data block of the application file in the RAID of the SAN system, where the reconstruction priority of each data block in the disk is a priority according to which each data block in the disk is reconstructed after the disk fails.
In one possible implementation, the apparatus further includes:
a request obtaining unit, configured to obtain a priority setting request sent by the host before the setting obtaining unit obtains the importance setting information sent by the host, where the priority setting request indicates that there is an application file for which a reconfiguration priority needs to be set;
the list sending unit is used for sending a first logical block address list to a host, wherein the first logical block address list comprises the addresses of all first logical blocks, in which the application files are stored, in the logical unit of the SAN system;
the setting obtaining unit is specifically configured to obtain an importance degree corresponding to an address of each first logical block in the first logical block address list sent by the host, where the first logical block is used to store a first data block of the application file in a logical unit of the SAN system.
In an optional implementation manner, the information conversion unit is specifically configured to determine, according to the importance degree corresponding to the address of each first logical block in the first logical block address list, the importance degree corresponding to the address of each second logical block in a second logical block address list in a RAID of the SAN system; the second logical block address list includes addresses of second logical blocks storing the application file in the RAID, and the second logical blocks are used for storing second data blocks of the application file in the RAID.
In yet another possible implementation manner, the setting obtaining unit includes:
a priority obtaining unit, configured to obtain a priority corresponding to an address of each first logical block in the first logical block address list sent by a host;
correspondingly, the importance degree of each second data block of the application file determined by the information conversion unit is the priority of each second data block of the application file;
the reconstruction information determination unit includes:
and the first information determining unit is used for setting the reconstruction priority corresponding to each second logic block in the RAID disk in the reconstruction list according to the priority corresponding to the address of each second logic block in the second logic address list.
In an alternative, the apparatus further comprises:
a reference information sending unit, configured to send priority reference information of the SAN system to the host after the request obtaining unit obtains the priority setting request sent by the host, so that the host sets the priority of data in an application file according to the priority reference information, where the priority reference information includes: at least one candidate priority which can be configured selectively, and at least one logic unit which can be set by each candidate priority and the maximum number of logic blocks in the logic unit corresponding to each candidate priority.
In yet another possible implementation manner, the setting obtaining unit includes:
a time consumption obtaining unit, configured to obtain time consumption setting information sent by a host, where the time consumption setting information includes: the method includes the steps that time consumption upper limits corresponding to first data blocks of application files stored in a logic unit of the SAN system are obtained, wherein the lower the time consumption upper limit of the first data block is, the higher the importance degree of representing the first data block is.
In an optional manner, the information conversion unit is configured to determine, according to a time consumption upper limit corresponding to each first data block of the application file stored in a logic unit of the SAN system, a time consumption upper limit of each second data block of the application file in the RAID of the SAN system;
a reconstruction information determination unit comprising:
a second information determining unit, configured to determine a reconstruction priority order of data blocks in each disk of the RAID according to an upper time limit of each second data block of the application file in the RAID, a disk in the RAID where the second data block is located, and a reconstruction rate of the disk in the RAID.
In another aspect, the present application further provides a device for determining disk reconfiguration information corresponding to the operation of the method for determining disk reconfiguration information in the present application on the host side. Fig. 11 is a schematic diagram illustrating a structure of another apparatus for determining disk reconstruction information according to the present application. The apparatus may be applied to a host, and the apparatus may include:
an information obtaining unit 1101 configured to obtain importance setting information set by a user for an application file applied in a host, the importance setting information including: the importance degree of the application file corresponding to each first data block in a logic unit of a Storage Area Network (SAN) system;
a setting initiating unit 1102, configured to send the importance setting information to the SAN system, so that the SAN system determines, based on the importance setting information, the importance degree of each second data block of the application file in the RAID of the SAN, and determines, based on the importance degree of each second data block of the application file in the RAID of the SAN system, the reconstruction priority of each data block in the disk of the RAID, where the reconstruction priority of each data block in the disk is a priority according to which each data block in the disk is reconstructed after the disk fails.
In another aspect, the present application further provides an electronic device, which may be a device, such as a management server or a host, running a SAN management program of a SAN system. The electronic device may also be a device in which the host is implemented in the above embodiments.
As shown in fig. 12, it shows a schematic diagram of a composition architecture of an electronic device according to the present application, the electronic device at least includes: a processor 1201 and a memory 1202.
The processor and the memory are communicated with each other through a bus;
the processor is configured to call the program instructions in the memory to execute the method for determining disk reconfiguration information on the SAN system side or the host side in any of the above embodiments.
It is to be appreciated that the electronic device can also include a display communication interface 1203, an input unit 1204, and a display 1205. Of course, the electronic device may also include other components, which are not limited in this regard.
In another aspect, the present application further provides a computer-readable storage medium having at least one instruction, at least one program, a set of codes, or a set of instructions stored therein, which is loaded and executed by a processor to implement the method for determining disk reconfiguration information as above.
The present application further proposes a computer program comprising computer instructions stored in a computer readable storage medium. The computer program, when running on an electronic device, is configured to perform a method of determining disk reconfiguration information as in any of the embodiments above.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. Meanwhile, the features described in the embodiments of the present specification may be replaced or combined with each other, so that those skilled in the art can implement or use the present application. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (9)
1. A method of determining disk reconfiguration information, comprising:
the SAN system of the storage area network obtains importance setting information which is sent by a host computer and set for application files applied in the host computer by a user at the host computer side, wherein the importance setting information comprises the following steps: the importance degree corresponding to each first data block of an application file stored in a logic unit of the SAN system, wherein the application file is the application file applied in the host; an application program runs on the host, and a reconfiguration time-consuming setting program is arranged on the host;
determining the importance degree of each second data block of the application file in the redundant array of independent disks RAID of the SAN system according to the importance degree corresponding to each first data block of the application file stored in the logic unit of the SAN system;
determining or adjusting the reconstruction priority of each data block in the disk of the RAID according to the importance degree of each second data block of the application file in the RAID of the SAN system, wherein the reconstruction priority of each data block in the disk is the priority according to which each data block in the disk is reconstructed after the disk fails;
the obtaining of the importance setting information sent by the host for setting the application file applied in the host by the host-side user includes:
acquiring time-consuming setting information sent by a host, wherein the time-consuming setting information comprises: the method includes the steps that time consumption upper limits corresponding to first data blocks of application files stored in a logic unit of the SAN system are obtained, wherein the lower the time consumption upper limit of the first data block is, the higher the importance degree of representing the first data block is.
2. The method of claim 1, before obtaining the importance setting information sent by the host for the application file set by the host-side user for the application in the host, further comprising:
acquiring a priority setting request sent by a host, wherein the priority setting request indicates that an application file needing to set a reconstruction priority is available;
sending a first logic block address list to a host, wherein the first logic block address list comprises the addresses of all first logic blocks, in which the application files are stored, in a logic unit of the SAN system;
the obtaining of the importance setting information sent by the host includes:
and obtaining the importance degree corresponding to the address of each first logic block in the first logic block address list sent by the host, wherein the first logic block is used for storing a first data block of the application file in a logic unit of the SAN system.
3. The method of claim 2, wherein the determining the importance level of each second data block of the application file in the redundant array of independent disks RAID of the SAN system according to the importance level corresponding to each first data block of the application file stored in the logic unit of the SAN system comprises:
determining the importance degree corresponding to the address of each second logic block in a second logic block address list in the RAID of the SAN system according to the importance degree corresponding to the address of each first logic block in the first logic block address list;
the second logical block address list includes addresses of second logical blocks storing the application file in the RAID, and the second logical blocks are used for storing second data blocks of the application file in the RAID.
4. The method of claim 3, wherein the obtaining the importance degree corresponding to the address of each first logical block in the first logical block address list sent by the host comprises:
obtaining the priority corresponding to the address of each first logic block in the first logic block address list sent by the host;
the importance degree of each second data block of the application file is the priority of each second data block of the application file;
the determining the reconstruction priority of each data block in the RAID disk according to the importance degree of each second data block of the application file in the RAID of the SAN system includes:
and setting the reconstruction priority corresponding to each second logic block in the RAID disk in the reconstruction list according to the priority corresponding to the address of each second logic block in the second logic block address list.
5. The method of claim 4, further comprising, after said obtaining a priority setting request sent by a host:
sending priority reference information of the SAN system to the host to enable the host to set the priority of data in an application file according to the priority reference information, wherein the priority reference information comprises: at least one candidate priority which can be selected and configured, at least one logic unit which can be set by each candidate priority and the maximum number of logic blocks in the logic unit corresponding to each candidate priority.
6. The method of claim 1, wherein determining the importance of each second data block of the application file in a Redundant Array of Independent Disks (RAID) of the SAN system comprises:
determining an upper time limit of each second data block of the application file in the RAID of the SAN system;
determining the reconstruction priority of each data block in the RAID according to the importance degree of each second data block of the application file in the redundant array of independent disks RAID of the SAN system comprises the following steps:
determining a reconstruction priority order of the data blocks in each disk of the RAID according to the time consumption upper limit of each second data block of the application file in the RAID, the disk of the RAID in which the second data block is located and the reconstruction rate of the disk of the RAID.
7. A method of determining disk reconfiguration information, comprising:
obtaining importance setting information set by a user for an application file applied in a host, wherein the importance setting information comprises: the importance degree of the application file corresponding to each first data block in a logic unit of a Storage Area Network (SAN) system; an application program runs on the host, and a reconfiguration time-consuming setting program is arranged on the host;
sending the importance setting information to the SAN system, so that the SAN system determines the importance degree of each second data block of the application file in the redundant array of independent disks RAID of the SAN based on the importance setting information, and determines or adjusts the reconstruction priority of each data block in the disk of the RAID based on the importance degree of each second data block of the application file in the RAID of the SAN system, wherein the reconstruction priority of each data block in the disk is the priority according to which each data block in the disk is reconstructed after the disk fails;
the obtaining of the importance setting information set by the user for the application file applied in the host includes:
acquiring time-consuming setting information sent by a host, wherein the time-consuming setting information comprises: the method comprises the steps of obtaining a time consumption upper limit corresponding to each first data block of an application file stored in a logic unit of the SAN system, wherein the lower the time consumption upper limit of the first data block is, the higher the importance degree of representing the first data block is.
8. An apparatus for determining disk reconfiguration information, comprising:
a setting obtaining unit, configured to obtain importance setting information that is sent by a host and set for an application file applied in the host by a host-side user, where the importance setting information includes: the importance degree corresponding to each first data block of an application file stored in a logic unit of the SAN system, wherein the application file is the application file applied in the host; an application program runs on the host, and a reconfiguration time-consuming setting program is arranged on the host;
the information conversion unit is used for determining the importance degree of each second data block of the application file in the redundant array of independent disks RAID of the SAN system according to the importance degree corresponding to each first data block of the application file stored in the logic unit of the SAN system;
a reconstruction information determining unit, configured to determine or adjust a reconstruction priority of each data block in a disk of the RAID according to an importance degree of each second data block of the application file in the RAID of the SAN system, where the reconstruction priority of each data block in the disk is a priority according to which each data block in the disk is reconstructed after the disk fails;
the obtaining of the importance setting information set by the host-side user for the application file applied in the host sent by the host includes: acquiring time-consuming setting information sent by a host, wherein the time-consuming setting information comprises: the method comprises the steps of obtaining a time consumption upper limit corresponding to each first data block of an application file stored in a logic unit of the SAN system, wherein the lower the time consumption upper limit of the first data block is, the higher the importance degree of representing the first data block is.
9. An apparatus for determining disk reconfiguration information, comprising:
an information obtaining unit, configured to obtain importance setting information set by a user for an application file applied in a host, where the importance setting information includes: the importance degree of the application file corresponding to each first data block in a logic unit of a Storage Area Network (SAN) system; an application program runs on the host, and a reconfiguration time-consuming setting program is arranged on the host;
setting an initiating unit, configured to send the importance setting information to the SAN system, so that the SAN system determines, based on the importance setting information, an importance degree of each second data block of the application file in a redundant array of independent disks RAID of the SAN, and determines or adjusts a reconstruction priority of each data block in a disk of the RAID, based on an importance degree of each second data block of the application file in a RAID of the SAN system, where the reconstruction priority of each data block in the disk is a priority according to which each data block in the disk is reconstructed after the disk fails;
the obtaining of the importance setting information set by the user for the application file applied in the host includes:
acquiring time-consuming setting information sent by a host, wherein the time-consuming setting information comprises: the method comprises the steps of obtaining a time consumption upper limit corresponding to each first data block of an application file stored in a logic unit of the SAN system, wherein the lower the time consumption upper limit of the first data block is, the higher the importance degree of representing the first data block is.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011538948.4A CN112558882B (en) | 2020-12-23 | 2020-12-23 | Method and device for determining disk reconstruction information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011538948.4A CN112558882B (en) | 2020-12-23 | 2020-12-23 | Method and device for determining disk reconstruction information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112558882A CN112558882A (en) | 2021-03-26 |
CN112558882B true CN112558882B (en) | 2023-01-06 |
Family
ID=75031674
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011538948.4A Active CN112558882B (en) | 2020-12-23 | 2020-12-23 | Method and device for determining disk reconstruction information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112558882B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012068184A1 (en) * | 2010-11-15 | 2012-05-24 | File System Labs Llc | Methods and apparatus for distributed data storage |
CN103064753A (en) * | 2012-10-25 | 2013-04-24 | 浪潮电子信息产业股份有限公司 | Disk array three-stage recovery system designing method |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006285803A (en) * | 2005-04-04 | 2006-10-19 | Sony Corp | Data storage device, reconstruction control device, reconstruction control method, program and storage medium |
CN101526882B (en) * | 2008-03-03 | 2011-06-22 | 中兴通讯股份有限公司 | Method and device for reconstructing logic unit in redundant array subsystem of independent disk |
CN101576833B (en) * | 2009-06-26 | 2012-05-23 | 杭州华三通信技术有限公司 | Data reconstruction method for Redundant Array of Independent Disks (RAID) and appliance thereof |
US8726070B2 (en) * | 2010-09-27 | 2014-05-13 | Dell Products L.P. | System and method for information handling system redundant storage rebuild |
CN102799487A (en) * | 2012-06-29 | 2012-11-28 | 记忆科技(深圳)有限公司 | IO (input/output) scheduling method and apparatus based on array/LUN (Logical Unit Number) |
CN103823728B (en) * | 2014-03-13 | 2015-11-18 | 深圳市迪菲特科技股份有限公司 | A kind of method of raid-array Intelligent Reconstruction |
CN104536698A (en) * | 2014-12-10 | 2015-04-22 | 华为技术有限公司 | Disk reconfiguration method based on RAID and related apparatus |
-
2020
- 2020-12-23 CN CN202011538948.4A patent/CN112558882B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012068184A1 (en) * | 2010-11-15 | 2012-05-24 | File System Labs Llc | Methods and apparatus for distributed data storage |
CN103064753A (en) * | 2012-10-25 | 2013-04-24 | 浪潮电子信息产业股份有限公司 | Disk array three-stage recovery system designing method |
Also Published As
Publication number | Publication date |
---|---|
CN112558882A (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9250824B2 (en) | Backing up method, device, and system for virtual machine | |
US8261016B1 (en) | Method and system for balancing reconstruction load in a storage array using a scalable parity declustered layout | |
EP2799973B1 (en) | A method for layered storage of enterprise data | |
CN110383251B (en) | Storage system, computer-readable recording medium, and method for controlling system | |
US20160004611A1 (en) | Storage system with virtual disks | |
US20160004450A1 (en) | Storage system with virtual disks | |
US8578121B2 (en) | Computer system and control method of the same | |
US20140351545A1 (en) | Storage management method and storage system in virtual volume having data arranged astride storage device | |
US20220391359A1 (en) | Distributed File System that Provides Scalability and Resiliency | |
US10489138B1 (en) | Managing software upgrades in storage systems | |
CN111949210B (en) | Metadata storage method, system and storage medium in distributed storage system | |
US20100299491A1 (en) | Storage apparatus and data copy method | |
WO2020027910A1 (en) | Storage systems with peer data scrub | |
CN109582213B (en) | Data reconstruction method and device and data storage system | |
US11301137B2 (en) | Storage system and data arrangement method of storage system | |
US10514982B2 (en) | Alternate storage arrangement in a distributed data storage system with key-based addressing | |
WO2016004120A2 (en) | Storage system with virtual disks | |
CN105988727B (en) | RAID-based storage method and storage device | |
US11809720B2 (en) | Techniques for storage management | |
JP6653370B2 (en) | Storage system | |
JPWO2018138813A1 (en) | Computer system | |
EP3495939B1 (en) | Method and device for storing data in distributed block storage system, and computer readable storage medium | |
US11899533B2 (en) | Stripe reassembling method in storage system and stripe server | |
CN107291395B (en) | LUN online capacity expansion method and system | |
US11775194B2 (en) | Data storage method and apparatus in distributed storage system, and computer program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |