[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115390762A - Storage resource access method, device, equipment and readable storage medium - Google Patents

Storage resource access method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN115390762A
CN115390762A CN202211032629.5A CN202211032629A CN115390762A CN 115390762 A CN115390762 A CN 115390762A CN 202211032629 A CN202211032629 A CN 202211032629A CN 115390762 A CN115390762 A CN 115390762A
Authority
CN
China
Prior art keywords
path
target
storage resource
selection
polling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211032629.5A
Other languages
Chinese (zh)
Inventor
周昭飞
穆向东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202211032629.5A priority Critical patent/CN115390762A/en
Publication of CN115390762A publication Critical patent/CN115390762A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0635Configuration or reconfiguration of storage systems by changing the path, e.g. traffic rerouting, path reconfiguration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

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)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a storage resource access method, which comprises the following steps: receiving a target IO request for accessing a target storage resource; acquiring preset path selection parameters; when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, the target path is obtained through the polling selection in the path set; and sending the target IO request to the target storage resource by using the target path so as to access the target storage resource. The storage resource access method provided by the invention ensures that the paths are uniformly used in a path set, avoids frequently calling a specific path when the traffic is large, and improves the system performance. The invention also discloses a storage resource access device, equipment and a storage medium, and has corresponding technical effects.

Description

Storage resource access method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of storage technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for accessing storage resources.
Background
Storage Multipath (SMP) refers to that under a SAN (Storage Area Network) Network architecture, multiple Storage hosts concurrently access Storage resources, and multiple I/O (input/output ) data stream Storage paths exist between each Storage host and an LUN (Logical Unit number) of a Storage device, that is, one LUN has multiple paths. The method mainly realizes the main functions of fault switching and recovery, bandwidth aggregation, I/O flow control, automatic path management and the like. The storage multi-path advantages are mainly based on hardware redundancy, LUN-oriented storage, support of intelligent storage devices and corresponding intelligent software.
The implementation of storage multipath is usually used with a specific Disk Array storage Device, and needs to cooperate with corresponding multipath software, such as RDAC (Redundant Disk Array Controller), SDD (Subsystem Device Driver), SDDPCM (Subsystem Device Driver Path Control Module) host multipath software, and the like. These commercialized multipath software are specific to a particular disk array storage device and are expensive. DM (Device Mapper) Multipath is an open source Multipath software, and has the advantages of supporting mainstream middle-to-high-end disk array storage devices, and the like, and is widely applied. However, the DM multi path default parameter configuration is suitable for general multi-path storage, the default parameter configuration reformulates I/O and supports error redundancy for paths and path groups, and when the traffic volume is large, the default configuration is a bottleneck, which results in low system performance in the IO processing process.
In summary, how to effectively solve the problem that when the traffic volume is large, default configuration is a bottleneck, which causes low system performance in the IO processing process, is a problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
The invention aims to provide a storage resource access method, which enables paths in a path set to be used in a balanced manner, avoids frequent calling of a specific path when the traffic is large, and improves the system performance; another object of the present invention is to provide a storage resource access device, an apparatus and a computer readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
a storage resource access method, comprising:
receiving a target IO request for accessing a target storage resource;
acquiring preset path selection parameters;
when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, the target path is obtained from the path set through polling selection;
and sending the target IO request to the target storage resource by using the target path so as to access the target storage resource.
In a specific embodiment of the present invention, polling and selecting the target path from the path set includes:
and polling and selecting the target path from the path set according to a load balancing strategy.
In a specific embodiment of the present invention, polling and selecting the target path from the path set includes:
judging whether available paths exist in the optimal path group of the path set or not;
and if so, polling and selecting the optimal path group to obtain a target path.
In an embodiment of the present invention, when determining that there is no available path in the optimal path group of the path set, the method further includes:
and polling and selecting the non-optimal path group of the path set to obtain a target path.
In a specific embodiment of the present invention, acquiring preset path selection parameters includes:
searching a parameter module existing in the parameter configuration file;
when the number of the existing parameter modules is more than 1, acquiring the priority corresponding to each parameter module;
carrying out sorting operation on each priority to obtain a sorting result;
selecting a parameter module with the highest priority according to the sorting result;
and acquiring preset path selection parameters from the parameter module with the highest priority.
In a specific embodiment of the present invention, the obtaining of the preset path selection parameter includes:
the path selection parameters that are validated by the service restart or refresh command are obtained.
In an embodiment of the present invention, the method further comprises:
and when the path selection mode is determined to be the selection of the specified path in the path set according to the path selection parameters, selecting a preset target path from the path set.
A storage resource access device, comprising:
a request receiving unit, configured to receive a target IO request for accessing a target storage resource;
the device comprises a parameter acquisition unit, a route selection unit and a route selection unit, wherein the parameter acquisition unit is used for acquiring preset route selection parameters;
the path selection unit is used for polling and selecting from the path set to obtain a target path when determining that a path selection mode is to perform polling selection on each path in the path set according to the path selection parameters;
and the resource access unit is used for sending the target IO request to the target storage resource by using the target path so as to access the target storage resource.
A storage resource access device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the storage resource access method as described above when executing the computer program.
A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of a storage resource access method as set out above.
The storage resource access method provided by the invention receives a target IO request for accessing a target storage resource; acquiring preset path selection parameters; when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, the target path is obtained through the polling selection in the path set; and sending the target IO request to the target storage resource by using the target path so as to access the target storage resource.
According to the technical scheme, the path selection parameters indicating the path selection mode are preset, when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, the target path is obtained through the polling selection in the path set, and the target IO request is sent to the target storage resource through the target path. Therefore, the paths are used in a balanced mode in a centralized mode, frequent calling of a specific path when the traffic is large is avoided, and system performance is improved.
Correspondingly, the invention also provides a storage resource access device, equipment and a computer readable storage medium corresponding to the storage resource access method, which have the technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of an implementation of a storage resource access method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another implementation of a storage resource access method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another implementation of a storage resource access method according to an embodiment of the present invention;
FIG. 4 is a block diagram illustrating an embodiment of a storage resource access apparatus;
FIG. 5 is a block diagram of a storage resource access device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a storage resource access device provided in this embodiment.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of an implementation of a storage resource access method according to an embodiment of the present invention, where the method may include the following steps:
s101: a target IO request to access a target storage resource is received.
When the storage host needs to access the target storage resource, a target IO request is generated, and the target IO request is sent to the resource access management center. The resource access management center receives a target IO request for accessing a target storage resource.
The target storage resource may be a disk, a storage device plugged into a computer, a volume, etc.
The target IO request may be any IO request that requires access to a target storage resource.
The resource access management center may be a controller, processor, or the like that manages the target storage resource.
S102: and acquiring preset path selection parameters.
Presetting a path selection parameter, wherein the path selection parameter is used for selecting a path required by forwarding the IO request, and if a certain specific path is designated as an IO request forwarding path, polling each path in a path set comprising a large number of paths, and polling the received IO request by using each path. And after a target IO request for accessing the target storage resource is received, acquiring a preset path selection parameter.
In one embodiment of the present invention, step S102 may include the following steps:
the path selection parameters that are validated by the service restart or refresh command are obtained.
The effective mode of the path selection parameter is preset, and the path selection parameter is effective through a service restart system restart multipath or a refresh command multipath-r. The path selection parameters that are validated by the service restart or refresh command are obtained. Thereby to obtain
S103: and when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, the target path is obtained by polling selection in the path set.
And after the preset path selection parameters are acquired, determining a path selection mode according to the path selection parameters. The path selection mode may include selecting a specific path from a set of paths including a large number of paths as an IO request forwarding path, and may also include performing polling selection on each path from the set of paths including a large number of paths. And when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, the target path is obtained by polling selection in the path set.
In a specific embodiment of the present invention, the polling of the target path from the path set may include the following steps:
and polling and selecting from the path set according to a load balancing strategy to obtain a target path.
The principle of performing polling selection on each path in the path set is preset to be a load balancing principle. And when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, the target path is obtained by polling selection from the path set according to the load balancing strategy. By performing polling selection on each path in the path set according to the load balancing principle, the phenomenon that the load of a certain path in the path set is overlarge is avoided, the condition that the load of each path counted in a period of time is kept relatively equal in the process of polling and using each path is ensured, the path fault rate is reduced, the fault transfer time is saved, the I/O processing time is optimized, and the system performance is improved.
S104: and sending the target IO request to the target storage resource by using the target path so as to access the target storage resource.
And after the target path is obtained from the path set by polling selection, sending the target IO request to the target storage resource by using the target path, thereby realizing the access of the storage host to the target storage resource. By presetting path selection parameters indicating a path selection mode, when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, a target path is obtained from the path set through polling selection, and a target IO request is sent to a target storage resource by using the target path. Therefore, the paths are used in a balanced mode in a centralized mode, frequent calling of a specific path when the traffic is large is avoided, and system performance is improved.
In one embodiment of the present invention, the method may further comprise the steps of:
and when the path selection mode is determined to be the selection of the specified path in the path set according to the path selection parameters, selecting the preset target path from the path set.
The path selection parameter may be a parameter for selecting an instruction path in the path set, for example, a specific path with a larger bandwidth may be specified as a target path for forwarding the IO request according to the bandwidth size of the path. And when the path selection mode is determined to be the selection of the specified path in the path set according to the path selection parameters, selecting the preset target path from the path set. For example, the path selection mode may be determined by setting the path _ grouping _ policy value to "failover" to select the specified path in the path set.
The storage resource access method provided by the invention receives a target IO request for accessing a target storage resource; acquiring preset path selection parameters; when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, a target path is obtained through the polling selection in the path set; and sending the target IO request to the target storage resource by using the target path so as to access the target storage resource. By presetting path selection parameters indicating a path selection mode, when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, a target path is obtained from the path set through polling selection, and a target IO request is sent to a target storage resource by using the target path. Therefore, the paths are used in a balanced mode in a centralized mode, frequent calling of a specific path when the traffic is large is avoided, and system performance is improved.
It should be noted that, based on the above embodiments, the embodiments of the present invention also provide corresponding improvements. In the following embodiments, the same steps or corresponding steps as those in the above embodiments may be referred to each other, and the corresponding beneficial effects may also be referred to each other, which are not described in detail in the following modified embodiments.
Referring to fig. 2, fig. 2 is a flowchart of another implementation of a storage resource access method in an embodiment of the present invention, where the method may include the following steps:
s201: a target IO request to access a target storage resource is received.
When the storage host needs to access the target storage resource, a target IO request is generated, and the target IO request is sent to the resource access management center. The resource access management center receives a target IO request for accessing a target storage resource.
S202: and acquiring preset path selection parameters.
Presetting a path selection parameter, wherein the path selection parameter is used for selecting a path required by forwarding the IO request, and if a certain specific path is designated as an IO request forwarding path, polling each path in a path set comprising a large number of paths, and polling the received IO request by using each path. And after a target IO request for accessing the target storage resource is received, acquiring a preset path selection parameter.
S203: when determining that the path selection mode is to perform polling selection on each path in the path set according to the path selection parameters, determining whether an available path exists in the optimal path group of the path set, if so, executing step S204, and if not, executing step S205.
The storage resources have corresponding optimal controllers, all paths passing through the optimal controllers have the same path priority, and the paths are distributed into a priority group, so that the optimal path group is obtained. After the preset path selection parameters are obtained, when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, whether an available path exists in the optimal path group of the path set is judged, if yes, a path is preferentially selected from the optimal path group, step S204 is executed, if not, it is indicated that other paths except each path in the optimal path group need to be searched for carrying out target IO request sending, and step S205 is executed.
S204: and polling and selecting the optimal path group to obtain a target path.
When the available paths exist in the optimal path group of the path set, the paths are preferentially selected from the optimal path group, and the target paths are obtained by polling and selecting from the optimal path group. Therefore, the optimal path in the optimal path group is preferentially selected, and the IO request forwarding reliability is improved.
S205: and polling and selecting the non-optimal path group of the path set to obtain a target path.
The storage resources also have corresponding non-optimal controllers, and all paths passing through the non-optimal controllers have the same path priority and are distributed into another priority group, so that a non-optimal path group is obtained. When it is determined that no available path exists in the optimal path group of the path set, it is indicated that other paths except for each path in the optimal path group need to be searched for target IO request transmission, and a target path is obtained by polling and selecting from a non-optimal path group of the path set. By setting the non-optimal path group, the target IO request can still be smoothly sent when no available path exists in the optimal path group.
When IO processing is set, all paths in the optimal path group process IO according to a load balancing mode through multi-path equipment. When the path failure of the IO is processed, as long as the optimal path group always has available paths, the IO can be processed all the time. When all paths in the optimal path group fail, paths in the non-optimal path group are searched for to process IO. The IO request forwarding reliability is improved, and the smooth sending of the target IO request is ensured.
S206: and sending the target IO request to the target storage resource by using the target path so as to access the target storage resource.
After the target path is obtained by polling and selecting from the path set, the target IO request is sent to the target storage resource by using the target path, for example, when the target path is obtained by polling and selecting from the optimal path group, the target IO request is sent by using the target path polled and selected from the optimal path group, so that the storage host accesses the target storage resource. When the target path is selected by polling from the non-optimal path group of the path set, the target IO request is sent by using the target path selected by polling from the non-optimal path group, so that the storage host accesses the target storage resource.
Referring to fig. 3, fig. 3 is a flowchart of another implementation of a storage resource access method in an embodiment of the present invention, where the method may include the following steps:
s301: a target IO request to access a target storage resource is received.
When the storage host needs to access the target storage resource, a target IO request is generated, and the target IO request is sent to the resource access management center. The resource access management center receives a target IO request for accessing a target storage resource.
S302: and searching a parameter module existing in the parameter configuration file.
Parameter module setting is performed on the configuration file, multi path.con, of the tool software in advance, for example, one or more of a default parameter module, a multipaths parameter module, and devices parameter module may be set. And after a target IO request for accessing the target storage resource is received, searching a parameter module existing in the parameter configuration file.
S303: and when the number of the existing parameter modules is more than 1, acquiring the priority corresponding to each parameter module.
The priority of each parameter module in the parameter configuration file is preset, for example, when the default parameter module, the multipaths parameter module and the devices parameter module exist in the parameter configuration file, the priority of the multipaths parameter module is set to be the highest, and the priority of the devices parameter module is set to be the lowest, and the priority of the default parameter module is set to be the lowest. After the parameter modules existing in the parameter configuration file are found, when the number of the existing parameter modules is more than 1, the priorities corresponding to the parameter modules are obtained.
S304: and carrying out sequencing operation on each priority to obtain a sequencing result.
And after the number of the existing parameter modules is determined to be more than 1 and the priorities corresponding to the parameter modules are obtained, sequencing the priorities to obtain a sequencing result.
Taking bearing the above example, the default parameter module, the multiproths parameter module, and the devices parameter module are sorted according to the order of priority from large to small as follows: the device comprises a multipaths parameter module, devices parameter module and default parameter module.
S305: and selecting the parameter module with the highest priority according to the sorting result.
And after the sorting operation is carried out on the priorities to obtain a sorting result, selecting the parameter module with the highest priority according to the sorting result.
For the above example, when the default parameter module, the multipaths parameter module, and the devices parameter module exist in the parameter configuration file, the multipaths parameter module with the highest priority is selected.
S306: and acquiring preset path selection parameters from the parameter module with the highest priority.
And after the parameter module with the highest priority is selected according to the sorting result, acquiring preset path selection parameters from the parameter module with the highest priority. Thereby ensuring the orderly progress of path selection.
If only default parameter modules exist in the configuration file, the path _ grouping _ policy value is set to be "group _ by _ prio", and the parameter path _ selector value is "round-robin0".
If the configuration file has the multipaths parameter module, the path _ grouping _ policy value is set to be "group _ by _ prio", and the parameter path _ selector value is "round-robin0".
If no multipaths parameter module exists in the configuration file and a devices parameter module exists in the configuration file, the path _ grouping _ policy value is set to be 'group _ by _ prio' and the parameter path _ selector value is 'round-barrel 0'.
The embodiment of the invention optimizes and configures the combination value of the parameters path _ grouping _ policy and path _ selector, so that the system can reach the optimal performance when working, and the optimal working efficiency can be reached.
S307: and when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, the target path is obtained from the path set through polling selection.
After the preset path selection parameters are obtained from the parameter module with the highest priority, when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, the target path is obtained through the polling selection in the path set.
In addition, when the paths in the path set need to be deleted, the paths that need to be deleted may be configured to be identified, and the paths that need to be deleted may be deleted in a unified manner according to the identification information.
S308: and sending the target IO request to the target storage resource by using the target path so as to access the target storage resource.
Corresponding to the above method embodiments, the present invention further provides a storage resource access device, and the storage resource access device described below and the storage resource access method described above may be referred to in correspondence with each other.
Referring to fig. 4, fig. 4 is a block diagram of a storage resource access apparatus according to an embodiment of the present invention, where the apparatus may include:
a request receiving unit 41, configured to receive a target IO request for accessing a target storage resource;
a parameter obtaining unit 42, configured to obtain preset path selection parameters;
the path selecting unit 43 is configured to, when determining that the path selection mode is to perform polling selection on each path in the path set according to the path selection parameter, perform polling selection from the path set to obtain a target path;
and the resource access unit 44 is configured to send the target IO request to the target storage resource by using the target path, so as to access the target storage resource.
The storage resource access device provided by the invention receives a target IO request for accessing a target storage resource; acquiring preset path selection parameters; when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, the target path is obtained through the polling selection in the path set; and sending the target IO request to the target storage resource by using the target path so as to access the target storage resource. By presetting path selection parameters indicating a path selection mode, when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, a target path is obtained from the path set through polling selection, and a target IO request is sent to a target storage resource by using the target path. Therefore, the paths are centralized and balanced, frequent calling of a specific path is avoided when the traffic is large, and system performance is improved.
In an embodiment of the present invention, the path selecting unit 43 is specifically a module that polls and selects the target path from the path set according to a load balancing policy.
In an embodiment of the present invention, the path selecting unit 43 includes:
the judging subunit is used for judging whether an available path exists in the optimal path group of the path set;
and the path selection subunit is used for polling and selecting the optimal path group to obtain a target path when determining that the available path exists in the optimal path group of the path set.
In an embodiment of the present invention, the path selecting unit 43 is further configured to, when it is determined that there is no available path in the optimal path group of the path set, query and select a target path from a non-optimal path group of the path set.
In an embodiment of the present invention, the parameter obtaining unit 42 includes:
the parameter module searching subunit is used for searching the parameter module existing in the parameter configuration file;
the priority acquiring subunit is used for acquiring the priorities corresponding to the parameter modules when the number of the existing parameter modules is greater than 1;
the sorting result obtaining subunit is used for carrying out sorting operation on each priority to obtain a sorting result;
the parameter module selecting subunit is used for selecting the parameter module with the highest priority according to the sorting result;
and the parameter acquisition subunit is used for acquiring preset path selection parameters from the parameter module with the highest priority.
In one embodiment of the present invention, the parameter obtaining unit 42 is a unit for obtaining the path selection parameters validated by the service restart or refresh command.
In an embodiment of the present invention, the path selecting unit 43 is further configured to select a preset target path from the path set when the path selecting manner is determined to be selecting a specified path in the path set according to the path selecting parameter.
Corresponding to the above method embodiment, referring to fig. 5, fig. 5 is a schematic diagram of a storage resource access device provided in the present invention, where the storage resource access device may include:
a memory 332 for storing computer programs;
a processor 322 for implementing the steps of the storage resource access method of the above-described method embodiments when executing the computer program.
Specifically, referring to fig. 6, fig. 6 is a schematic diagram illustrating a specific structure of a storage resource access device provided in this embodiment, which may generate a relatively large difference due to different configurations or performances, and may include a processor (CPU) 322 (e.g., one or more processors) and a memory 332, where the memory 332 stores one or more computer applications 342 or data 344. Memory 332 may be, among other things, transient or persistent storage. The program stored in memory 332 may include one or more modules (not shown), each of which may include a sequence of instructions operating on the data processing apparatus. Still further, processor 322 may be configured to communicate with memory 332 to execute a sequence of instruction operations in memory 332 on storage resource access device 301.
The storage resource access device 301 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input output interfaces 358, and/or one or more operating systems 341.
The steps in the storage resource access method described above may be implemented by the structure of a storage resource access device.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
receiving a target IO request for accessing a target storage resource; acquiring preset path selection parameters; when the path selection mode is determined to be the polling selection of each path in the path set according to the path selection parameters, a target path is obtained through the polling selection in the path set; and sending the target IO request to the target storage resource by using the target path so as to access the target storage resource.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, without departing from the principle of the present invention, it is possible to make various improvements and modifications to the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A storage resource access method, comprising:
receiving a target IO request for accessing a target storage resource;
acquiring preset path selection parameters;
when a path selection mode is determined to be polling selection on each path in a path set according to the path selection parameters, a target path is obtained from the path set through polling selection;
and sending the target IO request to the target storage resource by using the target path so as to access the target storage resource.
2. The storage resource access method of claim 1, wherein polling from the set of paths to obtain a target path comprises:
and polling and selecting the target path from the path set according to a load balancing strategy.
3. The storage resource access method according to claim 1 or 2, wherein polling and selecting a target path from the path set comprises:
judging whether available paths exist in the optimal path group of the path set or not;
and if so, polling and selecting the optimal path group to obtain a target path.
4. The storage resource access method of claim 3, when determining that no available path exists within the optimal path group of the path set, further comprising:
and polling and selecting a target path from the non-optimal path group of the path set.
5. The method according to claim 1, wherein obtaining the preset path selection parameter comprises:
searching a parameter module existing in the parameter configuration file;
when the number of the existing parameter modules is more than 1, acquiring the priority corresponding to each parameter module;
carrying out sorting operation on each priority to obtain a sorting result;
selecting a parameter module with the highest priority according to the sorting result;
and acquiring preset path selection parameters from the parameter module with the highest priority.
6. The storage resource access method according to claim 1, wherein obtaining the preset path selection parameter comprises:
the path selection parameters that are validated by the service restart or refresh command are obtained.
7. The storage resource access method of claim 1, further comprising:
and when the path selection mode is determined to be the selection of the specified path in the path set according to the path selection parameters, selecting a preset target path from the path set.
8. A storage resource access apparatus, comprising:
a request receiving unit, configured to receive a target IO request for accessing a target storage resource;
the device comprises a parameter acquisition unit, a route selection unit and a route selection unit, wherein the parameter acquisition unit is used for acquiring preset route selection parameters;
the path selection unit is used for polling and selecting a target path from the path set when determining a path selection mode to perform polling selection on each path in the path set according to the path selection parameters;
and the resource access unit is used for sending the target IO request to the target storage resource by using the target path so as to access the target storage resource.
9. A storage resource access device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the storage resource access method of any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the storage resource access method according to any one of claims 1 to 7.
CN202211032629.5A 2022-08-26 2022-08-26 Storage resource access method, device, equipment and readable storage medium Pending CN115390762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211032629.5A CN115390762A (en) 2022-08-26 2022-08-26 Storage resource access method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211032629.5A CN115390762A (en) 2022-08-26 2022-08-26 Storage resource access method, device, equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115390762A true CN115390762A (en) 2022-11-25

Family

ID=84123434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211032629.5A Pending CN115390762A (en) 2022-08-26 2022-08-26 Storage resource access method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115390762A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117439941A (en) * 2023-12-20 2024-01-23 厦门金龙联合汽车工业有限公司 Multilink data transmission method and system oriented to unmanned vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117439941A (en) * 2023-12-20 2024-01-23 厦门金龙联合汽车工业有限公司 Multilink data transmission method and system oriented to unmanned vehicle

Similar Documents

Publication Publication Date Title
US6886084B2 (en) Storage controlling device and control method for a storage controlling device
US7712103B2 (en) Method and system for managing load balancing in data processing system
US8893146B2 (en) Method and system of an I/O stack for controlling flows of workload specific I/O requests
WO2021126295A1 (en) Request throttling in distributed storage systems
EP3163446B1 (en) Data storage method and data storage management server
WO2011088767A1 (en) Content delivery method, system and schedule server
CN110007877B (en) Method, apparatus, device and medium for data transmission between host and dual-control storage device
CN115390762A (en) Storage resource access method, device, equipment and readable storage medium
CN106775975B (en) Process scheduling method and device
JP2006004193A (en) Data transfer method and system, input/output request device, and data transfer program and computer-readable recording medium with the program recorded thereon
CN110795234A (en) Resource scheduling method and device
JP2005149283A (en) Information processing system, control method therefor, and program
CN113407466A (en) IO path determination method, device, equipment and readable storage medium
US20150160864A1 (en) Systems and methods for high availability in multi-node storage networks
CN116248699B (en) Data reading method, device, equipment and storage medium in multi-copy scene
US9110823B2 (en) Adaptive and prioritized replication scheduling in storage clusters
CN113268329A (en) Request scheduling method, device and storage medium
CN110780999A (en) System and method for scheduling multi-core CPU
CN116048413B (en) IO request processing method, device and system for multipath storage and storage medium
WO2024103690A1 (en) Data request method and apparatus, and device and non-volatile readable storage medium
CN117667782A (en) Event scheduling method, system and storage medium
CN107220124B (en) Path selection method and device
US20170269864A1 (en) Storage Array Operation Method and Apparatus
JP2002342193A (en) Method, device and program for selecting data transfer destination server and storage medium with data transfer destination server selection program stored therein
CN111949438B (en) Multimedia data backup method, device, server and medium

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